aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-09-05 18:07:06 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-09-05 21:15:09 +0200
commitd8b5315ba904348de5b06d2a667faac9877dc6c4 (patch)
tree440b63f3168ec7bb9d473811b5fd0f7952a8a5d3
parent8c8822dc3994354ad73b8e0937747f7c291b5b8a (diff)
downloadlibayatana-indicator-d8b5315ba904348de5b06d2a667faac9877dc6c4.tar.gz
libayatana-indicator-d8b5315ba904348de5b06d2a667faac9877dc6c4.tar.bz2
libayatana-indicator-d8b5315ba904348de5b06d2a667faac9877dc6c4.zip
indicator-ng.c: Do not hide image when toggling label visibility
Fixes AyatanaIndicators/ayatana-indicator-session#12
-rw-r--r--libayatana-indicator/indicator-ng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c
index 79a612c..58cc2a6 100644
--- a/libayatana-indicator/indicator-ng.c
+++ b/libayatana-indicator/indicator-ng.c
@@ -528,7 +528,8 @@ static void indicator_ng_set_label(IndicatorNg *self, const gchar *label)
{
if (self->entry.label)
{
- gtk_widget_hide(GTK_WIDGET (self->entry.label));
+ // Hiding the label also hides the image - set the label instead of gtk_widget_hide
+ gtk_label_set_label(GTK_LABEL (self->entry.label), NULL);
}
return;