[nautilus/wip/oholy/cloudproviders: 4/5] sidebar: Fix menu styling for cloud provider accounts
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/cloudproviders: 4/5] sidebar: Fix menu styling for cloud provider accounts
- Date: Sat, 6 Aug 2022 06:07:12 +0000 (UTC)
commit bd95d2e614fe7726d59c5400929414eb6e8b46b7
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]