]> Pileus Git - ~andy/gtk/commitdiff
Handle geometry change correctly
authorMatthias Clasen <mclasen@redhat.com>
Mon, 31 Aug 2009 23:41:09 +0000 (19:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 31 Aug 2009 23:41:09 +0000 (19:41 -0400)
This makes sure that the button is properly prelighted when rotating it
underneath the pointer by using keynav on the scale.

demos/gtk-demo/offscreen_window.c

index b07db50e918766ad52ad66f0bde79ac065d0f127..0295fe838437e60abcf07a1b56190c1c3f09e696 100644 (file)
@@ -366,7 +366,7 @@ gtk_rotated_bin_set_angle (GtkRotatedBin *bin,
   bin->angle = angle;
   gtk_widget_queue_resize (GTK_WIDGET (bin));
 
-  /* TODO: Really needs to resent pointer events if over the rotated window */
+  gdk_window_geometry_changed (bin->offscreen_window);
 }
 
 static void