aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer-hdrs.c9
2 files changed, 16 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index dc9ee8f53d..57d5f9c6a1 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2005-07-13 S.Antony Vincent Pandian <santony@gmail.com>
+
+ ** See bug #309869
+
+ * e-msg-composer-hdrs.c: moves the focus to the corresponding
+ header buttons' entry fields.
+
2005-07-13 Kjartan Maraas <kmaraas@gnome.org>
* e-msg-composer-select-file.c: (select_attach_response): Don't
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index e2e9d476f6..25619aa25f 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -189,6 +189,13 @@ address_button_clicked_cb (GtkButton *button, gpointer data)
emchas = data;
hdrs = emchas->hdrs;
priv = hdrs->priv;
+
+ if(button == hdrs->priv->to.label)
+ gtk_widget_grab_focus(hdrs->priv->to.entry);
+ else if(button == priv->cc.label)
+ gtk_widget_grab_focus(hdrs->priv->cc.entry);
+ else if(button == priv->bcc.label)
+ gtk_widget_grab_focus(hdrs->priv->bcc.entry);
name_selector_dialog = e_name_selector_peek_dialog (priv->name_selector);
gtk_widget_show (GTK_WIDGET (name_selector_dialog));
@@ -524,6 +531,7 @@ post_browser_response (EMFolderSelector *emfs, int response, EMsgComposerHdrs *h
{
if (response == GTK_RESPONSE_OK) {
GList *uris = em_folder_selector_get_selected_uris (emfs);
+
e_msg_composer_hdrs_set_post_to_list (hdrs, uris);
hdrs->priv->post_custom = FALSE;
g_list_foreach (uris, (GFunc) g_free, NULL);
@@ -541,6 +549,7 @@ post_browser_clicked_cb (GtkButton *button, EMsgComposerHdrs *hdrs)
GtkWidget *dialog;
GList *post_items;
+ gtk_widget_grab_focus(hdrs->priv->post_to.entry);
model = mail_component_peek_tree_model (mail_component_peek ());
emft = (EMFolderTree *) em_folder_tree_new_with_model (model);
em_folder_tree_set_multiselect (emft, TRUE);