[empathy] Grab focus on the main window's tree view by default



commit bfca0ccfebc3cf36e1f9add5cf720917fe17c54e
Author: Xavier Claessens <xclaesse gmail com>
Date:   Sun Jun 20 09:35:00 2010 +0200

    Grab focus on the main window's tree view by default
    
    This is needed to make live search works when the main window is shown
    
    Fixes bug #621089

 src/empathy-main-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 3a6bf0a..d57a7b2 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1536,6 +1536,8 @@ empathy_main_window_show (void)
 		EMPATHY_LIVE_SEARCH (window->search_bar));
 	gtk_box_pack_start (GTK_BOX (window->main_vbox), window->search_bar,
 		FALSE, TRUE, 0);
+	g_signal_connect_swapped (window->window, "map",
+		G_CALLBACK (gtk_widget_grab_focus), window->list_view);
 
 	/* Load user-defined accelerators. */
 	main_window_accels_load ();



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