[gtk+] Request csd for menus



commit dae252e3d21c60e07076d2ab3ef81f9f99e19fe0
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 6 21:30:55 2014 -0400

    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

 gtk/gtkmenu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index cb8d98e..7c13727 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]