[uim-commit] r3099 - trunk/helper
ekato at freedesktop.org
ekato at freedesktop.org
Mon Feb 6 21:55:57 PST 2006
Author: ekato
Date: 2006-02-06 21:55:50 -0800 (Mon, 06 Feb 2006)
New Revision: 3099
Modified:
trunk/helper/toolbar-common-gtk.c
Log:
* helper/toolbar-common-gtk.c (calc_menu_position) : Fix menu
position.
Modified: trunk/helper/toolbar-common-gtk.c
===================================================================
--- trunk/helper/toolbar-common-gtk.c 2006-02-06 23:07:59 UTC (rev 3098)
+++ trunk/helper/toolbar-common-gtk.c 2006-02-07 05:55:50 UTC (rev 3099)
@@ -142,11 +142,14 @@
gdk_window_get_origin(button->window, x, y);
gdk_drawable_get_size(button->window, NULL, &button_height);
+ if (GTK_WIDGET_NO_WINDOW(button))
+ *x += button->allocation.x;
+
sc_height = gdk_screen_get_height(gdk_screen_get_default());
sc_width = gdk_screen_get_width(gdk_screen_get_default());
gtk_widget_size_request(GTK_WIDGET(menu), &requisition);
-
+
menu_width = requisition.width;
menu_height = requisition.height;
More information about the uim-commit
mailing list