OssoABookSelectDialog

OssoABookSelectDialog — Select a contact dialog.

Synopsis




            OssoABookSelectDialog;
GtkWidget*  osso_abook_select_dialog_new    (OssoABookTreeView *tree_view);
GtkWidget*  osso_abook_select_dialog_new_no_alpha
                                            (OssoABookTreeView *tree_view);
gboolean    osso_abook_select_dialog_get_new_contact
                                            (OssoABookSelectDialog *dialog);
void        osso_abook_select_dialog_set_new_contact
                                            (OssoABookSelectDialog *dialog,
                                             gboolean show_new_contact);
OssoABookTreeView* osso_abook_select_dialog_get_tree_view
                                            (OssoABookSelectDialog *dialog);


Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkWindow
                                 +----GtkDialog
                                       +----OssoABookSelectDialog

Implemented Interfaces

OssoABookSelectDialog implements AtkImplementorIface.

Properties


  "tree-view"            OssoABookTreeView     : Read / Write / Construct Only
  "want-alpha-bar"       gboolean              : Write / Construct Only
  "want-new-contact"     gboolean              : Read / Write / Construct

Signal Prototypes


"ok-insensitive-press"
            gboolean    user_function      (OssoABookSelectDialog *dialog,
                                            gpointer user_data);

Description

OssoABookSelectDialog is a dialog that shows the use a list of contacts and allows them to select from that list.

Details

OssoABookSelectDialog

typedef struct _OssoABookSelectDialog OssoABookSelectDialog;

There are no public fields in OssoABookSelectDialog.


osso_abook_select_dialog_new ()

GtkWidget*  osso_abook_select_dialog_new    (OssoABookTreeView *tree_view);

Creates a new OssoABookSelectDialog exposing tree_view. The dialog will respond with GTK_RESPONSE_OK if the "OK" button was clicked, with GTK_RESPONSE_CANCEL otherwise.

tree_view : An OssoABookTreeView
Returns : A new OssoABookSelectDialog object.

osso_abook_select_dialog_new_no_alpha ()

GtkWidget*  osso_abook_select_dialog_new_no_alpha
                                            (OssoABookTreeView *tree_view);

Creates a new OssoABookSelectDialog exposing tree_view, but without an OssoABookAlphaBar. The dialog will respond with GTK_RESPONSE_OK if the "OK" button was clicked, with GTK_RESPONSE_CANCEL otherwise.

tree_view : An OssoABookTreeView
Returns : A new OssoABookSelectDialog object.

osso_abook_select_dialog_get_new_contact ()

gboolean    osso_abook_select_dialog_get_new_contact
                                            (OssoABookSelectDialog *dialog);

Retreives whether the New Contact button should be shown or not.

dialog : An OssoABookSelectDialog
Returns : A gboolean.

osso_abook_select_dialog_set_new_contact ()

void        osso_abook_select_dialog_set_new_contact
                                            (OssoABookSelectDialog *dialog,
                                             gboolean show_new_contact);

Sets whether the dialog should show a New Contact button or not. This defaults to FALSE.

dialog : An OssoABookSelectDialog
show_new_contact : A gboolean

osso_abook_select_dialog_get_tree_view ()

OssoABookTreeView* osso_abook_select_dialog_get_tree_view
                                            (OssoABookSelectDialog *dialog);

Retreives the contained OssoABookTreeView.

dialog : An OssoABookSelectDialog
Returns : An OssoABookTreeView.

Properties

The "tree-view" property

  "tree-view"            OssoABookTreeView     : Read / Write / Construct Only

The exposed OssoABookTreeView.


The "want-alpha-bar" property

  "want-alpha-bar"       gboolean              : Write / Construct Only

TRUE if the dialog should contain an alpha bar.

Default value: TRUE


The "want-new-contact" property

  "want-new-contact"     gboolean              : Read / Write / Construct

TRUE if the dialog should contain a New Contact button.

Default value: FALSE

Signals

The "ok-insensitive-press" signal

gboolean    user_function                  (OssoABookSelectDialog *dialog,
                                            gpointer user_data);

Callback to occur whenever OK is insensitive and was clicked.

dialog : The OssoABookSelectDialog that emitted the callback
user_data : user data set when the signal handler was connected.
Returns : TRUE if the callback handled it, FALSE otherwise.

See Also

OssoABookAccountModel, OssoABookTreeModel, OssoABookContactSelector, OssoABookAccountSelector, OssoABookAccountView