aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-11 19:48:13 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-13 23:59:22 +0800
commit04840e3d006887d8c3909a8397b982a8b68d5252 (patch)
tree532ccf68c42a7442f568a1e0bedbd2bcd0c45bc3
parent223e02f1160189dc76b91a38ca3cb10085688b73 (diff)
downloadgsoc2013-empathy-04840e3d006887d8c3909a8397b982a8b68d5252.tar
gsoc2013-empathy-04840e3d006887d8c3909a8397b982a8b68d5252.tar.gz
gsoc2013-empathy-04840e3d006887d8c3909a8397b982a8b68d5252.tar.bz2
gsoc2013-empathy-04840e3d006887d8c3909a8397b982a8b68d5252.tar.lz
gsoc2013-empathy-04840e3d006887d8c3909a8397b982a8b68d5252.tar.xz
gsoc2013-empathy-04840e3d006887d8c3909a8397b982a8b68d5252.tar.zst
gsoc2013-empathy-04840e3d006887d8c3909a8397b982a8b68d5252.zip
empathy-chat: don't grab focus on the input entry is it's insensitive
-rw-r--r--libempathy-gtk/empathy-chat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index ba439b49d..166724d2d 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1421,7 +1421,9 @@ chat_input_realize_cb (GtkWidget *widget,
EmpathyChat *chat)
{
DEBUG ("Setting focus to the input text view");
- gtk_widget_grab_focus (widget);
+ if (gtk_widget_is_sensitive (widget)) {
+ gtk_widget_grab_focus (widget);
+ }
}
static void