Bug 536765 – GtkComboBox should set COMBO type hint for its menu

* gtk/gtkoptionmenu.c:
        * gtk/gtkcombobox.c: Set the window type hint on popups.
        Patch by Danny Baumann


svn path=/trunk/; revision=20351
This commit is contained in:
Matthias Clasen 2008-06-11 03:36:32 +00:00
parent 3dbfc1935f
commit 5f8af6d910
3 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,12 @@
2008-06-10 Christian Persch <chpe@gnome.org>
2008-06-10 Matthias Clasen <mclasen@redhat.com>
Bug 536765 GtkComboBox should set COMBO type hint for its menu
* gtk/gtkoptionmenu.c:
* gtk/gtkcombobox.c: Set the window type hint on popups.
Patch by Danny Baumann
2008-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (get_icon_for_special_directory):
(gtk_file_system_volume_render_icon): Add standard icon names,

View File

@ -1575,6 +1575,9 @@ 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);
}
static void

View File

@ -894,6 +894,10 @@ gtk_option_menu_position (GtkMenu *menu,
active = gtk_menu_get_active (GTK_MENU (option_menu->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,
GDK_WINDOW_TYPE_HINT_COMBO);
menu_xpos += widget->allocation.x;
menu_ypos += widget->allocation.y + widget->allocation.height / 2 - 2;