diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-11-24 07:26:12 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-11-24 07:26:12 +0800 |
commit | e0cc63b07902740a58e399dd07c91a9a5a1c52bb (patch) | |
tree | a35e9c6196e40c41e10c9b603c370e8b5457b9d7 /calendar/gui/tasks-component.c | |
parent | 515d9aaeb26d164dacc3fe0450b3b51fa1c04054 (diff) | |
download | gsoc2013-evolution-e0cc63b07902740a58e399dd07c91a9a5a1c52bb.tar.gz gsoc2013-evolution-e0cc63b07902740a58e399dd07c91a9a5a1c52bb.tar.zst gsoc2013-evolution-e0cc63b07902740a58e399dd07c91a9a5a1c52bb.zip |
fixed copyright notices.
2003-11-23 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/new-calendar.[ch]: fixed copyright notices.
* gui/dialogs/copy-source-dialog.[ch]: implementation of the
Copy command for sources.
* gui/dialogs/Makefile.am: added new files.
* gui/calendar-component.c (fill_popup_menu_cb, copy_calendar_cb):
added Copy command.
* gui/tasks-component.c (fill_popup_menu_cb, copy_task_list_cb):
added Copy command.
svn path=/trunk/; revision=23471
Diffstat (limited to 'calendar/gui/tasks-component.c')
-rw-r--r-- | calendar/gui/tasks-component.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index 95ebd55304..59dcb14337 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -40,6 +40,7 @@ #include "comp-util.h" #include "calendar-config.h" #include "dialogs/comp-editor.h" +#include "dialogs/copy-source-dialog.h" #include "dialogs/task-editor.h" #include "widgets/misc/e-source-selector.h" @@ -298,6 +299,21 @@ add_popup_menu_item (GtkMenu *menu, const char *label, const char *pixmap, } static void +copy_task_list_cb (GtkWidget *widget, TasksComponent *comp) +{ + ESource *selected_source; + TasksComponentPrivate *priv; + + priv = comp->priv; + + selected_source = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (priv->source_selector)); + if (!selected_source) + return; + + copy_source_dialog (GTK_WINDOW (gtk_widget_get_toplevel (widget), selected_source, CALOBJ_TYPE_TODO); +} + +static void delete_task_list_cb (GtkWidget *widget, TasksComponent *comp) { ESource *selected_source; @@ -377,10 +393,11 @@ fill_popup_menu_cb (ESourceSelector *selector, GtkMenu *menu, TasksComponent *co add_popup_menu_item (menu, _("New Task List"), GTK_STOCK_NEW, G_CALLBACK (new_task_list_cb), component, TRUE); - add_popup_menu_item (menu, _("Delete"), GTK_STOCK_DELETE, G_CALLBACK (delete_task_list_cb), - component, sensitive); + add_popup_menu_item (menu, _("Copy"), NULL, G_CALLBACK (copy_task_list_cb), component, sensitive); add_popup_menu_item (menu, _("Rename"), NULL, G_CALLBACK (rename_task_list_cb), component, sensitive); + add_popup_menu_item (menu, _("Delete"), GTK_STOCK_DELETE, G_CALLBACK (delete_task_list_cb), + component, sensitive); } static void |