OssoABookAvatarChooserDialog

OssoABookAvatarChooserDialog — A dialog for selecting avatar images.

Synopsis

                    OssoABookAvatarChooserDialog;
GtkWidget*          osso_abook_avatar_chooser_dialog_new
                                                        (GtkWindow *parent);
GdkPixbuf*          osso_abook_avatar_chooser_dialog_get_pixbuf
                                                        (OssoABookAvatarChooserDialog *dialog);
const char*         osso_abook_avatar_chooser_dialog_get_filename
                                                        (OssoABookAvatarChooserDialog *dialog);
const char*         osso_abook_avatar_chooser_dialog_get_icon_name
                                                        (OssoABookAvatarChooserDialog *dialog);
void                osso_abook_avatar_chooser_dialog_set_contact
                                                        (OssoABookAvatarChooserDialog *dialog,
                                                         OssoABookContact *contact);
OssoABookContact*   osso_abook_avatar_chooser_dialog_get_contact
                                                        (OssoABookAvatarChooserDialog *dialog);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----GtkDialog
                                             +----OssoABookAvatarChooserDialog

Implemented Interfaces

OssoABookAvatarChooserDialog implements AtkImplementorIface and GtkBuildable.

Properties

  "contact"                  OssoABookContact*     : Read / Write
  "filename"                 gchar*                : Read
  "icon-name"                gchar*                : Read
  "pixbuf"                   GdkPixbuf*            : Read

Description

This module provides a dialog that allows a user to select a new avatar for a given contact. The dialog presents a set of standard avatars to choose from, and also allows the user to select a custom image from the filesystem.

Details

OssoABookAvatarChooserDialog

typedef struct _OssoABookAvatarChooserDialog OssoABookAvatarChooserDialog;

All the fields of this structure are private to the object's implementation and should never be accessed directly.


osso_abook_avatar_chooser_dialog_new ()

GtkWidget*          osso_abook_avatar_chooser_dialog_new
                                                        (GtkWindow *parent);

Creates a new OssoABookAvatarChooserDialog

parent : an optional parent GtkWindow

osso_abook_avatar_chooser_dialog_get_pixbuf ()

GdkPixbuf*          osso_abook_avatar_chooser_dialog_get_pixbuf
                                                        (OssoABookAvatarChooserDialog *dialog);

Gets the current image selected in the dialog as a GdkPixbuf

dialog : a OssoABookAvatarChooserDialog
Returns : a GdkPixbuf of the current avatar, owned by dialog

osso_abook_avatar_chooser_dialog_get_filename ()

const char*         osso_abook_avatar_chooser_dialog_get_filename
                                                        (OssoABookAvatarChooserDialog *dialog);

Gets the filename of the current avatar if a custom file is used

dialog : a OssoABookAvatarChooserDialog
Returns : The filename of the current avatar, owned by dialog

osso_abook_avatar_chooser_dialog_get_icon_name ()

const char*         osso_abook_avatar_chooser_dialog_get_icon_name
                                                        (OssoABookAvatarChooserDialog *dialog);

Gets the icon name of the current avatar, if a standard stock icon is used

dialog : a OssoABookAvatarChooserDialog
Returns : The icon name of the current avatar, owned by dialog

osso_abook_avatar_chooser_dialog_set_contact ()

void                osso_abook_avatar_chooser_dialog_set_contact
                                                        (OssoABookAvatarChooserDialog *dialog,
                                                         OssoABookContact *contact);

Sets contact as the contact for which we are choosing a new avatar. When contact is a roster contact, the default avatar image will display a copy of the contact's avatar from the server

dialog : a OssoABookAvatarChooserDialog
contact : the new contact

osso_abook_avatar_chooser_dialog_get_contact ()

OssoABookContact*   osso_abook_avatar_chooser_dialog_get_contact
                                                        (OssoABookAvatarChooserDialog *dialog);

dialog : a OssoABookContact
Returns : the contact for which we are choosing a new avatar, owned by dialog

Property Details

The "contact" property

  "contact"                  OssoABookContact*     : Read / Write

Contact object providing the default avatar image.


The "filename" property

  "filename"                 gchar*                : Read

The filename of the selected avatar.

Default value: NULL


The "icon-name" property

  "icon-name"                gchar*                : Read

The icon name of the selected avatar.

Default value: NULL


The "pixbuf" property

  "pixbuf"                   GdkPixbuf*            : Read

The GdkPixbuf of the selected avatar.