aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-component.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-11-18 03:30:33 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-11-18 03:30:33 +0800
commit1a04fd272634d22277979c705ae854bea580905a (patch)
treeb1211544fdd894f3c530dd5ae094b46180612135 /calendar/gui/tasks-component.c
parent7be47d2382357b82f32d3bebefb55b860a5a0add (diff)
downloadgsoc2013-evolution-1a04fd272634d22277979c705ae854bea580905a.tar.gz
gsoc2013-evolution-1a04fd272634d22277979c705ae854bea580905a.tar.zst
gsoc2013-evolution-1a04fd272634d22277979c705ae854bea580905a.zip
** Fixes bug #558322
2008-11-17 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #558322 * addressbook/gui/component/addressbook-view.c (rename_addressbook_cb): * calendar/gui/calendar-component.c (rename_calendar_cb): * calendar/gui/memos-component.c (rename_memo_list_cb): * calendar/gui/tasks-component.c (rename_task_list_cb): New "Rename" item in the source selector pop-up menu calls the recently added e_source_selector_edit_primary_selection(). Still need to bind the "F2" key to this action, but I'm not sure how whether EPopup supports that. svn path=/trunk/; revision=36791
Diffstat (limited to 'calendar/gui/tasks-component.c')
-rw-r--r--calendar/gui/tasks-component.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index d1f11c404c..a471450b91 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -439,6 +439,16 @@ new_task_list_cb (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
+rename_task_list_cb (EPopup *ep, EPopupItem *pitem, void *data)
+{
+ TasksComponentView *component_view = data;
+ ESourceSelector *selector;
+
+ selector = E_SOURCE_SELECTOR (component_view->source_selector);
+ e_source_selector_edit_primary_selection (selector);
+}
+
+static void
edit_task_list_cb (EPopup *ep, EPopupItem *pitem, void *data)
{
TasksComponentView *component_view = data;
@@ -479,6 +489,7 @@ mark_offline_cb (EPopup *ep, EPopupItem *pitem, void *data)
static EPopupItem etc_source_popups[] = {
{ E_POPUP_ITEM, "10.new", N_("_New Task List"), new_task_list_cb, NULL, "stock_todo", 0, 0 },
{ E_POPUP_ITEM, "15.copy", N_("_Copy..."), copy_task_list_cb, NULL, "edit-copy", 0, E_CAL_POPUP_SOURCE_PRIMARY },
+ { E_POPUP_ITEM, "18.rename", N_("_Rename..."), rename_task_list_cb, NULL, NULL, 0, E_CAL_POPUP_SOURCE_PRIMARY },
{ E_POPUP_BAR, "20.bar" },
{ E_POPUP_ITEM, "20.delete", N_("_Delete"), delete_task_list_cb, NULL, "edit-delete", 0, E_CAL_POPUP_SOURCE_USER|E_CAL_POPUP_SOURCE_PRIMARY },