From 78fd379aa7c17c60c4b5fc07e5243b32ec4a2639 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 31 Oct 2008 12:54:01 +0000 Subject: Support inline renaming of sources in the source selector, with help from evolution-data-server (see bug #558322). Kill another frivolous plugin: select-one-source svn path=/branches/kill-bonobo/; revision=36705 --- calendar/modules/e-memo-shell-view-actions.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'calendar/modules/e-memo-shell-view-actions.c') diff --git a/calendar/modules/e-memo-shell-view-actions.c b/calendar/modules/e-memo-shell-view-actions.c index 915f52640e..627f698449 100644 --- a/calendar/modules/e-memo-shell-view-actions.c +++ b/calendar/modules/e-memo-shell-view-actions.c @@ -288,6 +288,19 @@ action_memo_list_properties_cb (GtkAction *action, calendar_setup_edit_memo_list (GTK_WINDOW (shell_window), source); } +static void +action_memo_list_rename_cb (GtkAction *action, + EMemoShellView *memo_shell_view) +{ + EMemoShellSidebar *memo_shell_sidebar; + ESourceSelector *selector; + + memo_shell_sidebar = memo_shell_view->priv->memo_shell_sidebar; + selector = e_memo_shell_sidebar_get_selector (memo_shell_sidebar); + + e_source_selector_edit_primary_selection (selector); +} + static void action_memo_list_select_one_cb (GtkAction *action, EMemoShellView *memo_shell_view) @@ -587,6 +600,13 @@ static GtkActionEntry memo_entries[] = { NULL, /* XXX Add a tooltip! */ G_CALLBACK (action_memo_list_properties_cb) }, + { "memo-list-rename", + NULL, + N_("_Rename..."), + "F2", + N_("Rename the selected memo list"), + G_CALLBACK (action_memo_list_rename_cb) }, + { "memo-list-select-one", "stock_check-filled", N_("Show _Only This Memo List"), -- cgit v1.2.3