[evolution] Bug 593783 - Edit contact option in composer doesn't work
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug 593783 - Edit contact option in composer doesn't work
- Date: Tue, 1 Sep 2009 13:53:24 +0000 (UTC)
commit 2e998320e1aa7f68d995147e46b51a223afbe92e
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Sep 1 09:52:07 2009 -0400
Bug 593783 - Edit contact option in composer doesn't work
composer/e-composer-name-header.c | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/composer/e-composer-name-header.c b/composer/e-composer-name-header.c
index 5eed2e4..658e7cc 100644
--- a/composer/e-composer-name-header.c
+++ b/composer/e-composer-name-header.c
@@ -47,6 +47,36 @@ struct _EComposerNameHeaderPrivate {
static gpointer parent_class;
+static gpointer
+contact_editor_fudge_new (EBook *book,
+ EContact *contact,
+ gboolean is_new,
+ gboolean editable)
+{
+ EShell *shell = e_shell_get_default ();
+
+ /* XXX Putting this function signature in libedataserverui
+ * was a terrible idea. Now we're stuck with it. */
+
+ return e_contact_editor_new (
+ shell, book, contact, is_new, editable);
+}
+
+static gpointer
+contact_list_editor_fudge_new (EBook *book,
+ EContact *contact,
+ gboolean is_new,
+ gboolean editable)
+{
+ EShell *shell = e_shell_get_default ();
+
+ /* XXX Putting this function signature in libedataserverui
+ * was a terrible idea. Now we're stuck with it. */
+
+ return e_contact_list_editor_new (
+ shell, book, contact, is_new, editable);
+}
+
static void
composer_name_header_entry_changed_cb (ENameSelectorEntry *entry,
EComposerNameHeader *header)
@@ -108,9 +138,9 @@ composer_name_header_constructor (GType type,
priv->name_selector, label));
e_name_selector_entry_set_contact_editor_func (
- entry, e_contact_editor_new);
+ entry, contact_editor_fudge_new);
e_name_selector_entry_set_contact_list_editor_func (
- entry, e_contact_list_editor_new);
+ entry, contact_list_editor_fudge_new);
g_signal_connect (
entry, "changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]