[gtk/new-style-menu: 16/48] popover menu: Fix style classes



commit 698e39bcac690f84d7f3b2832d4e24d25837946b
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 6 18:08:52 2019 +0000

    popover menu: Fix style classes
    
    We want the same style classes that are produced
    when creating a popover from a menu model.

 gtk/gtkpopovermenu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopovermenu.c b/gtk/gtkpopovermenu.c
index d23b45cdd9..f8d85f76de 100644
--- a/gtk/gtkpopovermenu.c
+++ b/gtk/gtkpopovermenu.c
@@ -146,7 +146,7 @@ gtk_popover_menu_init (GtkPopoverMenu *popover)
   g_signal_connect (stack, "notify::visible-child-name",
                     G_CALLBACK (visible_submenu_changed), popover);
 
-  style_context = gtk_widget_get_style_context (gtk_popover_get_contents_widget (GTK_POPOVER (popover)));
+  style_context = gtk_widget_get_style_context (GTK_WIDGET (popover));
   gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_MENU);
 }
 


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