diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-09-08 15:36:47 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-09-08 15:36:47 +0200 |
commit | 6b0ca37594f5c3c949a3b4bd287afc283011485c (patch) | |
tree | 209263b3c158195b382b07067a6505da9f3ba98b | |
parent | 2130f284d614802c214f5f0eeced666084bab5d8 (diff) | |
parent | 1df0f1d0d502d8afc79421d6c66b3ae985174493 (diff) | |
download | libayatana-indicator-6b0ca37594f5c3c949a3b4bd287afc283011485c.tar.gz libayatana-indicator-6b0ca37594f5c3c949a3b4bd287afc283011485c.tar.bz2 libayatana-indicator-6b0ca37594f5c3c949a3b4bd287afc283011485c.zip |
Merge branch 'tari01-pr/disable-menu-arrows'
Attributes GH PR #23: https://github.com/AyatanaIndicators/libayatana-indicator/pull/23
-rw-r--r-- | libayatana-indicator/indicator-ng.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c index ea5c3a8..be25eec 100644 --- a/libayatana-indicator/indicator-ng.c +++ b/libayatana-indicator/indicator-ng.c @@ -967,6 +967,12 @@ indicator_ng_init (IndicatorNg *self) g_signal_connect (self->entry.menu, "hide", G_CALLBACK (indicator_ng_menu_hidden), self); g_signal_connect (self->entry.menu, "size-allocate", G_CALLBACK (indicator_ng_menu_size_allocate), self); + GtkCssProvider *pCssProvider = gtk_css_provider_new(); + 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); + g_object_unref(pCssProvider); + /* work around IndicatorObject's warning that the accessible * description is missing. We never set it on construction, but when * the menu model has arrived on the bus. |