Commit 4d4e558e authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

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
parent 86f27564
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment