don't expand the row we are going to, only its parent node.

2007-06-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/dialog.c (browser_dialog_goto_index): don't
	expand the row we are going to, only its parent node.


svn path=/trunk/; revision=22714
This commit is contained in:
Michael Natterer 2007-06-05 14:51:42 +00:00 committed by Michael Natterer
parent 95a23ed0dd
commit 7b1d0ce92c
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-05 Michael Natterer <mitch@gimp.org>
* plug-ins/helpbrowser/dialog.c (browser_dialog_goto_index): don't
expand the row we are going to, only its parent node.
2007-06-05 Simon Budig <simon@gimp.org>
* plug-ins/common/tiff-load.c

View File

@ -667,17 +667,21 @@ browser_dialog_goto_index (const gchar *ref)
GtkTreeSelection *selection;
GtkTreeModel *model;
GtkTreePath *path;
GtkTreePath *scroll_path;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view));
model = gtk_tree_view_get_model (GTK_TREE_VIEW (tree_view));
path = gtk_tree_model_get_path (model, iter);
scroll_path = gtk_tree_path_copy (path);
gtk_tree_path_up (path);
gtk_tree_view_expand_to_path (GTK_TREE_VIEW (tree_view), path);
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tree_view), path,
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tree_view), scroll_path,
NULL, FALSE, 0.0, 0.0);
gtk_tree_path_free (path);
gtk_tree_path_free (scroll_path);
gtk_tree_selection_select_iter (selection, iter);
}