aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorS.Antony Vincent Pandian <santony@gmail.com>2005-07-14 10:09:51 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-07-14 10:09:51 +0800
commit567b310cb1f33d70a5ab595add8f38fa17910474 (patch)
treea3b0e5ebd40835dda09b3ed68125dc6d0491fdb4 /composer
parent9935a1d2e06c3ccbebfe7c9c64574f721711d982 (diff)
downloadgsoc2013-evolution-567b310cb1f33d70a5ab595add8f38fa17910474.tar
gsoc2013-evolution-567b310cb1f33d70a5ab595add8f38fa17910474.tar.gz
gsoc2013-evolution-567b310cb1f33d70a5ab595add8f38fa17910474.tar.bz2
gsoc2013-evolution-567b310cb1f33d70a5ab595add8f38fa17910474.tar.lz
gsoc2013-evolution-567b310cb1f33d70a5ab595add8f38fa17910474.tar.xz
gsoc2013-evolution-567b310cb1f33d70a5ab595add8f38fa17910474.tar.zst
gsoc2013-evolution-567b310cb1f33d70a5ab595add8f38fa17910474.zip
** See bug #309869
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. svn path=/trunk/; revision=29763
Diffstat (limited to 'composer')
-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);