diff options
-rw-r--r-- | composer/ChangeLog | 6 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 17 |
2 files changed, 20 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 2b80f922f5..6440b0d677 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2006-07-20 Devashish Sharma <sdevashish@novell.com> + + ** Fixes bug 273921 + * e-msg-composer-hdrs.c: Set the index number which indicates the + destination list (To or CC or BCC). + 2006-07-18 Srinivasa Ragavan <sragavan@novell.com> ** Fix for memory leak in bug #209254 diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index b271bc629f..d85477c6f3 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -186,19 +186,30 @@ address_button_clicked_cb (GtkButton *button, gpointer data) EMsgComposerHdrs *hdrs; EMsgComposerHdrsPrivate *priv; ENameSelectorDialog *name_selector_dialog; + guint index = 0; emchas = data; hdrs = emchas->hdrs; priv = hdrs->priv; - if (button == (GtkButton *) hdrs->priv->to.label) + if (button == (GtkButton *) hdrs->priv->to.label) { gtk_widget_grab_focus (hdrs->priv->to.entry); - else if (button == (GtkButton *) priv->cc.label) + index = 0; + printf("index:%d\n", index); + } + else if (button == (GtkButton *) priv->cc.label) { gtk_widget_grab_focus (hdrs->priv->cc.entry); - else if (button == (GtkButton *) priv->bcc.label) + index = 1; + printf("index:%d\n", index); + } + else if (button == (GtkButton *) priv->bcc.label) { gtk_widget_grab_focus (hdrs->priv->bcc.entry); + index = 2; + printf("index:%d\n", index); + } name_selector_dialog = e_name_selector_peek_dialog (priv->name_selector); + e_name_selector_dialog_set_destination_index (name_selector_dialog, index); gtk_widget_show (GTK_WIDGET (name_selector_dialog)); } |