aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-29 23:04:05 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:05 +0800
commit4db00fa9f7d00245fd2000ac5305416b160bd1d2 (patch)
treeedcc2240a28bb00b17fc1f0288e0cad5e2368134 /composer
parente2c317277255e5049bac7ed06ba915e3f8d4c1c6 (diff)
downloadgsoc2013-evolution-4db00fa9f7d00245fd2000ac5305416b160bd1d2.tar
gsoc2013-evolution-4db00fa9f7d00245fd2000ac5305416b160bd1d2.tar.gz
gsoc2013-evolution-4db00fa9f7d00245fd2000ac5305416b160bd1d2.tar.bz2
gsoc2013-evolution-4db00fa9f7d00245fd2000ac5305416b160bd1d2.tar.lz
gsoc2013-evolution-4db00fa9f7d00245fd2000ac5305416b160bd1d2.tar.xz
gsoc2013-evolution-4db00fa9f7d00245fd2000ac5305416b160bd1d2.tar.zst
gsoc2013-evolution-4db00fa9f7d00245fd2000ac5305416b160bd1d2.zip
Bug #404570 - Ctrl-R / NNTP doesn't focus the new message
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c4
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;
}