OssoABookGroupView

OssoABookGroupView — Group view.

Synopsis




            OssoABookGroupView;
GtkWidget*  osso_abook_group_view_new       (OssoABookGroupModel *model);
OssoABookGroupModel* osso_abook_group_view_get_model
                                            (OssoABookGroupView *view);
OssoABookGroup* osso_abook_group_view_get_focus
                                            (OssoABookGroupView *view);
GtkTreeView* osso_abook_group_view_get_tree_view
                                            (OssoABookGroupView *view);
void        osso_abook_group_view_enable_drag_dest
                                            (OssoABookGroupView *view);


Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkScrolledWindow
                                 +----OssoABookGroupView
                                       +----OssoABookGroupSelector

Implemented Interfaces

OssoABookGroupView implements AtkImplementorIface.

Properties


  "model"                GtkTreeModel          : Read / Write / Construct Only
  "tree-view"            GtkTreeView           : Read

Signal Prototypes


"contacts-dropped"
            void        user_function      (OssoABookGroupView *ossoabookgroupview,
                                            OssoABookManualGroup *arg1,
                                            gpointer arg2,
                                            gpointer user_data);
"group-activated"
            void        user_function      (OssoABookGroupView *ossoabookgroupview,
                                            OssoABookGroup *arg1,
                                            gpointer user_data);
"group-selected"
            void        user_function      (OssoABookGroupView *ossoabookgroupview,
                                            OssoABookGroup *arg1,
                                            gpointer user_data);
"insensitive-group-selected"
            void        user_function      (OssoABookGroupView *group_view,
                                            OssoABookGroup *group,
                                            gpointer user_data);

Description

OssoABookGroupView is a widget that displays the contents of an OssoABookGroupModel in a list form.

Details

OssoABookGroupView

typedef struct _OssoABookGroupView OssoABookGroupView;

There are no public fields in OssoABookGroupView.


osso_abook_group_view_new ()

GtkWidget*  osso_abook_group_view_new       (OssoABookGroupModel *model);

Creates a new OssoABookGroupView object exposing the contents of model.

model : An OssoABookGroupModel whose contents are to be exposed
Returns : A new OssoABookGroupView object.

osso_abook_group_view_get_model ()

OssoABookGroupModel* osso_abook_group_view_get_model
                                            (OssoABookGroupView *view);

Retreives the contained OssoABookGroupModel.

view : An OssoABookGroupView
Returns : The contained OssoABookGroupModel.

osso_abook_group_view_get_focus ()

OssoABookGroup* osso_abook_group_view_get_focus
                                            (OssoABookGroupView *view);

Retreives the OssoABookGroup whose row is focused, if any.

view : An OssoABookGroupView
Returns : The OssoABookGroup whose row is focused, or NULL.

osso_abook_group_view_get_tree_view ()

GtkTreeView* osso_abook_group_view_get_tree_view
                                            (OssoABookGroupView *view);

Retreives the contained GtkTreeView.

view : An OssoABookGroupView
Returns : The contained GtkTreeView

osso_abook_group_view_enable_drag_dest ()

void        osso_abook_group_view_enable_drag_dest
                                            (OssoABookGroupView *view);

Turns view into a drop destination for EContact UID drags. This enables dropping of EContact UIDs into OssoABookManualGroup groups.

view : An OssoABookGroupView

Properties

The "model" property

  "model"                GtkTreeModel          : Read / Write / Construct Only

The OssoABookGroupModel whose contents are exposed.


The "tree-view" property

  "tree-view"            GtkTreeView           : Read

The contained GtkTreeView widget.

Signals

The "contacts-dropped" signal

void        user_function                  (OssoABookGroupView *ossoabookgroupview,
                                            OssoABookManualGroup *arg1,
                                            gpointer arg2,
                                            gpointer user_data);

The contacts-dropped signal is emitted when one or more EContact UIDs have been dropped onto the widget.

ossoabookgroupview : the object which received the signal.
arg1 : the OssoABookManualGroup the EContact UIDs were dropped into.
arg2 : a GList of EContact UIDs.
user_data : user data set when the signal handler was connected.

The "group-activated" signal

void        user_function                  (OssoABookGroupView *ossoabookgroupview,
                                            OssoABookGroup *arg1,
                                            gpointer user_data);

The group-activated signal is emitted when a group's row has been activated.

ossoabookgroupview : the object which received the signal.
arg1 : The OssoABookGroup whose row was activated.
user_data : user data set when the signal handler was connected.

The "group-selected" signal

void        user_function                  (OssoABookGroupView *ossoabookgroupview,
                                            OssoABookGroup *arg1,
                                            gpointer user_data);

The group-selected signal is emitted when a group's row has been selected.

ossoabookgroupview : the object which received the signal.
arg1 : The OssoABookGroup whose row was selected.
user_data : user data set when the signal handler was connected.

The "insensitive-group-selected" signal

void        user_function                  (OssoABookGroupView *group_view,
                                            OssoABookGroup *group,
                                            gpointer user_data);

Callback to occur whenever an insensitive group has been clicked.

group_view : The OssoABookGroupView that emitted the callback.
group : The OssoABookGroup that was clicked.
user_data : user data set when the signal handler was connected.

See Also

OssoABookGroupModel, OssoABookGroupSelector, OssoABookGroup