diff options
author | JP Rosevear <jpr@ximian.com> | 2001-06-20 07:48:12 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-06-20 07:48:12 +0800 |
commit | 0adb39b6b0d8a41ce80444b86be9555719d2552a (patch) | |
tree | c97ce55c0f1a5c6dcf64ab7bc21e0e2f93bfa48a /calendar/gui/dialogs/task-editor.c | |
parent | b33b09f19def72f9fecc84ce2e2e3efff18b232e (diff) | |
download | gsoc2013-evolution-0adb39b6b0d8a41ce80444b86be9555719d2552a.tar.gz gsoc2013-evolution-0adb39b6b0d8a41ce80444b86be9555719d2552a.tar.zst gsoc2013-evolution-0adb39b6b0d8a41ce80444b86be9555719d2552a.zip |
add ui (forward_cmd): implement forward command
2001-06-19 JP Rosevear <jpr@ximian.com>
* gui/dialogs/task-editor.c (task_editor_init): add ui
(forward_cmd): implement forward command
* gui/dialogs/comp-editor.c (save_as_ok): bug fix, seems to work
now
svn path=/trunk/; revision=10315
Diffstat (limited to 'calendar/gui/dialogs/task-editor.c')
-rw-r--r-- | calendar/gui/dialogs/task-editor.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c index 2a1f25cfbf..6fcff0d2cb 100644 --- a/calendar/gui/dialogs/task-editor.c +++ b/calendar/gui/dialogs/task-editor.c @@ -46,6 +46,14 @@ static void task_editor_class_init (TaskEditorClass *class); static void task_editor_init (TaskEditor *te); static void task_editor_destroy (GtkObject *object); +static void forward_cmd (GtkWidget *widget, gpointer data); + +static BonoboUIVerb verbs [] = { + BONOBO_UI_UNSAFE_VERB ("ActionForward", forward_cmd), + + BONOBO_UI_VERB_END +}; + static CompEditor *parent_class; @@ -113,6 +121,10 @@ task_editor_init (TaskEditor *te) comp_editor_append_page (COMP_EDITOR (te), COMP_EDITOR_PAGE (priv->task_details_page), _("Details")); + + comp_editor_merge_ui (COMP_EDITOR (te), EVOLUTION_DATADIR + "/gnome/ui/evolution-task-editor.xml", + verbs); } /* Destroy handler for the event editor */ @@ -145,3 +157,11 @@ task_editor_new (void) { return TASK_EDITOR (gtk_type_new (TYPE_TASK_EDITOR)); } + +static void +forward_cmd (GtkWidget *widget, gpointer data) +{ + TaskEditor *te = TASK_EDITOR (data); + + comp_editor_send_comp (COMP_EDITOR (te), CAL_COMPONENT_METHOD_PUBLISH); +} |