[gtk/new-style-menu: 3/5] popover menu: Fix style classes



commit a127bb9171c7fec2299c97f2ca841b5ef118d495
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]