MaxTyutyunnikov / gphotoframe

Automatically exported from code.google.com/p/gphotoframe
Other
0 stars 0 forks source link

Frame "walks" off screen when pictures are displayed of different sizes XFCE4 #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run program
2.displays pictures
3.slowly walks off to the right as photos are displayed that are taller than 
wide

What is the expected output? What do you see instead?
should sit in one place, especially in 'fixed' mode..does not

What version of the product are you using? On what operating system?
1.4.-0.1 deb, Xubuntu 11.10 (xfce)

Please provide any additional information below.
wide pic, tall pic, wide pic, tall pic, should all have the same location for 
the top left corner, the tall pics center in the location, then the wide pick 
starts at the tall pic's top left corner, effectively moving the frame to the 
right.. the more pics that display..the more it moves

Original issue reported on code.google.com by arcadesh...@gmail.com on 20 Oct 2011 at 7:07

GoogleCodeExporter commented 9 years ago

Original comment by yendo0206 on 15 Nov 2011 at 9:34

GoogleCodeExporter commented 9 years ago
GDK_GRAVITY defines the reference point of a window.

http://developer.gnome.org/gdk/stable/gdk-Windows.html#GdkGravity

Xfwm does not support GDK_GRAVITY correctly.
I think it is a Xfwm bug.
The gphotoframe window gravity needs be set to
GDK_GRAVITY_NORTH_WEST forcelly with Xfwm.

I added new gconf key as a work around for the bug.
I attached a test version.
Can you try it with the following command?

% gconftool-2 --type string --set /apps/gphotoframe/gravity "NORTH_WEST"

Original comment by yendo0206 on 19 Nov 2011 at 2:12

Attachments:

GoogleCodeExporter commented 9 years ago
At first glance this now works correctly with the command+beta version. Thank 
you! 

Original comment by arcadesh...@gmail.com on 19 Nov 2011 at 8:43

GoogleCodeExporter commented 9 years ago
Thank you!

I commited in revision 3d73972b2a08.

Original comment by yendo0206 on 21 Nov 2011 at 5:34

GoogleCodeExporter commented 9 years ago
GNOME Photo Frame ver.2.0 uses GSettings instead of GConf.
And, now the 'gravity' key is in new geometry section.

% gsettings set com.googlecode.gphotoframe.geometry gravity "NORTH_WEST"

Original comment by yendo0206 on 15 Feb 2012 at 4:36

GoogleCodeExporter commented 9 years ago
I'm using version 1.5.1 and don't know how to fix this problem. Can you show me 
more details? How to use the command? (Xubuntu 12.10)

Original comment by cangap...@gmail.com on 15 Mar 2013 at 11:25

GoogleCodeExporter commented 9 years ago
Sorry, everything is fixed when I restart the software.

Original comment by cangap...@gmail.com on 15 Mar 2013 at 11:36