aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-07 16:56:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-07 17:09:32 +0800
commitc786f765510f4796153f23b7c6cd549e1d6a2a6c (patch)
tree708187f7c1d70bb0ba19dfe85704f9afba4939ee /libempathy-gtk
parentbda7803e256668ef173342429c4e55de8cae1456 (diff)
downloadgsoc2013-empathy-c786f765510f4796153f23b7c6cd549e1d6a2a6c.tar
gsoc2013-empathy-c786f765510f4796153f23b7c6cd549e1d6a2a6c.tar.gz
gsoc2013-empathy-c786f765510f4796153f23b7c6cd549e1d6a2a6c.tar.bz2
gsoc2013-empathy-c786f765510f4796153f23b7c6cd549e1d6a2a6c.tar.lz
gsoc2013-empathy-c786f765510f4796153f23b7c6cd549e1d6a2a6c.tar.xz
gsoc2013-empathy-c786f765510f4796153f23b7c6cd549e1d6a2a6c.tar.zst
gsoc2013-empathy-c786f765510f4796153f23b7c6cd549e1d6a2a6c.zip
ll-xmpp-assistant: deal with the im-local-xmpp not being found
For some reason my test user can't find it; best to not raise warnings in this case. https://bugzilla.gnome.org/show_bug.cgi?id=683442
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-local-xmpp-assistant-widget.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
index aa4d6cfcb..c55e3ab30 100644
--- a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
+++ b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
@@ -88,11 +88,14 @@ empathy_local_xmpp_assistant_widget_constructed (GObject *object)
gtk_widget_show (w);
pix = empathy_pixbuf_from_icon_name_sized ("im-local-xmpp", 48);
- w = gtk_image_new_from_pixbuf (pix);
- gtk_grid_attach (GTK_GRID (self), w, 1, 0, 1, 1);
- gtk_widget_show (w);
+ if (pix != NULL)
+ {
+ w = gtk_image_new_from_pixbuf (pix);
+ gtk_grid_attach (GTK_GRID (self), w, 1, 0, 1, 1);
+ gtk_widget_show (w);
- g_object_unref (pix);
+ g_object_unref (pix);
+ }
self->priv->settings = empathy_account_settings_new ("salut", "local-xmpp",
NULL, _("People nearby"));