diff gtk3/dw.c @ 1472:1794caee0758

Initial versions of dw_window_set_gravity for Windows and OS/2. Fixed an error in the gravity calculation for bottom on GTK.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 20 Dec 2011 16:10:13 +0000
parents 26dbd11399d6
children d76a36c9cff1
line wrap: on
line diff
--- a/gtk3/dw.c	Tue Dec 20 15:05:14 2011 +0000
+++ b/gtk3/dw.c	Tue Dec 20 16:10:13 2011 +0000
@@ -8809,7 +8809,7 @@
             if((vert & 0xf) == DW_GRAV_CENTER)
                newy += ((gdk_screen_height() / 2) - (height / 2));
             else if((vert & 0xf) == DW_GRAV_BOTTOM)
-               newy = gdk_screen_height() - height - x;
+               newy = gdk_screen_height() - height - y;
          }            
          /* Finally move the window into place */
          gtk_window_move(GTK_WINDOW(handle), newx, newy);