Osso Addressbook Reference Manual |
---|
OssoABookContactViewOssoABookContactView — View of contacts. |
OssoABookContactView; GtkWidget* osso_abook_contact_view_new (OssoABookContactModel *model, OssoABookFilterModel *filter_model); GtkWidget* osso_abook_contact_view_new_basic (OssoABookContactModel *model); GList* osso_abook_contact_view_get_selection (OssoABookContactView *view); EContact* osso_abook_contact_view_get_focus (OssoABookContactView *view); void osso_abook_contact_view_enable_drag_source (OssoABookContactView *view);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkScrolledWindow +----OssoABookTreeView +----OssoABookContactView +----OssoABookContactSelector
"contact-activated" void user_function (OssoABookContactView *ossoabookcontactview, EContact *arg1, gpointer user_data); "selection-changed" void user_function (OssoABookContactView *ossoabookcontactview, guint arg1, gpointer user_data);
OssoABookContactView is a widget that displays the contents of an OssoABookContactModel as a list
typedef struct _OssoABookContactView OssoABookContactView;
There are no public fields in OssoABookContactView.
GtkWidget* osso_abook_contact_view_new (OssoABookContactModel *model, OssoABookFilterModel *filter_model);
Creates a new OssoABookContactView object exposing the contents of model
,
as filtered by filter_model
(if non-NULL).
model : |
An OssoABookContactModel whose contents are to be exposed |
filter_model : |
An OssoABookFilterModel filtering model , or NULL
|
Returns : | A new OssoABookContactView object. |
GtkWidget* osso_abook_contact_view_new_basic (OssoABookContactModel *model);
Creates a new OssoABookContactView object exposing the contents of model
,
as filtered through OssoABookAllGroup: all non-blocked contacts.
model : |
An OssoABookContactModel whose contents are to be exposed |
Returns : | A new OssoABookContactView object. |
GList* osso_abook_contact_view_get_selection (OssoABookContactView *view);
Retreives the set of selected rows as a GList of EContact objects.
The returned GList should be freed manually, but don't g_object_unref()
the elements.
view : |
An OssoABookContactView |
Returns : | A newly allocated GList of EContact objects. |
EContact* osso_abook_contact_view_get_focus (OssoABookContactView *view);
Retreives the EContact whose row is focused, if any.
view : |
An OssoABookContactView |
Returns : | The EContact whose row is focused, or NULL. The contact is
owned by libosso-abook and should not be g_object_unref() 'ed.
|
void osso_abook_contact_view_enable_drag_source (OssoABookContactView *view);
Turns view
into a drag source for EContact UID drags.
view : |
An OssoABookGroupView |
void user_function (OssoABookContactView *ossoabookcontactview, EContact *arg1, gpointer user_data);
The contact-activated signal is emitted when a contact's row has been activated.
ossoabookcontactview : |
the object which received the signal. |
arg1 : |
the EContact whose row was activated. |
user_data : |
user data set when the signal handler was connected. |
void user_function (OssoABookContactView *ossoabookcontactview, guint arg1, gpointer user_data);
The selection-changed signal is emitted when the set of selected rows has changed.
ossoabookcontactview : |
the object which received the signal. |
arg1 : |
the number of selected rows. |
user_data : |
user data set when the signal handler was connected. |
<< OssoABookContactModel | OssoABookContactSelector >> |