aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-09 02:49:32 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-09 02:49:32 +0800
commit71f097d7c90b8bce56fcd99323b0ce85b0a8f33a (patch)
tree186bcbf515d221ac1c539e6170c579f2ba10cd22 /addressbook
parent8df22b3bf1a5fe7388a61799236196f5ab62c256 (diff)
downloadgsoc2013-evolution-71f097d7c90b8bce56fcd99323b0ce85b0a8f33a.tar.gz
gsoc2013-evolution-71f097d7c90b8bce56fcd99323b0ce85b0a8f33a.tar.zst
gsoc2013-evolution-71f097d7c90b8bce56fcd99323b0ce85b0a8f33a.zip
Bind Save As to save the current view of the contact as a vcard.
2000-06-08 Christopher James Lahey <clahey@helixcode.com> * contact-editor/e-contact-editor.c: Bind Save As to save the current view of the contact as a vcard. svn path=/trunk/; revision=3481
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/contact-editor/e-contact-editor.c13
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c13
3 files changed, 29 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 20dfe57960..aa797e91bf 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-08 Christopher James Lahey <clahey@helixcode.com>
+
+ * contact-editor/e-contact-editor.c: Bind Save As to save the
+ current view of the contact as a vcard.
+
2000-06-08 Federico Mena Quintero <federico@helixcode.com>
* contact-editor/e-contact-editor.c (save_card): Doh, sync the
diff --git a/addressbook/contact-editor/e-contact-editor.c b/addressbook/contact-editor/e-contact-editor.c
index b59d77e631..1b7bf6b202 100644
--- a/addressbook/contact-editor/e-contact-editor.c
+++ b/addressbook/contact-editor/e-contact-editor.c
@@ -557,6 +557,17 @@ file_close_cb (GtkWidget *widget, gpointer data)
close_dialog (ce);
}
+static void
+file_save_as_cb (GtkWidget *widget, gpointer data)
+{
+ EContactEditor *ce;
+ ECard *card;
+
+ ce = E_CONTACT_EDITOR (data);
+ card = ce->card;
+ e_contact_save_as("Save as VCard", card);
+}
+
/* Menu bar */
static GnomeUIInfo file_new_menu[] = {
@@ -587,7 +598,7 @@ static GnomeUIInfo file_menu[] = {
GNOMEUIINFO_ITEM_NONE (N_("FIXME: S_end"), NULL, NULL),
GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_MENU_SAVE_ITEM (file_save_cb, NULL),
- GNOMEUIINFO_MENU_SAVE_AS_ITEM (NULL, NULL),
+ GNOMEUIINFO_MENU_SAVE_AS_ITEM (file_save_as_cb, NULL),
GNOMEUIINFO_ITEM_NONE (N_("FIXME: Save Attac_hments..."), NULL, NULL),
GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_ITEM_NONE (N_("FIXME: _Delete"), NULL, NULL),
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index b59d77e631..1b7bf6b202 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -557,6 +557,17 @@ file_close_cb (GtkWidget *widget, gpointer data)
close_dialog (ce);
}
+static void
+file_save_as_cb (GtkWidget *widget, gpointer data)
+{
+ EContactEditor *ce;
+ ECard *card;
+
+ ce = E_CONTACT_EDITOR (data);
+ card = ce->card;
+ e_contact_save_as("Save as VCard", card);
+}
+
/* Menu bar */
static GnomeUIInfo file_new_menu[] = {
@@ -587,7 +598,7 @@ static GnomeUIInfo file_menu[] = {
GNOMEUIINFO_ITEM_NONE (N_("FIXME: S_end"), NULL, NULL),
GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_MENU_SAVE_ITEM (file_save_cb, NULL),
- GNOMEUIINFO_MENU_SAVE_AS_ITEM (NULL, NULL),
+ GNOMEUIINFO_MENU_SAVE_AS_ITEM (file_save_as_cb, NULL),
GNOMEUIINFO_ITEM_NONE (N_("FIXME: Save Attac_hments..."), NULL, NULL),
GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_ITEM_NONE (N_("FIXME: _Delete"), NULL, NULL),