EmpathyContactSelector

EmpathyContactSelector — A widget used to choose from a list of contacts.

Synopsis


#include <libempathy-gtk/empathy-contact-selector.h>

                    EmpathyContactSelector;
GtkWidget *         empathy_contact_selector_new        (EmpathyContactList *contact_list);
EmpathyContact *    empathy_contact_selector_dup_selected
                                                        (EmpathyContactSelector *selector);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkComboBox
                                       +----EmpathyContactSelector

Implemented Interfaces

EmpathyContactSelector implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.

Properties

  "contact-list"             EmpathyContactList*   : Read / Write / Construct Only

Description

EmpathyContactSelector is a widget which extends GtkComboBox to provide a chooser of available contacts.

Details

EmpathyContactSelector

typedef struct _EmpathyContactSelector EmpathyContactSelector;

Widget which extends GtkComboBox to provide a chooser of available contacts.


empathy_contact_selector_new ()

GtkWidget *         empathy_contact_selector_new        (EmpathyContactList *contact_list);

Creates a new EmpathyContactSelector.

contact_list :

an EmpathyContactList containing the contacts to list in the contact selector

Returns :

A new EmpathyContactSelector

empathy_contact_selector_dup_selected ()

EmpathyContact *    empathy_contact_selector_dup_selected
                                                        (EmpathyContactSelector *selector);

Returns a new reference to the contact which is currently selected in selector, or NULL if there is no contact selected. The returned contact should be unrefed with g_object_unref() when finished with.

selector :

An EmpathyContactSelector

Returns :

A new reference to the contact currently selected, or NULL

Property Details

The "contact-list" property

  "contact-list"             EmpathyContactList*   : Read / Write / Construct Only

An EmpathyContactList containing the contacts for the EmpathyContactSelector.