[gimp] app: make sure the selected item's parent paths are all expanded
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make sure the selected item's parent paths are all expanded
- Date: Sun, 14 Mar 2010 22:00:11 +0000 (UTC)
commit 9565ef44a91642234dea7577ea02088a998082ba
Author: Michael Natterer <mitch gimp org>
Date: Sun Mar 14 22:57:03 2010 +0100
app: make sure the selected item's parent paths are all expanded
app/widgets/gimpcontainertreeview.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpcontainertreeview.c b/app/widgets/gimpcontainertreeview.c
index 8ef07e3..9b2e6f2 100644
--- a/app/widgets/gimpcontainertreeview.c
+++ b/app/widgets/gimpcontainertreeview.c
@@ -812,10 +812,18 @@ gimp_container_tree_view_select_item (GimpContainerView *view,
if (viewable && insert_data)
{
GtkTreePath *path;
+ GtkTreePath *parent_path;
GtkTreeIter *iter = (GtkTreeIter *) insert_data;
path = gtk_tree_model_get_path (tree_view->model, iter);
+ parent_path = gtk_tree_path_copy (path);
+
+ if (gtk_tree_path_up (parent_path))
+ gtk_tree_view_expand_to_path (tree_view->view, parent_path);
+
+ gtk_tree_path_free (parent_path);
+
g_signal_handlers_block_by_func (tree_view->priv->selection,
gimp_container_tree_view_selection_changed,
tree_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]