aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-30 14:36:45 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-30 14:36:45 +0100
commit2806da07151f3f56b7020de296dabab571743f63 (patch)
tree9a55e4b0f2da565b129e3b8b0e8ee7c1c2168e75
parentafa8c6af04973707fe195c61dc390ac4d2c1b21b (diff)
parentf5663d0bfe2a20852c6934c7027d885cd558fed6 (diff)
downloadlibayatana-indicator-2806da07151f3f56b7020de296dabab571743f63.tar.gz
libayatana-indicator-2806da07151f3f56b7020de296dabab571743f63.tar.bz2
libayatana-indicator-2806da07151f3f56b7020de296dabab571743f63.zip
Merge branch 'tari01-pr/fix-menu-resizing'
Attributes GH PR #31: https://github.com/AyatanaIndicators/libayatana-indicator/pull/31
-rw-r--r--libayatana-indicator/indicator-ng.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c
index be25eec..bd2176e 100644
--- a/libayatana-indicator/indicator-ng.c
+++ b/libayatana-indicator/indicator-ng.c
@@ -971,6 +971,12 @@ indicator_ng_init (IndicatorNg *self)
GtkStyleContext *pStyleContext = gtk_widget_get_style_context(GTK_WIDGET(self->entry.menu));
gtk_style_context_add_provider(pStyleContext, GTK_STYLE_PROVIDER(pCssProvider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
gtk_css_provider_load_from_data(pCssProvider, "menu > arrow{min-height: 0; padding: 0; margin: 0;}", -1, NULL);
+
+ GtkWidget *pWindow = gtk_widget_get_parent(GTK_WIDGET(self->entry.menu));
+ pStyleContext = gtk_widget_get_style_context(pWindow);
+ gtk_style_context_add_provider(pStyleContext, GTK_STYLE_PROVIDER(pCssProvider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ gtk_css_provider_load_from_data(pCssProvider, "window > decoration {box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.13);}", -1, NULL);
+
g_object_unref(pCssProvider);
/* work around IndicatorObject's warning that the accessible