cast menu's toplevel to GtkWindow when passing to

2008-06-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcombobox.c (gtk_combo_box_menu_position): cast menu's
	toplevel to GtkWindow when passing to gtk_window_set_type_hint().


svn path=/trunk/; revision=20372
This commit is contained in:
Michael Natterer 2008-06-13 13:30:38 +00:00 committed by Michael Natterer
parent a40901c115
commit 6aaea97378
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-06-13 Michael Natterer <mitch@imendio.com>
* gtk/gtkcombobox.c (gtk_combo_box_menu_position): cast menu's
toplevel to GtkWindow when passing to gtk_window_set_type_hint().
2008-06-13 Michael Natterer <mitch@imendio.com>
* gtk/gtkuimanager.c (start_element_handler): silently skip

View File

@ -1576,8 +1576,8 @@ gtk_combo_box_menu_position (GtkMenu *menu,
gtk_combo_box_menu_position_over (menu, x, y, push_in, user_data);
}
gtk_window_set_type_hint (GTK_MENU (priv->popup_widget)->toplevel,
GDK_WINDOW_TYPE_HINT_COMBO);
gtk_window_set_type_hint (GTK_WINDOW (GTK_MENU (priv->popup_widget)->toplevel),
GDK_WINDOW_TYPE_HINT_COMBO);
}
static void