aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-03 18:35:53 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 19:34:57 +0800
commit90f40d91fb39eff7e64113411c3efa9f81803418 (patch)
tree9b3827aa7f0964ccc7a92ba6d760891f22dff46a
parenta879702a4f71baac18c351a7c540d349ad8d20d0 (diff)
downloadgsoc2013-empathy-90f40d91fb39eff7e64113411c3efa9f81803418.tar
gsoc2013-empathy-90f40d91fb39eff7e64113411c3efa9f81803418.tar.gz
gsoc2013-empathy-90f40d91fb39eff7e64113411c3efa9f81803418.tar.bz2
gsoc2013-empathy-90f40d91fb39eff7e64113411c3efa9f81803418.tar.lz
gsoc2013-empathy-90f40d91fb39eff7e64113411c3efa9f81803418.tar.xz
gsoc2013-empathy-90f40d91fb39eff7e64113411c3efa9f81803418.tar.zst
gsoc2013-empathy-90f40d91fb39eff7e64113411c3efa9f81803418.zip
LogWindow: select the first normal date by default
-rw-r--r--libempathy-gtk/empathy-log-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index ad61fe11e..2203ee241 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -1290,7 +1290,8 @@ populate_dates_from_search_hits (GList *accounts,
COL_WHEN_TEXT, _("Anytime"),
-1);
- gtk_tree_selection_select_iter (selection, &iter);
+ if (gtk_tree_model_iter_nth_child (model, &iter, NULL, 2))
+ gtk_tree_selection_select_iter (selection, &iter);
}
}
@@ -2559,7 +2560,7 @@ select_first_date (TplActionChain *chain, gpointer user_data)
selection = gtk_tree_view_get_selection (view);
/* Show messages of the most recent date */
- if (gtk_tree_model_get_iter_first (model, &iter))
+ if (gtk_tree_model_iter_nth_child (model, &iter, NULL, 2))
gtk_tree_selection_select_iter (selection, &iter);
_tpl_action_chain_continue (log_window->chain);