Blame telepathy-account-widgets/tp-account-widgets/tpaw-avatar-chooser.h

Packit 79f644
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
Packit 79f644
/*
Packit 79f644
 * Copyright (C) 2006-2007 Imendio AB.
Packit 79f644
 * Copyright (C) 2007-2008 Collabora Ltd.
Packit 79f644
 *
Packit 79f644
 * This library is free software; you can redistribute it and/or
Packit 79f644
 * modify it under the terms of the GNU Lesser General Public
Packit 79f644
 * License as published by the Free Software Foundation; either
Packit 79f644
 * version 2.1 of the License, or (at your option) any later version.
Packit 79f644
 *
Packit 79f644
 * This library is distributed in the hope that it will be useful,
Packit 79f644
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 79f644
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 79f644
 * Lesser General Public License for more details.
Packit 79f644
 *
Packit 79f644
 * You should have received a copy of the GNU Lesser General Public
Packit 79f644
 * License along with this library; if not, write to the Free Software
Packit 79f644
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 79f644
 *
Packit 79f644
 * Authors: Based on Novell's e-image-chooser.
Packit 79f644
 *          Xavier Claessens <xclaesse@gmail.com>
Packit 79f644
 */
Packit 79f644
Packit 79f644
#ifndef __TPAW_AVATAR_CHOOSER_H__
Packit 79f644
#define __TPAW_AVATAR_CHOOSER_H__
Packit 79f644
Packit 79f644
#include <gio/gio.h>
Packit 79f644
#include <gtk/gtk.h>
Packit 79f644
#include <telepathy-glib/telepathy-glib.h>
Packit 79f644
Packit 79f644
G_BEGIN_DECLS
Packit 79f644
Packit 79f644
#define TPAW_TYPE_AVATAR_CHOOSER        (tpaw_avatar_chooser_get_type ())
Packit 79f644
#define TPAW_AVATAR_CHOOSER(obj)        (G_TYPE_CHECK_INSTANCE_CAST ((obj), TPAW_TYPE_AVATAR_CHOOSER, TpawAvatarChooser))
Packit 79f644
#define TPAW_AVATAR_CHOOSER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TPAW_TYPE_AVATAR_CHOOSER, TpawAvatarChooserClass))
Packit 79f644
#define TPAW_IS_AVATAR_CHOOSER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TPAW_TYPE_AVATAR_CHOOSER))
Packit 79f644
#define TPAW_IS_AVATAR_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), TPAW_TYPE_AVATAR_CHOOSER))
Packit 79f644
Packit 79f644
typedef struct _TpawAvatarChooser        TpawAvatarChooser;
Packit 79f644
typedef struct _TpawAvatarChooserClass   TpawAvatarChooserClass;
Packit 79f644
typedef struct _TpawAvatarChooserPrivate TpawAvatarChooserPrivate;
Packit 79f644
Packit 79f644
struct _TpawAvatarChooser
Packit 79f644
{
Packit 79f644
  GtkButton parent;
Packit 79f644
Packit 79f644
  /*<private>*/
Packit 79f644
  TpawAvatarChooserPrivate *priv;
Packit 79f644
};
Packit 79f644
Packit 79f644
struct _TpawAvatarChooserClass
Packit 79f644
{
Packit 79f644
  GtkButtonClass parent_class;
Packit 79f644
};
Packit 79f644
Packit 79f644
GType tpaw_avatar_chooser_get_type (void);
Packit 79f644
Packit 79f644
GtkWidget *tpaw_avatar_chooser_new (TpAccount *account,
Packit 79f644
    gint pixel_size);
Packit 79f644
Packit 79f644
void tpaw_avatar_chooser_apply_async (TpawAvatarChooser *self,
Packit 79f644
    GAsyncReadyCallback callback,
Packit 79f644
    gpointer user_data);
Packit 79f644
gboolean tpaw_avatar_chooser_apply_finish (TpawAvatarChooser *self,
Packit 79f644
    GAsyncResult *result,
Packit 79f644
    GError **error);
Packit 79f644
Packit 79f644
#endif /* __TPAW_AVATAR_CHOOSER_H__ */