diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2005-04-01 16:44:56 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-04-01 16:44:56 +0800 |
commit | 113a8f574a582aecca3deb42ca97c95002a3a8a2 (patch) | |
tree | c4148ada18de41d4fa8417fd684b50880847d75b /calendar/gui/dialogs/comp-editor.c | |
parent | c43effa4ea33361f4aa573747036ab932270b9e4 (diff) | |
download | gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.gz gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.bz2 gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.lz gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.xz gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.zst gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.zip |
Fixes #73879 Added a function to sensitize/desensitize the attachment bar.
2005-03-31 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #73879
* gui/dialogs/comp-editor.[ch]:
(comp_editor_sensitize_attachment_bar): Added a function
to sensitize/desensitize the attachment bar.
(comp_editor_notify_client_changed): When client changes
sensitize the attachment bar.
* gui/dialogs/event-editor.c: (event_editor_construct):
* gui/dialogs/task-editor.c: (task_editor_construct): Sensitize
the attachment bar.
svn path=/trunk/; revision=29146
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 8286b444e8..26cc13e179 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -990,6 +990,20 @@ setup_widgets (CompEditor *editor) } +void +comp_editor_sensitize_attachment_bar (CompEditor *editor, gboolean set) +{ + CompEditorPrivate *priv; + + g_return_if_fail (IS_COMP_EDITOR (editor)); + + priv = editor->priv; + + gtk_widget_set_sensitive (GTK_WIDGET (priv->attachment_bar), set); + gtk_widget_set_sensitive (GTK_WIDGET (priv->attachment_scrolled_window), set); + gtk_widget_set_sensitive (GTK_WIDGET (priv->attachment_expander), set); +} + /* Object initialization function for the calendar component editor */ static void comp_editor_init (CompEditor *editor) @@ -1769,6 +1783,7 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method) if (!e_cal_component_has_attachments (priv->comp)) { if (itip_send_comp (method, priv->comp, priv->client, NULL, NULL)) { +#if 0 tmp_comp = priv->comp; g_object_ref (tmp_comp); comp_editor_edit_comp (editor, tmp_comp); @@ -1776,6 +1791,7 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method) comp_editor_set_changed (editor, TRUE); save_comp (editor); +#endif return TRUE; } @@ -2014,7 +2030,7 @@ comp_editor_notify_client_changed (CompEditor *editor, ECal *client) if (!e_cal_is_read_only (client, &read_only, NULL)) read_only = TRUE; - + comp_editor_sensitize_attachment_bar (editor, !read_only); gtk_dialog_set_response_sensitive (GTK_DIALOG (editor), GTK_RESPONSE_OK, !read_only); } |