[libpeas] Don't show a plugin's description if it is NULL
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Don't show a plugin's description if it is NULL
- Date: Tue, 14 Dec 2010 18:46:47 +0000 (UTC)
commit a0c1ca02418b1034cc339a2bb6b83067770e10c7
Author: Garrett Regier <alias301 gmail com>
Date: Tue Dec 14 10:38:26 2010 -0800
Don't show a plugin's description if it is NULL
libpeas-gtk/peas-gtk-plugin-manager-store.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-store.c b/libpeas-gtk/peas-gtk-plugin-manager-store.c
index 7d02588..eea6ce7 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-store.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager-store.c
@@ -66,9 +66,17 @@ update_plugin (PeasGtkPluginManagerStore *store,
available = peas_plugin_info_is_available (info);
builtin = peas_plugin_info_is_builtin (info);
- markup = g_markup_printf_escaped ("<b>%s</b>\n%s",
- peas_plugin_info_get_name (info),
- peas_plugin_info_get_description (info));
+ if (peas_plugin_info_get_description (info) == NULL)
+ {
+ markup = g_markup_printf_escaped ("<b>%s</b>",
+ peas_plugin_info_get_name (info));
+ }
+ else
+ {
+ markup = g_markup_printf_escaped ("<b>%s</b>\n%s",
+ peas_plugin_info_get_name (info),
+ peas_plugin_info_get_description (info));
+ }
if (peas_plugin_info_is_available (info))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]