Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
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);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----OssoABookAvatarChooserDialog
OssoABookAvatarChooserDialog implements AtkImplementorIface and GtkBuildable.
"contact" OssoABookContact* : Read / Write "filename" gchar* : Read "icon-name" gchar* : Read "pixbuf" GdkPixbuf* : Read
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.
typedef struct _OssoABookAvatarChooserDialog OssoABookAvatarChooserDialog;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
GtkWidget* osso_abook_avatar_chooser_dialog_new (GtkWindow *parent);
Creates a new OssoABookAvatarChooserDialog
parent : |
an optional parent GtkWindow |
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
|
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
|
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
|
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 |
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
|
"contact"
property"contact" OssoABookContact* : Read / Write
Contact object providing the default avatar image.
"filename"
property"filename" gchar* : Read
The filename of the selected avatar.
Default value: NULL
"icon-name"
property"icon-name" gchar* : Read
The icon name of the selected avatar.
Default value: NULL