aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-02-03 05:57:37 +0800
committerChris Toshok <toshok@src.gnome.org>2004-02-03 05:57:37 +0800
commit04d688c182981ee00bb33ca97dc3b45982db048d (patch)
tree2fa9c6274234031b149f5d64dec31a35591b30aa /shell
parentf885f6f54e3479d21bf473744e6938c885aecf52 (diff)
downloadgsoc2013-evolution-04d688c182981ee00bb33ca97dc3b45982db048d.tar.gz
gsoc2013-evolution-04d688c182981ee00bb33ca97dc3b45982db048d.tar.zst
gsoc2013-evolution-04d688c182981ee00bb33ca97dc3b45982db048d.zip
don't generate a g_warning if button_icon == NULL. (component_info_free):
2004-02-02 Chris Toshok <toshok@ximian.com> * e-component-registry.c (component_info_new): don't generate a g_warning if button_icon == NULL. (component_info_free): unref the button_icon if it's != NULL. svn path=/trunk/; revision=24573
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-component-registry.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index f705d6cb7a..8c66c2c48e 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-02 Chris Toshok <toshok@ximian.com>
+
+ * e-component-registry.c (component_info_new): don't generate a
+ g_warning if button_icon == NULL.
+ (component_info_free): unref the button_icon if it's != NULL.
+
2004-01-29 JP Rosevear <jpr@ximian.com>
* main.c: turn development stuff back on
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c
index b1a6560078..40568485b1 100644
--- a/shell/e-component-registry.c
+++ b/shell/e-component-registry.c
@@ -66,7 +66,8 @@ component_info_new (const char *id,
info->sort_order = sort_order;
info->button_icon = button_icon;
- g_object_ref (button_icon);
+ if (info->button_icon)
+ g_object_ref (info->button_icon);
return info;
}
@@ -78,6 +79,9 @@ component_info_free (EComponentInfo *info)
g_free (info->alias);
g_free (info->button_label);
+ if (info->button_icon)
+ g_object_unref (info->button_icon);
+
if (info->iface != NULL)
bonobo_object_release_unref (info->iface, NULL);
span>/+1 * Remove USE_REINPLACE from all categories starting with Sedwin2006-05-131-1/+0 * Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-071-0/+1 * - Add SHA256garga2005-11-081-0/+1 * Change MAINTAINER to my @FreeBSD.org accountgarga2005-07-121-1/+1 * - Update to 0.58leeym2005-04-305-58/+29 * Security update to 0.57.simon2005-02-212-3/+3 * - Security Update to 0.56dinoex2004-10-282-3/+3 * - drop maintainershipdinoex2004-10-141-1/+1 * - Security update to 0.55dinoex2004-08-04