diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2005-03-11 20:02:48 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2005-03-11 20:02:48 +0800 |
commit | 887b0ad8536c0940de0ac053e2da7b2540aa5267 (patch) | |
tree | bc1de760762896fc14f1a110c774aaec1fb870d0 /calendar | |
parent | 29e5339298f35383c7925a3c6f71942c8e164634 (diff) | |
download | gsoc2013-evolution-887b0ad8536c0940de0ac053e2da7b2540aa5267.tar.gz gsoc2013-evolution-887b0ad8536c0940de0ac053e2da7b2540aa5267.tar.zst gsoc2013-evolution-887b0ad8536c0940de0ac053e2da7b2540aa5267.zip |
Handling static capability for disabling general send options at the
right palce. Fixes #73501
svn path=/trunk/; revision=29000
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 12 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 11 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 9 |
3 files changed, 23 insertions, 9 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d99d4fbe51..9eb77e13cb 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,15 @@ +2005-03-11 Sushma Rai <rsushma@novell.com> + + * gui/dialogs/event-page.c (event_page_show_options): Removed the check + for general options page static capability. Send options dialog will + not be created at this point. + (e_sendoptions_clicked_cb): Checking for the general options page + static capability, when used clicks send options button. + + * gui/dialogs/task-page.c (task_page_show_options) + (e_sendoptions_clicked_cb): Similar. + Fixes #73501 + 2005-03-09 Not Zed <NotZed@Ximian.com> * gui/e-week-view-event-item.c (e_week_view_event_item_draw_icons): diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index f659ad71fe..51b11170cd 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -655,10 +655,6 @@ event_page_show_options (EventPage *page) g_return_if_fail (IS_EVENT_PAGE (page)); gtk_widget_show (page->priv->sendoptions_frame); - - if (e_cal_get_static_capability (COMP_EDITOR_PAGE (page)->client, CAL_STATIC_CAPABILITY_NO_GEN_OPTIONS)) - e_sendoptions_set_need_general_options (page->priv->sod, FALSE); - page->priv->sendoptions_shown = TRUE; } @@ -1619,7 +1615,7 @@ e_sendoptions_clicked_cb (GtkWidget *button, gpointer data) EventPagePrivate *priv; GtkWidget *toplevel; ESource *source; - + epage = EVENT_PAGE (data); priv = epage->priv; @@ -1630,6 +1626,11 @@ e_sendoptions_clicked_cb (GtkWidget *button, gpointer data) priv->sod->data->initialized = TRUE; } + if (e_cal_get_static_capability (COMP_EDITOR_PAGE (epage)->client, + CAL_STATIC_CAPABILITY_NO_GEN_OPTIONS)) { + e_sendoptions_set_need_general_options (priv->sod, FALSE); + } + toplevel = gtk_widget_get_toplevel (priv->main); e_sendoptions_dialog_run (priv->sod, toplevel, E_ITEM_CALENDAR); } diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 48128c4099..04aca3ebba 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -287,10 +287,6 @@ task_page_show_options (TaskPage *page) g_return_if_fail (IS_TASK_PAGE (page)); gtk_widget_show (page->priv->sendoptions_frame); - - if (e_cal_get_static_capability (COMP_EDITOR_PAGE (page)->client, CAL_STATIC_CAPABILITY_NO_GEN_OPTIONS)) - e_sendoptions_set_need_general_options (page->priv->sod, FALSE); - page->priv->sendoptions_shown = TRUE; } @@ -912,6 +908,11 @@ e_sendoptions_clicked_cb (GtkWidget *button, gpointer data) e_sendoptions_utils_set_default_data (priv->sod, source, "task"); } + if (e_cal_get_static_capability (COMP_EDITOR_PAGE (tpage)->client, + CAL_STATIC_CAPABILITY_NO_GEN_OPTIONS)) { + e_sendoptions_set_need_general_options (priv->sod, FALSE); + } + toplevel = gtk_widget_get_toplevel (priv->main); e_sendoptions_dialog_run (priv->sod, toplevel, E_ITEM_TASK); } |