aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-01 21:52:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-01 21:52:07 +0800
commit2e998320e1aa7f68d995147e46b51a223afbe92e (patch)
tree721eaeb47a1a65b04701a2150c6af9764f973eb1 /composer
parent1ecad022ddf36049f06e0b15eb6ec0fe7af2a421 (diff)
downloadgsoc2013-evolution-2e998320e1aa7f68d995147e46b51a223afbe92e.tar
gsoc2013-evolution-2e998320e1aa7f68d995147e46b51a223afbe92e.tar.gz
gsoc2013-evolution-2e998320e1aa7f68d995147e46b51a223afbe92e.tar.bz2
gsoc2013-evolution-2e998320e1aa7f68d995147e46b51a223afbe92e.tar.lz
gsoc2013-evolution-2e998320e1aa7f68d995147e46b51a223afbe92e.tar.xz
gsoc2013-evolution-2e998320e1aa7f68d995147e46b51a223afbe92e.tar.zst
gsoc2013-evolution-2e998320e1aa7f68d995147e46b51a223afbe92e.zip
Bug 593783 - Edit contact option in composer doesn't work
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-name-header.c34
1 files changed, 32 insertions, 2 deletions
diff --git a/composer/e-composer-name-header.c b/composer/e-composer-name-header.c
index 5eed2e42c1..658e7cc292 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",