[empathy: 15/26] select_iter: set the cursor as well
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 15/26] select_iter: set the cursor as well
- Date: Thu, 26 Aug 2010 12:04:38 +0000 (UTC)
commit 88cdfb884de9b2e288d07924624083a8fabe643f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Aug 25 15:00:12 2010 +0200
select_iter: set the cursor as well
.../empathy-irc-network-chooser-dialog.c | 10 ++++++++++
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 47f5b31..8276a17 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]