summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrifa75 <yahiaoui.fakhri@gmail.com>2022-11-20 19:14:39 +0100
committerBastien Nocera <hadess@hadess.net>2022-11-22 15:26:27 +0100
commit3734c65ba965de25b5a7b31e685d9ea0ebbdc713 (patch)
tree4d5a4d9032fbcc1d180274b7db5935b2cd2fa9bf
parent6753353adc90b663eab3add5b488bcd773a58172 (diff)
downloadtotem-3734c65ba965de25b5a7b31e685d9ea0ebbdc713.tar.gz
properties: Update item visibility
If a general metadata is not available we hide the items but if we have this info on a update the item was still hidden.
-rw-r--r--src/plugins/properties/bacon-video-widget-properties.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/properties/bacon-video-widget-properties.c b/src/plugins/properties/bacon-video-widget-properties.c
index 6f6c4ff3e..779ef25b3 100644
--- a/src/plugins/properties/bacon-video-widget-properties.c
+++ b/src/plugins/properties/bacon-video-widget-properties.c
@@ -78,8 +78,7 @@ bacon_video_widget_properties_set_label (BaconVideoWidgetProperties *props,
g_return_if_fail (item != NULL);
gtk_label_set_text (item, text);
- if (text == NULL || *text == '\0')
- gtk_widget_hide(GTK_WIDGET (item));
+ gtk_widget_set_visible (GTK_WIDGET (item), text != NULL && *text != '\0');
}
void