diff options
author | JP Rosevear <jpr@ximian.com> | 2001-12-22 00:17:09 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-12-22 00:17:09 +0800 |
commit | 72d188ef338726b5e5f831ce8976e8c7a33af7f4 (patch) | |
tree | cc01c585bde12f1b365c0b5dd8309b8f6dcda9a3 /calendar/gui/dialogs/send-comp.c | |
parent | 44ec04bb27be55cd7456632d04cfe082cc8ba954 (diff) | |
download | gsoc2013-evolution-72d188ef338726b5e5f831ce8976e8c7a33af7f4.tar.gz gsoc2013-evolution-72d188ef338726b5e5f831ce8976e8c7a33af7f4.tar.zst gsoc2013-evolution-72d188ef338726b5e5f831ce8976e8c7a33af7f4.zip |
remove needs send signal related cruft (save_comp_with_send): with
2001-12-21 JP Rosevear <jpr@ximian.com>
* gui/dialogs/comp-editor.c: remove needs send signal related
cruft
(save_comp_with_send): with send_component_dialog, indicate if the
meeting info is newly created or not
(real_edit_comp): remember if the dialog initially needs a send
* gui/dialogs/send-comp.c (send_component_dialog): take a "new"
parameter indicating whether the dialog should intimate if the
component to be sent is a new meeting or not
* gui/dialogs/send-comp.h: update proto
* gui/dialogs/comp-editor.c: remove no longer used needs_send
notification and signal
* gui/dialogs/comp-editor.h: remove proto
* gui/e-day-view.c (e_day_view_on_main_canvas_drag_data_received): add new
param to send_component_dialog
(e_day_view_finish_long_event_resize): ditto
(e_day_view_finish_resize): ditto
(e_day_view_on_editing_stopped): ditto
(e_day_view_on_top_canvas_drag_data_received): ditto
* gui/e-week-view.c (e_week_view_on_editing_stopped): add new
param to send_component_dialog
svn path=/trunk/; revision=15204
Diffstat (limited to 'calendar/gui/dialogs/send-comp.c')
-rw-r--r-- | calendar/gui/dialogs/send-comp.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c index 8fe62e77b3..2afd92320e 100644 --- a/calendar/gui/dialogs/send-comp.c +++ b/calendar/gui/dialogs/send-comp.c @@ -42,7 +42,7 @@ * Return value: TRUE if the user clicked Yes, FALSE otherwise. **/ gboolean -send_component_dialog (CalComponent *comp) +send_component_dialog (CalComponent *comp, gboolean new) { GtkWidget *dialog; CalComponentVType vtype; @@ -52,18 +52,24 @@ send_component_dialog (CalComponent *comp) switch (vtype) { case CAL_COMPONENT_EVENT: - str = g_strdup_printf (_("The meeting information has changed. " - "Send an updated version?")); + if (new) + str = g_strdup_printf (_("The meeting information has " + "been created. Send it?")); + else + str = g_strdup_printf (_("The meeting information has " + "changed. Send an updated " + "version?")); break; case CAL_COMPONENT_TODO: - str = g_strdup_printf (_("The task information has changed. " - "Send an updated version?")); - break; - - case CAL_COMPONENT_JOURNAL: - str = g_strdup_printf (_("The journal entry has changed. " - "Send an updated version?")); + if (new) + str = g_strdup_printf (_("The task assignment " + "information has been " + "created. Send it?")); + else + str = g_strdup_printf (_("The task information has " + "changed. Send an updated " + "version?")); break; default: |