[empathy: 26/80] LogWindow: select 'Anytime' by default when searching
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 26/80] LogWindow: select 'Anytime' by default when searching
- Date: Fri, 10 Jun 2011 08:41:21 +0000 (UTC)
commit d423b12b76b8d5979340bdafb7e0532edde05eff
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Tue Apr 26 10:02:20 2011 +0100
LogWindow: select 'Anytime' by default when searching
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 7a9af57..06ec397 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]