[nautilus/wip/oholy/cloudproviders: 27/28] sidebar: Fix menu styling for cloud provider accounts




commit 7f27c09c44a411b89a9addee905df8ee5c6abef4
Author: Ondrej Holy <oholy redhat com>
Date:   Sat Aug 6 07:55:42 2022 +0200

    sidebar: Fix menu styling for cloud provider accounts
    
    The menu for cloud providers account differs from other sidebar menus
    (e.g. the popover has arrow and is not aligned with click position).
    Let's unify the styling.

 src/gtk/nautilusgtkplacessidebar.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c
index 19212d199..48efbb369 100644
--- a/src/gtk/nautilusgtkplacessidebar.c
+++ b/src/gtk/nautilusgtkplacessidebar.c
@@ -3214,8 +3214,13 @@ build_popup_menu_using_gmenu (NautilusGtkSidebarRow *row)
 
       sidebar->popover = gtk_popover_menu_new_from_model (G_MENU_MODEL (menu));
       gtk_widget_set_parent (sidebar->popover, GTK_WIDGET (sidebar));
+      gtk_widget_set_halign (sidebar->popover, GTK_ALIGN_START);
+      gtk_popover_set_has_arrow (GTK_POPOVER (sidebar->popover), FALSE);
       g_signal_connect (sidebar->popover, "destroy",
                         G_CALLBACK (on_row_popover_destroy), sidebar);
+
+      setup_popover_shadowing (sidebar->popover, sidebar);
+
       g_object_unref (sidebar);
       g_object_unref (cloud_provider_account);
     }


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