diff options
author | Milan Crha <mcrha@redhat.com> | 2010-11-29 23:04:05 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-11-29 23:04:05 +0800 |
commit | f5562e96973341002675d504ab8245cd9ec3f3f4 (patch) | |
tree | 3bdd33fa9cc2b1139985842b1c783fe51abdba28 | |
parent | 5a3773537fa8faaca22dada027ffec12c9345bde (diff) | |
download | gsoc2013-evolution-f5562e96973341002675d504ab8245cd9ec3f3f4.tar gsoc2013-evolution-f5562e96973341002675d504ab8245cd9ec3f3f4.tar.gz gsoc2013-evolution-f5562e96973341002675d504ab8245cd9ec3f3f4.tar.bz2 gsoc2013-evolution-f5562e96973341002675d504ab8245cd9ec3f3f4.tar.lz gsoc2013-evolution-f5562e96973341002675d504ab8245cd9ec3f3f4.tar.xz gsoc2013-evolution-f5562e96973341002675d504ab8245cd9ec3f3f4.tar.zst gsoc2013-evolution-f5562e96973341002675d504ab8245cd9ec3f3f4.zip |
Bug #404570 - Ctrl-R / NNTP doesn't focus the new message
-rw-r--r-- | composer/e-msg-composer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 48410f89dc..8f74badddf 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2171,7 +2171,7 @@ msg_composer_map (GtkWidget *widget) e_composer_header_table_get_header ( table, E_COMPOSER_HEADER_TO)->input_widget; text = gtk_entry_get_text (GTK_ENTRY (input_widget)); - if (text == NULL || *text == '\0') { + if (gtk_widget_get_visible (input_widget) && (text == NULL || *text == '\0')) { gtk_widget_grab_focus (input_widget); return; } @@ -2181,7 +2181,7 @@ msg_composer_map (GtkWidget *widget) e_composer_header_table_get_header ( table, E_COMPOSER_HEADER_SUBJECT)->input_widget; text = gtk_entry_get_text (GTK_ENTRY (input_widget)); - if (text == NULL || *text == '\0') { + if (gtk_widget_get_visible (input_widget) && (text == NULL || *text == '\0')) { gtk_widget_grab_focus (input_widget); return; } |