diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-26 17:02:20 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-09 19:34:55 +0800 |
commit | d423b12b76b8d5979340bdafb7e0532edde05eff (patch) | |
tree | 3a6400cdb4e745721ebc3e3f01906105ec34ff34 /libempathy-gtk | |
parent | 30632ed84b27b97089e709688ddbc7f6fb0db69c (diff) | |
download | gsoc2013-empathy-d423b12b76b8d5979340bdafb7e0532edde05eff.tar gsoc2013-empathy-d423b12b76b8d5979340bdafb7e0532edde05eff.tar.gz gsoc2013-empathy-d423b12b76b8d5979340bdafb7e0532edde05eff.tar.bz2 gsoc2013-empathy-d423b12b76b8d5979340bdafb7e0532edde05eff.tar.lz gsoc2013-empathy-d423b12b76b8d5979340bdafb7e0532edde05eff.tar.xz gsoc2013-empathy-d423b12b76b8d5979340bdafb7e0532edde05eff.tar.zst gsoc2013-empathy-d423b12b76b8d5979340bdafb7e0532edde05eff.zip |
LogWindow: select 'Anytime' by default when searching
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index 7a9af576a..06ec397d4 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -1125,6 +1125,7 @@ populate_dates_from_search_hits (GList *accounts, GtkTreeView *view; GtkTreeModel *model; GtkListStore *store; + GtkTreeSelection *selection; GtkTreeIter iter; if (log_window == NULL) @@ -1133,6 +1134,7 @@ populate_dates_from_search_hits (GList *accounts, view = GTK_TREE_VIEW (log_window->treeview_when); model = gtk_tree_view_get_model (view); store = GTK_LIST_STORE (model); + selection = gtk_tree_view_get_selection (view); for (l = log_window->hits; l != NULL; l = l->next) { @@ -1188,6 +1190,8 @@ populate_dates_from_search_hits (GList *accounts, COL_WHEN_DATE, g_date_new_dmy (2, 1, -1), COL_WHEN_TEXT, _("Anytime"), -1); + + gtk_tree_selection_select_iter (selection, &iter); } } |