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:
Michael Natterer 2008-06-17 11:27:37 +00:00 committed by Michael Natterer
parent 86f27564bd
commit 4d4e558efd
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;