aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog10
-rw-r--r--addressbook/gui/component/addressbook-view.c11
2 files changed, 21 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index f061e55515..983eb60ce6 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,13 @@
+2008-11-17 Matthew Barnes <mbarnes@redhat.com>
+
+ ** Fixes part of bug #558322
+
+ * gui/component/addressbook-view.c (rename_addressbook_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.
+
2008-10-30 Matthew Barnes <mbarnes@redhat.com>
* gui/contact-editor/test-editor.c:
diff --git a/addressbook/gui/component/addressbook-view.c b/addressbook/gui/component/addressbook-view.c
index 909a9d14ca..417cb02dd4 100644
--- a/addressbook/gui/component/addressbook-view.c
+++ b/addressbook/gui/component/addressbook-view.c
@@ -911,6 +911,16 @@ new_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
}
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 @@ primary_source_selection_changed_callback (ESourceSelector *selector,
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 },