mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 02:57:38 +00:00
menubutton: set DROPDOWN_MENU hint on the menu toplevel
So the WM can render the menu shadows correctly, omitting the top side, in the common case the menu is rendered down from a toolbar. https://bugzilla.gnome.org/show_bug.cgi?id=679449
This commit is contained in:
parent
5a5c33097f
commit
598163e526
@ -147,6 +147,10 @@ menu_position_down_func (GtkMenu *menu,
|
||||
GdkScreen *screen;
|
||||
GdkWindow *window;
|
||||
GtkAllocation allocation, arrow_allocation;
|
||||
GtkWidget *toplevel;
|
||||
|
||||
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (priv->menu));
|
||||
gtk_window_set_type_hint (GTK_WINDOW (toplevel), GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU);
|
||||
|
||||
gtk_widget_get_preferred_size (GTK_WIDGET (priv->menu),
|
||||
&menu_req, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user