aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-06-20 15:35:00 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-06-21 15:34:08 +0800
commitbfca0ccfebc3cf36e1f9add5cf720917fe17c54e (patch)
treec61996afc1a38acf92e9c2f2eda80b0edb5b20bf /src/empathy-main-window.c
parente3c21c1ec71d405844089814ec3dec058a2b39a7 (diff)
downloadgsoc2013-empathy-bfca0ccfebc3cf36e1f9add5cf720917fe17c54e.tar
gsoc2013-empathy-bfca0ccfebc3cf36e1f9add5cf720917fe17c54e.tar.gz
gsoc2013-empathy-bfca0ccfebc3cf36e1f9add5cf720917fe17c54e.tar.bz2
gsoc2013-empathy-bfca0ccfebc3cf36e1f9add5cf720917fe17c54e.tar.lz
gsoc2013-empathy-bfca0ccfebc3cf36e1f9add5cf720917fe17c54e.tar.xz
gsoc2013-empathy-bfca0ccfebc3cf36e1f9add5cf720917fe17c54e.tar.zst
gsoc2013-empathy-bfca0ccfebc3cf36e1f9add5cf720917fe17c54e.zip
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
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 3a6bf0ae4..d57a7b240 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 ();