aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-09-05 17:55:25 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-09-05 21:15:09 +0200
commit8ccd3bc96dd8d962db69d2a1e645e8db8901668b (patch)
tree0200b846fa498dba8adc6a8407dd8237759b612f
parent242b20becbfa33c2f83e4fb06d20dc15e2807b00 (diff)
downloadlibayatana-indicator-8ccd3bc96dd8d962db69d2a1e645e8db8901668b.tar.gz
libayatana-indicator-8ccd3bc96dd8d962db69d2a1e645e8db8901668b.tar.bz2
libayatana-indicator-8ccd3bc96dd8d962db69d2a1e645e8db8901668b.zip
Whitespace fix
-rw-r--r--libayatana-indicator/indicator-ng.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c
index b31d298..675b8f1 100644
--- a/libayatana-indicator/indicator-ng.c
+++ b/libayatana-indicator/indicator-ng.c
@@ -522,19 +522,20 @@ indicator_ng_set_icon_from_variant (IndicatorNg *self,
}
}
-static void
-indicator_ng_set_label (IndicatorNg *self,
- const gchar *label)
+static void indicator_ng_set_label(IndicatorNg *self, const gchar *label)
{
- if (label == NULL || *label == '\0')
+ if (label == NULL || *label == '\0')
{
- if (self->entry.label)
- gtk_widget_hide (GTK_WIDGET (self->entry.label));
- return;
+ if (self->entry.label)
+ {
+ gtk_label_set_label(GTK_LABEL (self->entry.label), NULL);
+ }
+
+ return;
}
- gtk_label_set_label (GTK_LABEL (self->entry.label), label);
- gtk_widget_show (GTK_WIDGET (self->entry.label));
+ gtk_label_set_label (GTK_LABEL (self->entry.label), label);
+ gtk_widget_show (GTK_WIDGET (self->entry.label));
}
static void