diff options
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-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 452f62ba7..135a66cd8 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -1121,6 +1121,7 @@ populate_dates_from_search_hits (GList *accounts, GtkTreeView *view; GtkTreeModel *model; GtkListStore *store; + GtkTreeSelection *selection; GtkTreeIter iter; if (log_window == NULL) @@ -1129,6 +1130,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) { @@ -1184,6 +1186,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); } } |