ekiga r6805 - in trunk: . lib/engine/gui/gtk-frontend



Author: jschamp
Date: Wed Sep  3 05:26:24 2008
New Revision: 6805
URL: http://svn.gnome.org/viewvc/ekiga?rev=6805&view=rev

Log:
Partial fix for #549269 (chat message entry focus).

Modified:
   trunk/ChangeLog
   trunk/lib/engine/gui/gtk-frontend/chat-area.cpp

Modified: trunk/lib/engine/gui/gtk-frontend/chat-area.cpp
==============================================================================
--- trunk/lib/engine/gui/gtk-frontend/chat-area.cpp	(original)
+++ trunk/lib/engine/gui/gtk-frontend/chat-area.cpp	Wed Sep  3 05:26:24 2008
@@ -157,6 +157,9 @@
 
 static void on_chat_removed (ChatArea* self);
 
+static void on_chat_area_show (GtkWidget*,
+			       gpointer);
+
 /* implementation of internal api */
 
 static void
@@ -553,6 +556,16 @@
   gtk_widget_hide (self->priv->message);
 }
 
+static void on_chat_area_show (GtkWidget* widget,
+                               G_GNUC_UNUSED gpointer data)
+{
+  ChatArea* self = NULL;
+
+  self = (ChatArea*)widget;
+
+  gtk_widget_grab_focus (self->priv->message);
+}
+
 /* GObject code */
 
 static void
@@ -927,6 +940,10 @@
 
   gtk_widget_set_size_request (GTK_WIDGET (vbox), 175, -1);
   gtk_widget_show_all (vbox);
+
+  g_signal_connect (G_OBJECT (self), "show",
+		    G_CALLBACK (on_chat_area_show), NULL);
+  gtk_widget_grab_focus (self->priv->message);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]