aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-irc-network-chooser-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-irc-network-chooser-dialog.c')
-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);