From 7e5c60a81822a448087cf3d61f50ae4ca2b63a80 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 5 Mar 2012 14:15:16 +0000 Subject: [PATCH] info: Avoid empty entries in "Other types" dialogue https://bugzilla.gnome.org/show_bug.cgi?id=671358 --- panels/info/cc-info-panel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c index 46b2330bf..b1350a0d3 100644 --- a/panels/info/cc-info-panel.c +++ b/panels/info/cc-info-panel.c @@ -1393,6 +1393,11 @@ info_panel_setup_media (CcInfoPanel *self) } } + if (description == NULL) { + g_debug ("Content type '%s' is missing from the info panel", content_type); + description = g_content_type_get_description (content_type); + } + gtk_list_store_append (other_type_list_store, &iter); icon = g_content_type_get_icon (content_type);