diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-04 10:28:55 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-04 10:28:55 +0100 |
commit | 770efbcc8584981848b281363b4b796721d597cc (patch) | |
tree | 998c6f1cb6932ccdd96b91b30f6442ad2184850b | |
parent | 4489b124930e00aaedb020f6b9a38f64535ecdb9 (diff) | |
download | libayatana-indicator-770efbcc8584981848b281363b4b796721d597cc.tar.gz libayatana-indicator-770efbcc8584981848b281363b4b796721d597cc.tar.bz2 libayatana-indicator-770efbcc8584981848b281363b4b796721d597cc.zip |
libayatana-indicator/indicator-ng.c: Only run gtk_box_set_spacing() if object to operate on is a GTK_BOX.
-rw-r--r-- | libayatana-indicator/indicator-ng.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c index bd2176e..f4db2e6 100644 --- a/libayatana-indicator/indicator-ng.c +++ b/libayatana-indicator/indicator-ng.c @@ -547,7 +547,10 @@ static void indicator_ng_set_label(IndicatorNg *self, const gchar *label) gtk_css_provider_load_from_data(pCssProvider, sCss, -1, NULL); g_free(sCss); g_object_unref(pCssProvider); - gtk_box_set_spacing(GTK_BOX(pParent), nSpacing); + if (GTK_IS_BOX(pParent)) + { + gtk_box_set_spacing(GTK_BOX(pParent), nSpacing); + } gtk_label_set_label(GTK_LABEL (self->entry.label), sLabel); if (label) |