[nautilus/wip/antoniof/experimental-gtk4-build: 51/52] files-view: Drop arrow from background context menu




commit 29f65406eda688b7ee3459e94bab715af5619c9a
Author: António Fernandes <antoniof gnome org>
Date:   Fri Dec 24 05:00:17 2021 +0000

    files-view: Drop arrow from background context menu
    
    It doesn't have an specific target to point to.

 src/nautilus-files-view.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 4874adeeb..7dd934e5d 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -8306,6 +8306,8 @@ nautilus_files_view_pop_up_background_context_menu (NautilusFilesView *view,
     {
         priv->background_menu = gtk_popover_menu_new_from_model (NULL);
         gtk_widget_set_parent (priv->background_menu, GTK_WIDGET (view));
+        gtk_popover_set_has_arrow (GTK_POPOVER (priv->background_menu), FALSE);
+        gtk_widget_set_halign (priv->background_menu, GTK_ALIGN_START);
         g_signal_connect (priv->background_menu, "destroy", G_CALLBACK (gtk_widget_unparent), NULL);
     }
     gtk_popover_menu_set_menu_model (GTK_POPOVER_MENU (priv->background_menu),


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