]> git.0d.be Git - empathy.git/commitdiff
ll-xmpp-assistant: deal with the im-local-xmpp not being found
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 7 Sep 2012 08:56:11 +0000 (10:56 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 7 Sep 2012 09:09:32 +0000 (11:09 +0200)
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

libempathy-gtk/empathy-local-xmpp-assistant-widget.c

index aa4d6cfcb16f2cd4a97637a3ea91df2b00ef6f64..c55e3ab3011eac3ed840c0e40b4ac986cc125b79 100644 (file)
@@ -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"));