handle the case where label == NULL, and set it to _("Unknown").

2003-10-23  Chris Toshok  <toshok@ximian.com>

	* e-component-registry.c (query_components): handle the case where
	label == NULL, and set it to _("Unknown").

svn path=/trunk/; revision=23040
This commit is contained in:
Chris Toshok
2003-10-23 15:51:57 +00:00
committed by Chris Toshok
parent fb4cd03fda
commit 39e56385b1
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-10-23 Chris Toshok <toshok@ximian.com>
* e-component-registry.c (query_components): handle the case where
label == NULL, and set it to _("Unknown").
2003-10-22 Ettore Perazzoli <ettore@ximian.com>
* e-sidebar.c (e_sidebar_add_button): Add a little border to the

View File

@ -30,6 +30,7 @@
#include "e-util/e-lang-utils.h"
#include <libgnome/gnome-i18n.h>
#include <gal/util/e-util.h>
#include <bonobo/bonobo-object.h>
@ -124,6 +125,10 @@ query_components (EComponentRegistry *registry)
id = info_list->_buffer[i].iid;
label = bonobo_server_info_prop_lookup (& info_list->_buffer[i], "evolution:button_label", language_list);
if (label == NULL) {
g_print ("no label for %s\n", id);
label = g_strdup (_("Unknown"));
}
icon_name = bonobo_server_info_prop_lookup (& info_list->_buffer[i], "evolution:button_icon", NULL);
if (icon_name == NULL) {