diff options
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 29e27389a3..414ee2d206 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -59,6 +59,9 @@ struct _EMsgComposerHdrsPrivate { GtkWidget *cc_entry; GtkWidget *bcc_entry; GtkWidget *subject_entry; + + /* Unique section ID */ + char *section_id; }; @@ -119,8 +122,7 @@ address_button_clicked_cb (GtkButton *button, CORBA_exception_init (&ev); - /* FIXME section. */ - Evolution_Addressbook_SelectNames_activate_dialog (priv->corba_select_names, "", &ev); + Evolution_Addressbook_SelectNames_activate_dialog (priv->corba_select_names, priv->section_id, &ev); CORBA_exception_free (&ev); } @@ -342,6 +344,7 @@ destroy (GtkObject *object) CORBA_exception_free (&ev); } + g_free (priv->section_id); gtk_object_destroy (GTK_OBJECT (priv->tooltips)); if (GTK_OBJECT_CLASS (parent_class)->destroy != NULL) @@ -390,6 +393,10 @@ init (EMsgComposerHdrs *hdrs) priv->num_hdrs = 0; + /* Make a unique id from the addresses various things + This only needs to be unique as long as hdrs exists */ + priv->section_id = g_strdup_printf ("%p-%p", hdrs, priv); + hdrs->priv = priv; } |