From f5663d0bfe2a20852c6934c7027d885cd558fed6 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 30 Oct 2020 13:11:08 +0100 Subject: indicator-ng.c: Fix menu resizing for all themes --- libayatana-indicator/indicator-ng.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3