Request csd for menus

Use the new private GtkWindow api to request
client-side decorations for menus.

https://bugzilla.gnome.org/show_bug.cgi?id=731187
This commit is contained in:
Matthias Clasen 2014-06-06 21:30:55 -04:00
parent 3cf916be8a
commit dae252e3d2

View File

@ -1099,6 +1099,7 @@ gtk_menu_init (GtkMenu *menu)
gtk_window_set_resizable (GTK_WINDOW (priv->toplevel), FALSE);
gtk_window_set_mnemonic_modifier (GTK_WINDOW (priv->toplevel), 0);
_gtk_window_request_csd (GTK_WINDOW (priv->toplevel));
gtk_style_context_add_class (gtk_widget_get_style_context (priv->toplevel), "popup");
/* Refloat the menu, so that reference counting for the menu isn't