evolution r36791 - in trunk: addressbook addressbook/gui/component calendar calendar/gui
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36791 - in trunk: addressbook addressbook/gui/component calendar calendar/gui
- Date: Mon, 17 Nov 2008 19:30:33 +0000 (UTC)
Author: mbarnes
Date: Mon Nov 17 19:30:33 2008
New Revision: 36791
URL: http://svn.gnome.org/viewvc/evolution?rev=36791&view=rev
Log:
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.
Modified:
trunk/addressbook/ChangeLog
trunk/addressbook/gui/component/addressbook-view.c
trunk/calendar/ChangeLog
trunk/calendar/gui/calendar-component.c
trunk/calendar/gui/memos-component.c
trunk/calendar/gui/tasks-component.c
Modified: trunk/addressbook/gui/component/addressbook-view.c
==============================================================================
--- trunk/addressbook/gui/component/addressbook-view.c (original)
+++ trunk/addressbook/gui/component/addressbook-view.c Mon Nov 17 19:30:33 2008
@@ -911,6 +911,16 @@
}
static void
+rename_addressbook_cb (EPopup *ep, EPopupItem *pitem, void *data)
+{
+ AddressbookView *view = data;
+ ESourceSelector *selector;
+
+ selector = E_SOURCE_SELECTOR (view->priv->selector);
+ e_source_selector_edit_primary_selection (selector);
+}
+
+static void
save_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
{
AddressbookView *view = data;
@@ -940,6 +950,7 @@
static EPopupItem abv_source_popups[] = {
{ E_POPUP_ITEM, "10.new", N_("_New Address Book"), new_addressbook_cb, NULL, "address-book-new", 0, 0 },
{ E_POPUP_ITEM, "20.saveasvcard", N_("Save As vCard..."), save_addressbook_cb, NULL,"document-save-as", 0, EAB_POPUP_SOURCE_PRIMARY },
+ { E_POPUP_ITEM, "25.rename", N_("_Rename..."), rename_addressbook_cb, NULL, NULL, 0, EAB_POPUP_SOURCE_PRIMARY },
{ E_POPUP_BAR, "30.bar" },
{ E_POPUP_ITEM, "30.delete", N_("_Delete"), delete_addressbook_cb, NULL, "edit-delete", 0, EAB_POPUP_SOURCE_USER|EAB_POPUP_SOURCE_PRIMARY },
Modified: trunk/calendar/gui/calendar-component.c
==============================================================================
--- trunk/calendar/gui/calendar-component.c (original)
+++ trunk/calendar/gui/calendar-component.c Mon Nov 17 19:30:33 2008
@@ -607,6 +607,16 @@
}
static void
+rename_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
+{
+ CalendarComponentView *component_view = data;
+ ESourceSelector *selector;
+
+ selector = E_SOURCE_SELECTOR (component_view->source_selector);
+ e_source_selector_edit_primary_selection (selector);
+}
+
+static void
edit_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
{
CalendarComponentView *component_view = data;
@@ -647,6 +657,7 @@
static EPopupItem ecc_source_popups[] = {
{ E_POPUP_ITEM, "10.new", N_("_New Calendar"), new_calendar_cb, NULL, "x-office-calendar", 0, 0 },
{ E_POPUP_ITEM, "15.copy", N_("_Copy..."), copy_calendar_cb, NULL, "edit-copy", 0, E_CAL_POPUP_SOURCE_PRIMARY },
+ { E_POPUP_ITEM, "18.rename", N_("_Rename..."), rename_calendar_cb, NULL, NULL, 0, E_CAL_POPUP_SOURCE_PRIMARY },
{ E_POPUP_BAR, "20.bar" },
{ E_POPUP_ITEM, "20.delete", N_("_Delete"), delete_calendar_cb, NULL, "edit-delete", 0,E_CAL_POPUP_SOURCE_USER|E_CAL_POPUP_SOURCE_PRIMARY|E_CAL_POPUP_SOURCE_DELETE },
Modified: trunk/calendar/gui/memos-component.c
==============================================================================
--- trunk/calendar/gui/memos-component.c (original)
+++ trunk/calendar/gui/memos-component.c Mon Nov 17 19:30:33 2008
@@ -448,6 +448,16 @@
}
static void
+rename_memo_list_cb (EPopup *ep, EPopupItem *pitem, void *data)
+{
+ MemosComponentView *component_view = data;
+ ESourceSelector *selector;
+
+ selector = E_SOURCE_SELECTOR (component_view->source_selector);
+ e_source_selector_edit_primary_selection (selector);
+}
+
+static void
edit_memo_list_cb (EPopup *ep, EPopupItem *pitem, void *data)
{
MemosComponentView *component_view = data;
@@ -488,6 +498,7 @@
static EPopupItem emc_source_popups[] = {
{ E_POPUP_ITEM, "10.new", N_("_New Memo List"), new_memo_list_cb, NULL, "stock_notes", 0, 0 },
{ E_POPUP_ITEM, "15.copy", N_("_Copy..."), copy_memo_list_cb, NULL, "edit-copy", 0, E_CAL_POPUP_SOURCE_PRIMARY },
+ { E_POPUP_ITEM, "18.rename", N_("_Rename..."), rename_memo_list_cb, NULL, NULL, 0, E_CAL_POPUP_SOURCE_PRIMARY },
{ E_POPUP_BAR, "20.bar" },
{ E_POPUP_ITEM, "20.delete", N_("_Delete"), delete_memo_list_cb, NULL, "edit-delete", 0, E_CAL_POPUP_SOURCE_USER|E_CAL_POPUP_SOURCE_PRIMARY },
Modified: trunk/calendar/gui/tasks-component.c
==============================================================================
--- trunk/calendar/gui/tasks-component.c (original)
+++ trunk/calendar/gui/tasks-component.c Mon Nov 17 19:30:33 2008
@@ -439,6 +439,16 @@
}
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 @@
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 },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]