[gtk] filechooserwidget: Add .menu to right-click popover



commit 426d5ca1b7c952d4b92589150be04ff1164c9574
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 18 08:27:30 2019 +0200

    filechooserwidget: Add .menu to right-click popover
    
    Make it look like the other menus.

 gtk/gtkfilechooserwidget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index aa5e456fc0..3412a55d63 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2244,8 +2244,8 @@ file_list_build_popover (GtkFileChooserWidget *impl)
     return;
 
   priv->browse_files_popover = gtk_popover_new (priv->browse_files_tree_view);
+  gtk_style_context_add_class (gtk_widget_get_style_context (priv->browse_files_popover), "menu");
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  g_object_set (box, "margin", 10, NULL);
   gtk_container_add (GTK_CONTAINER (priv->browse_files_popover), box);
 
   priv->visit_file_item = add_button (box, _("_Visit File"), "item.visit");


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