aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-log-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-04-26 17:02:20 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-04-26 17:02:20 +0800
commit88fb52975cd2da332d066fa40c06404c5375d7cc (patch)
tree096102c6a957b5198ea02a5bf5acb76bcd97e63e /libempathy-gtk/empathy-log-window.c
parent460bab83a2c5d2c0a6c21aec6f0f61f11f2af0a5 (diff)
downloadgsoc2013-empathy-88fb52975cd2da332d066fa40c06404c5375d7cc.tar
gsoc2013-empathy-88fb52975cd2da332d066fa40c06404c5375d7cc.tar.gz
gsoc2013-empathy-88fb52975cd2da332d066fa40c06404c5375d7cc.tar.bz2
gsoc2013-empathy-88fb52975cd2da332d066fa40c06404c5375d7cc.tar.lz
gsoc2013-empathy-88fb52975cd2da332d066fa40c06404c5375d7cc.tar.xz
gsoc2013-empathy-88fb52975cd2da332d066fa40c06404c5375d7cc.tar.zst
gsoc2013-empathy-88fb52975cd2da332d066fa40c06404c5375d7cc.zip
LogWindow: select 'Anytime' by default when searching
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r--libempathy-gtk/empathy-log-window.c4
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);
}
}