aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-01 12:23:13 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-01 12:23:13 -0500
commit14e5eeb2a91994d5ed14f786aca9494c45bbf464 (patch)
tree80294d5ee883ed936f38666217a20b89d7314a8a /src
parent059926df08da8b54e2fcee256a2ab977f4dfc307 (diff)
downloadayatana-ido-14e5eeb2a91994d5ed14f786aca9494c45bbf464.tar.gz
ayatana-ido-14e5eeb2a91994d5ed14f786aca9494c45bbf464.tar.bz2
ayatana-ido-14e5eeb2a91994d5ed14f786aca9494c45bbf464.zip
in ido_user_menu_item_set_icon(), remove a g_warning iff icon is NULL
Diffstat (limited to 'src')
-rw-r--r--src/idousermenuitem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idousermenuitem.c b/src/idousermenuitem.c
index 8ceb4ef..03522c7 100644
--- a/src/idousermenuitem.c
+++ b/src/idousermenuitem.c
@@ -400,7 +400,8 @@ ido_user_menu_item_set_icon (IdoUserMenuItem * self, GIcon * icon)
{
g_clear_object (&p->icon);
- p->icon = g_object_ref (icon);
+ if (icon != NULL)
+ p->icon = g_object_ref (icon);
update_avatar (self);
}