gnome-sushi does not center preview on screen

Bug #964192 reported by Makario Lewis
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gnome-sushi (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Whenever I display a preview with gnome-sushi, instead of being centered on the screen, it's a little to the left.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnome-sushi 0.3.92-1
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Sat Mar 24 23:29:34 2012
EcryptfsInUse: Yes
SourcePackage: gnome-sushi
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Makario Lewis (makariolewis) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-sushi (Ubuntu):
status: New → Confirmed
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Could you please try to reproduce this on latest version available in 12.04?
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Happens on 12.04 as well.

Matt Fischer (mfisch)
Changed in gnome-sushi (Ubuntu):
importance: Undecided → Low
Revision history for this message
Fernando Herrero (ferhtgoldaraz) wrote :

in Ubuntu 13.04, changing the following in /usr/share/sushi/ui/mainWindow.js worked for me

    gravity: Gdk.Gravity.NORTH_WEST,
    windowPosition: Gtk.WindowPosition.CENTER_ALWAYS,

in

  this._gtkWindow = new Gtk.Window({ type: Gtk.WindowType.TOPLEVEL,
                                             focusOnMap: true,
                                             decorated: !this._clientDecorated,
                                             hasResizeGrip: false,
                                             skipPagerHint: true,
                                             skipTaskbarHint: true,
                                             gravity: Gdk.Gravity.NORTH_WEST,
                                             windowPosition: Gtk.WindowPosition.CENTER_ALWAYS,
                                             application: this._application });

For me the block started on line 77.

I don't know anything about gtk+, so I hope that someone that knows how to do this kind of things well finds the better solution. I believe that part of the problem might have to do with the window from were this one could be getting its relative "origin" position (hope that makes ANY sense...), since a little centered window seems to appear just before the actual sushi normal window shows, right when I hit space, and when playing with the different possible values I was able to find for "gravity" and "windowPosition", it appeared as if this little window was being the one to which the normal one related its positioning.

Hope that helps a little at least

Revision history for this message
Mathieu (mbousq) wrote :

Hi, this is quite old but I am getting that in ubuntu 22.04. I don't recall experiencing this in 20.04.

DistroRelease: Ubuntu 22.04
Package: gnome-sushi/jammy,now 41.1-1 amd64
Uname: kernel 5.15.0-41-generic

To reproduce :
- install gnome-sushi (sudo apt install gnome-sushi)
- pres 'space' in an image or text file
Outcome: the preview is not centered

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.