[nautilus/wip/antoniof/post-gtk4-switch-fixes: 12/13] files-view: Drop arrow from background context menu
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/post-gtk4-switch-fixes: 12/13] files-view: Drop arrow from background context menu
- Date: Wed, 5 Jan 2022 13:29:17 +0000 (UTC)
commit 79bb27c21583b9b466cb6c8d6e2cd45cb1aab417
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 5c37b8347..a40d9e6a7 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -8320,6 +8320,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]