diff options
author | JP Rosevear <jpr@ximian.com> | 2001-09-20 02:46:34 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-09-20 02:46:34 +0800 |
commit | e5c7ee01fd8892709c7c6d7e925fdbaa37ff406e (patch) | |
tree | 052f060da4f34303224dddbda7fce90cedac66c9 /calendar/gui/dialogs/comp-editor.c | |
parent | 982c014bffdcf15207e8a778689d1156ffc5161e (diff) | |
download | gsoc2013-evolution-e5c7ee01fd8892709c7c6d7e925fdbaa37ff406e.tar.gz gsoc2013-evolution-e5c7ee01fd8892709c7c6d7e925fdbaa37ff406e.tar.zst gsoc2013-evolution-e5c7ee01fd8892709c7c6d7e925fdbaa37ff406e.zip |
listen for model changes (task_editor_edit_comp): add the attendees to the
2001-09-19 JP Rosevear <jpr@ximian.com>
* gui/dialogs/task-editor.c (init_widgets): listen for model
changes
(task_editor_edit_comp): add the attendees to the model and notify
of need send
(row_count_changed_cb): mark as changed when row added/deleted
(model_row_changed_cb): mark as changed when row changes
* gui/dialogs/event-editor.c (init_widgets): listen for model
changes
(event_editor_init): flip page order
(event_editor_edit_comp): set needs send value
(schedule_meeting_cmd): flip page order
(row_count_changed_cb): mark as changed when row added/deleted
(model_row_changed_cb): mark as changed when row changes
* gui/dialogs/schedule-page.c: remove model change notification
stuff
(schedule_page_fill_widgets): no need to do the needs_send here
because the editor handles this since it owns the model
* gui/dialogs/event-editor.c (init_widgets): listen for model
changes
(event_editor_init): flip page order
(event_editor_edit_comp): set needs send value
(schedule_meeting_cmd): flip page order
(row_count_changed_cb): mark as changed when row added/deleted
(model_row_changed_cb): mark as changed when row changes
* gui/dialogs/meeting-page.c (meeting_page_fill_widgets): no need
to do the needs_send here because the editor handles this since it
owns the model
(invite_entry_changed): ditto
* gui/dialogs/comp-editor.c (comp_editor_set_changed): new
accessor
(comp_editor_get_changed): ditto
(comp_editor_set_needs_send): ditto
(comp_editor_get_needs_send): ditto
* gui/dialogs/comp-editor.h: new protos
* gui/itip-utils.c (itip_addresses_get): reflect configuration
path changes in the mailer
* gui/e-meeting-model.c: remove commented out code, ifdef one
section for later
svn path=/trunk/; revision=12983
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index de4e528334..ca2b7cfe4f 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -265,6 +265,78 @@ comp_editor_destroy (GtkObject *object) /** + * comp_editor_set_changed: + * @editor: A component editor + * @changed: Value to set the changed state to + * + * Set the dialog changed state to the given value + **/ +void +comp_editor_set_changed (CompEditor *editor, gboolean changed) +{ + CompEditorPrivate *priv; + + priv = editor->priv; + + priv->changed = changed; +} + +/** + * comp_editor_get_changed: + * @editor: A component editor + * + * Gets the changed state of the dialog + * + * Return value: A boolean indicating if the dialog is in a changed + * state + **/ +gboolean +comp_editor_get_changed (CompEditor *editor) +{ + CompEditorPrivate *priv; + + priv = editor->priv; + + return priv->changed; +} + +/** + * comp_editor_set_needs_send: + * @editor: A component editor + * @needs_send: Value to set the needs send state to + * + * Set the dialog needs send state to the given value + **/ +void +comp_editor_set_needs_send (CompEditor *editor, gboolean needs_send) +{ + CompEditorPrivate *priv; + + priv = editor->priv; + + priv->needs_send = needs_send; +} + +/** + * comp_editor_get_needs_send: + * @editor: A component editor + * + * Gets the needs send state of the dialog + * + * Return value: A boolean indicating if the dialog is in a needs send + * state + **/ +gboolean +comp_editor_get_needs_send (CompEditor *editor) +{ + CompEditorPrivate *priv; + + priv = editor->priv; + + return priv->needs_send; +} + +/** * comp_editor_append_page: * @editor: A component editor * @page: A component editor page |