*/
#include "config.h"
-
-#include <string.h>
+#include "empathy-avatar-chooser.h"
#include <glib/gi18n-lib.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-
-#include <libempathy/empathy-camera-monitor.h>
-#include <libempathy/empathy-gsettings.h>
-#include <libempathy/empathy-utils.h>
-
-#include "empathy-avatar-chooser.h"
-#include "empathy-images.h"
-#include "empathy-ui-utils.h"
#ifdef HAVE_CHEESE
#include <cheese-avatar-chooser.h>
#endif /* HAVE_CHEESE */
+#include "empathy-camera-monitor.h"
+#include "empathy-gsettings.h"
+#include "empathy-images.h"
+#include "empathy-ui-utils.h"
+#include "empathy-utils.h"
#define DEBUG_FLAG EMPATHY_DEBUG_OTHER
-#include <libempathy/empathy-debug.h>
+#include "empathy-debug.h"
/**
* SECTION:empathy-avatar-chooser
GAsyncResult *result,
gpointer user_data)
{
- TpWeakRef *weak = user_data;
- EmpathyAvatarChooser *self = tp_weak_ref_dup_object (weak);
+ TpWeakRef *wr = user_data;
+ EmpathyAvatarChooser *self = tp_weak_ref_dup_object (wr);
const GArray *avatar;
GdkPixbuf *pixbuf;
gchar *mime_type;
GError *error = NULL;
if (self == NULL)
- goto out;
+ {
+ tp_weak_ref_destroy (wr);
+ return;
+ }
avatar = tp_account_get_avatar_finish (self->priv->account, result, &error);
if (avatar == NULL)
g_free (mime_type);
self->priv->changed = FALSE;
- g_object_unref (self);
out:
- tp_weak_ref_destroy (weak);
+ tp_weak_ref_destroy (wr);
+ g_object_unref (self);
}
static void
else
{
gtk_image_set_from_stock (GTK_IMAGE (image),
- "gtk-dialog-question",
+ "dialog-question",
GTK_ICON_SIZE_DIALOG);
}