[gnome-control-center] info: Avoid empty entries in "Other types" dialogue
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: Avoid empty entries in "Other types" dialogue
- Date: Mon, 5 Mar 2012 14:17:28 +0000 (UTC)
commit 7e5c60a81822a448087cf3d61f50ae4ca2b63a80
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 5 14:15:16 2012 +0000
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 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 46b2330..b1350a0 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]