]> git.0d.be Git - empathy.git/commitdiff
don't build avatar_chooser_set_avatar_from_pixbuf if building without cheese
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 26 May 2011 16:43:18 +0000 (18:43 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 26 May 2011 16:43:18 +0000 (18:43 +0200)
libempathy-gtk/empathy-avatar-chooser.c

index e7a0d3fc3191ff7253fd9666d04ae77138ba37c3..f7f3b29c11b6dc394832d876a39ebe39af1d78a8 100644 (file)
@@ -734,6 +734,7 @@ avatar_chooser_set_image_from_file (EmpathyAvatarChooser *chooser,
        avatar_chooser_set_image_from_data (chooser, image_data, image_size, TRUE);
 }
 
+#ifdef HAVE_CHEESE
 static void
 avatar_chooser_set_avatar_from_pixbuf (EmpathyAvatarChooser *chooser,
                                       GdkPixbuf            *pb)
@@ -754,7 +755,7 @@ avatar_chooser_set_avatar_from_pixbuf (EmpathyAvatarChooser *chooser,
        avatar = empathy_avatar_new ((guchar *) buf, size, mime, NULL);
        avatar_chooser_set_image (chooser, avatar, pb, TRUE);
 }
-
+#endif
 
 static gboolean
 avatar_chooser_drag_motion_cb (GtkWidget          *widget,