aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 21:00:12 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 21:00:12 +0800
commit88cdfb884de9b2e288d07924624083a8fabe643f (patch)
tree25cfa76312cca460a5c1146624e33a2a817982d9
parent102c526be04a1356d1935844f293431fd864d9fe (diff)
downloadgsoc2013-empathy-88cdfb884de9b2e288d07924624083a8fabe643f.tar
gsoc2013-empathy-88cdfb884de9b2e288d07924624083a8fabe643f.tar.gz
gsoc2013-empathy-88cdfb884de9b2e288d07924624083a8fabe643f.tar.bz2
gsoc2013-empathy-88cdfb884de9b2e288d07924624083a8fabe643f.tar.lz
gsoc2013-empathy-88cdfb884de9b2e288d07924624083a8fabe643f.tar.xz
gsoc2013-empathy-88cdfb884de9b2e288d07924624083a8fabe643f.tar.zst
gsoc2013-empathy-88cdfb884de9b2e288d07924624083a8fabe643f.zip
select_iter: set the cursor as well
-rw-r--r--libempathy-gtk/empathy-irc-network-chooser-dialog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-irc-network-chooser-dialog.c b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
index 47f5b3183..8276a17d2 100644
--- a/libempathy-gtk/empathy-irc-network-chooser-dialog.c
+++ b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
@@ -190,6 +190,7 @@ select_iter (EmpathyIrcNetworkChooserDialog *self,
{
EmpathyIrcNetworkChooserDialogPriv *priv = GET_PRIV (self);
GtkTreeSelection *selection;
+ GtkTreePath *path;
/* Select the network */
selection = gtk_tree_view_get_selection (
@@ -197,6 +198,15 @@ select_iter (EmpathyIrcNetworkChooserDialog *self,
gtk_tree_selection_select_iter (selection, filter_iter);
+ path = gtk_tree_model_get_path (GTK_TREE_MODEL (priv->filter), filter_iter);
+ if (path != NULL)
+ {
+ gtk_tree_view_set_cursor (GTK_TREE_VIEW (priv->treeview), path,
+ NULL, FALSE);
+
+ gtk_tree_path_free (path);
+ }
+
/* Scroll to the selected network */
scroll_to_iter (self, filter_iter);