diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-04 10:28:55 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2020-12-04 11:35:34 +0100 |
commit | 29f118a4349f69ccd7ae70327193c0368ba6d2ce (patch) | |
tree | 971a45a78b921815a9154f6af171af1dfa75dee5 | |
parent | fb9db8a6c2eabf2d28818351f90748108cc26912 (diff) | |
download | libayatana-indicator-29f118a4349f69ccd7ae70327193c0368ba6d2ce.tar.gz libayatana-indicator-29f118a4349f69ccd7ae70327193c0368ba6d2ce.tar.bz2 libayatana-indicator-29f118a4349f69ccd7ae70327193c0368ba6d2ce.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) |