aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-control.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2001-06-28 23:10:40 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2001-06-28 23:10:40 +0800
commit60e8e89604ace4df3124e53e05e1318edba431f4 (patch)
treefbcd5a0959f66deb2c3750978d920d25f07f3115 /calendar/gui/tasks-control.c
parentb8430242b75b1aa7a06ec98dfadd4e934879a432 (diff)
downloadgsoc2013-evolution-60e8e89604ace4df3124e53e05e1318edba431f4.tar
gsoc2013-evolution-60e8e89604ace4df3124e53e05e1318edba431f4.tar.gz
gsoc2013-evolution-60e8e89604ace4df3124e53e05e1318edba431f4.tar.bz2
gsoc2013-evolution-60e8e89604ace4df3124e53e05e1318edba431f4.tar.lz
gsoc2013-evolution-60e8e89604ace4df3124e53e05e1318edba431f4.tar.xz
gsoc2013-evolution-60e8e89604ace4df3124e53e05e1318edba431f4.tar.zst
gsoc2013-evolution-60e8e89604ace4df3124e53e05e1318edba431f4.zip
new functions for allowing the execution of clipboard-related commands
2001-06-28 Rodrigo Moya <rodrigo@ximian.com> * gui/e-calendar-table.[ch] (e_calendar_table_cut_clipboard), (e_calendar_table_copy_clipboard), (e_calendar_table_paste_clipboard): new functions for allowing the execution of clipboard-related commands * gui/tasks-control.c (tasks_control_cut_cmd), (tasks_control_copy_cmd), (tasks_control_paste_cmd): added callbacks for the new clipboard-related menu entries svn path=/trunk/; revision=10560
Diffstat (limited to 'calendar/gui/tasks-control.c')
-rw-r--r--calendar/gui/tasks-control.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c
index 8d61121380..d34d93e919 100644
--- a/calendar/gui/tasks-control.c
+++ b/calendar/gui/tasks-control.c
@@ -61,6 +61,15 @@ static void tasks_control_deactivate (BonoboControl *control,
static void tasks_control_new_task_cmd (BonoboUIComponent *uic,
gpointer data,
const char *path);
+static void tasks_control_cut_cmd (BonoboUIComponent *uic,
+ gpointer data,
+ const gchar *path);
+static void tasks_control_copy_cmd (BonoboUIComponent *uic,
+ gpointer data,
+ const gchar *path);
+static void tasks_control_paste_cmd (BonoboUIComponent *uic,
+ gpointer data,
+ const gchar *path);
static void tasks_control_delete_cmd (BonoboUIComponent *uic,
gpointer data,
const char *path);
@@ -215,6 +224,9 @@ selection_changed_cb (ETasks *tasks, int n_selected, gpointer data)
static BonoboUIVerb verbs [] = {
BONOBO_UI_VERB ("TasksNewTask", tasks_control_new_task_cmd),
+ BONOBO_UI_VERB ("TasksCut", tasks_control_cut_cmd),
+ BONOBO_UI_VERB ("TasksCopy", tasks_control_copy_cmd),
+ BONOBO_UI_VERB ("TasksPaste", tasks_control_paste_cmd),
BONOBO_UI_VERB ("TasksDelete", tasks_control_delete_cmd),
BONOBO_UI_VERB_END
@@ -297,6 +309,45 @@ tasks_control_new_task_cmd (BonoboUIComponent *uic,
}
static void
+tasks_control_cut_cmd (BonoboUIComponent *uic,
+ gpointer data,
+ const char *path)
+{
+ ETasks *tasks;
+ ECalendarTable *cal_table;
+
+ tasks = E_TASKS (data);
+ cal_table = e_tasks_get_calendar_table (tasks);
+ e_calendar_table_cut_clipboard (tasks);
+}
+
+static void
+tasks_control_copy_cmd (BonoboUIComponent *uic,
+ gpointer data,
+ const char *path)
+{
+ ETasks *tasks;
+ ECalendarTable *cal_table;
+
+ tasks = E_TASKS (data);
+ cal_table = e_tasks_get_calendar_table (tasks);
+ e_calendar_table_copy_clipboard (tasks);
+}
+
+static void
+tasks_control_paste_cmd (BonoboUIComponent *uic,
+ gpointer data,
+ const char *path)
+{
+ ETasks *tasks;
+ ECalendarTable *cal_table;
+
+ tasks = E_TASKS (data);
+ cal_table = e_tasks_get_calendar_table (tasks);
+ e_calendar_table_paste_clipboard (cal_table);
+}
+
+static void
tasks_control_delete_cmd (BonoboUIComponent *uic,
gpointer data,
const char *path)