diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-07-17 12:58:55 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-07-17 12:58:55 +0800 |
commit | 6bb3bbdfff7383749d19a57cfe3162cd67aabf9b (patch) | |
tree | 45ed719c87fd8e1fd8f3e304d0bf187bfba3a7d3 /addressbook/gui/component/select-names/e-select-names-manager.h | |
parent | ca133393551eb77aeff1af61e04541b71be4a28a (diff) | |
download | gsoc2013-evolution-6bb3bbdfff7383749d19a57cfe3162cd67aabf9b.tar gsoc2013-evolution-6bb3bbdfff7383749d19a57cfe3162cd67aabf9b.tar.gz gsoc2013-evolution-6bb3bbdfff7383749d19a57cfe3162cd67aabf9b.tar.bz2 gsoc2013-evolution-6bb3bbdfff7383749d19a57cfe3162cd67aabf9b.tar.lz gsoc2013-evolution-6bb3bbdfff7383749d19a57cfe3162cd67aabf9b.tar.xz gsoc2013-evolution-6bb3bbdfff7383749d19a57cfe3162cd67aabf9b.tar.zst gsoc2013-evolution-6bb3bbdfff7383749d19a57cfe3162cd67aabf9b.zip |
Added addSectionWithLimit to the SelectNames interface.
2001-07-16 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/Evolution-Addressbook-SelectNames.idl:
Added addSectionWithLimit to the SelectNames interface.
* gui/component/select-names/e-select-names-bonobo.c
(impl_SelectNames_add_section_with_limit): Added. Implements
addSectionWithLimit.
(e_select_names_bonobo_construct): Set up as a BonoboEventSource.
(init): Listen for "changed" signals from our manager.
(manager_changed_cb): Notify our listeners if we get a changed
signal from our manager.
* gui/component/select-names/e-select-names-manager.c
(e_select_names_manager_class_init): Added a "changed" signal".
(section_copy): Propogate the signal connection.
(section_free): Disconnect the changed handler.
(e_select_names_manager_add_section_with_limit): Connect to the
new section's model, listening for changes.
(e_select_names_manager_activate_dialog): Connect to the "working
copy" model, listening for changes.
(e_select_names_manager_add_section_with_limit): Added.
(e_select_names_manager_add_section): Changed to just be a special
case of e_select_names_manager_add_section_with_limit.
* gui/component/select-names/e-select-names-model.c
(e_select_names_model_set_limit): Added. Allows a max number of
names allowed in the model.
(e_select_names_model_get_limit): Added. Returns the limit.
(e_select_names_model_at_limit): Added. Returns TRUE if the
model is "full".
(e_select_names_model_insert): Check that we aren't at the
limit before inserting. Silently return if we are.
(e_select_names_model_append): Check that we aren't at the
limit before appending. Silently return if we are.
svn path=/trunk/; revision=11150
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-manager.h')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-manager.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-manager.h b/addressbook/gui/component/select-names/e-select-names-manager.h index ba7ed58d08..61779fb56a 100644 --- a/addressbook/gui/component/select-names/e-select-names-manager.h +++ b/addressbook/gui/component/select-names/e-select-names-manager.h @@ -35,26 +35,32 @@ struct _ESelectNamesManager { struct _ESelectNamesManagerClass { GtkObjectClass parent_class; + + void (*changed) (ESelectNamesManager *, const gchar *section_id, gint changed_working_copy); }; -ESelectNamesManager *e_select_names_manager_new (void); -void e_select_names_manager_add_section (ESelectNamesManager *manager, - const char *id, - const char *title); -ESelectNamesModel *e_select_names_manager_get_source (ESelectNamesManager *manager, - const char *id); -GtkWidget *e_select_names_manager_create_entry (ESelectNamesManager *manager, - const char *id); -void e_select_names_manager_activate_dialog (ESelectNamesManager *manager, - const char *id); +ESelectNamesManager *e_select_names_manager_new (void); +void e_select_names_manager_add_section (ESelectNamesManager *manager, + const char *id, + const char *title); +void e_select_names_manager_add_section_with_limit (ESelectNamesManager *manager, + const char *id, + const char *title, + gint limit); +ESelectNamesModel *e_select_names_manager_get_source (ESelectNamesManager *manager, + const char *id); +GtkWidget *e_select_names_manager_create_entry (ESelectNamesManager *manager, + const char *id); +void e_select_names_manager_activate_dialog (ESelectNamesManager *manager, + const char *id); #if 0 /* Of type ECard */ -EList *e_select_names_manager_get_cards (ESelectNamesManager *manager, - const char *id); +EList *e_select_names_manager_get_cards (ESelectNamesManager *manager, + const char *id); #endif /* Standard Gtk function */ -GtkType e_select_names_manager_get_type (void); +GtkType e_select_names_manager_get_type (void); #endif /* ! __E_SELECT_NAMES_MANAGER_H__ */ |