aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevashish Sharma <dsharma@src.gnome.org>2006-07-21 13:41:16 +0800
committerDevashish Sharma <dsharma@src.gnome.org>2006-07-21 13:41:16 +0800
commita4922ca221f3c5eea359598ec1ca5222af49fa57 (patch)
tree39ceb779b02f87fd89aea72ec334810f9c553f1f
parent96c665bb9f0c18057eeb9f60c6f2e43a61b17b0d (diff)
downloadgsoc2013-evolution-a4922ca221f3c5eea359598ec1ca5222af49fa57.tar.gz
gsoc2013-evolution-a4922ca221f3c5eea359598ec1ca5222af49fa57.tar.zst
gsoc2013-evolution-a4922ca221f3c5eea359598ec1ca5222af49fa57.zip
Fix for Bug 273921
svn path=/trunk/; revision=32364
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer-hdrs.c17
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));
}