forked from AuroraMiddleware/gtk
cast menu's toplevel to GtkWindow when passing to
2008-06-17 Michael Natterer <mitch@imendio.com> * gtk/gtkoptionmenu.c (gtk_option_menu_position): cast menu's toplevel to GtkWindow when passing to gtk_window_set_type_hint(). svn path=/trunk/; revision=20417
This commit is contained in:
parent
86f27564bd
commit
4d4e558efd
@ -1,3 +1,8 @@
|
||||
2008-06-17 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_position): cast menu's
|
||||
toplevel to GtkWindow when passing to gtk_window_set_type_hint().
|
||||
|
||||
2008-06-17 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtktestutils.c: #undef GTK_DISABLE_DEPRECATED, clean up
|
||||
|
@ -895,7 +895,7 @@ gtk_option_menu_position (GtkMenu *menu,
|
||||
gdk_window_get_origin (widget->window, &menu_xpos, &menu_ypos);
|
||||
|
||||
/* set combo box type hint for menu popup */
|
||||
gtk_window_set_type_hint (GTK_MENU (option_menu->menu)->toplevel,
|
||||
gtk_window_set_type_hint (GTK_WINDOW (GTK_MENU (option_menu->menu)->toplevel),
|
||||
GDK_WINDOW_TYPE_HINT_COMBO);
|
||||
|
||||
menu_xpos += widget->allocation.x;
|
||||
|
Loading…
Reference in New Issue
Block a user