[empathy] empathy-chat: don't grab focus on the input entry is it's insensitive
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] empathy-chat: don't grab focus on the input entry is it's insensitive
- Date: Fri, 13 Nov 2009 15:59:48 +0000 (UTC)
commit 04840e3d006887d8c3909a8397b982a8b68d5252
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Nov 11 11:48:13 2009 +0000
empathy-chat: don't grab focus on the input entry is it's insensitive
libempathy-gtk/empathy-chat.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index ba439b4..166724d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]