Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dorota Czaplejewicz
gtk
Commits
14c8149d
Commit
14c8149d
authored
Sep 04, 2009
by
Kristian Rietveld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly handle cases where an ancestor node is invisible
parent
bbb5bbb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
gtk/gtktreemodelfilter.c
gtk/gtktreemodelfilter.c
+13
-5
No files found.
gtk/gtktreemodelfilter.c
View file @
14c8149d
...
...
@@ -1258,14 +1258,18 @@ gtk_tree_model_filter_row_changed (GtkTreeModel *c_model,
*/
gtk_tree_path_free
(
path
);
path
=
gtk_tree_model_get_path
(
GTK_TREE_MODEL
(
filter
),
&
iter
);
gtk_tree_model_row_changed
(
GTK_TREE_MODEL
(
filter
),
path
,
&
iter
);
level
=
FILTER_LEVEL
(
iter
.
user_data
);
elt
=
FILTER_ELT
(
iter
.
user_data2
);
/* and update the children */
if
(
gtk_tree_model_iter_children
(
c_model
,
&
children
,
&
real_c_iter
))
gtk_tree_model_filter_update_children
(
filter
,
level
,
elt
);
if
(
gtk_tree_model_filter_elt_is_visible_in_target
(
level
,
elt
))
{
gtk_tree_model_row_changed
(
GTK_TREE_MODEL
(
filter
),
path
,
&
iter
);
/* and update the children */
if
(
gtk_tree_model_iter_children
(
c_model
,
&
children
,
&
real_c_iter
))
gtk_tree_model_filter_update_children
(
filter
,
level
,
elt
);
}
goto
done
;
}
...
...
@@ -1288,10 +1292,14 @@ gtk_tree_model_filter_row_changed (GtkTreeModel *c_model,
gtk_tree_model_filter_increment_stamp
(
filter
);
/* We need to allow to build new levels, because we are then pulling
* in a child in an invisible level. We only want to find path if it
* is in a visible level (and thus has a parent that is visible).
*/
if
(
!
path
)
path
=
gtk_real_tree_model_filter_convert_child_path_to_path
(
filter
,
c_path
,
TRU
E
,
FALS
E
,
TRUE
);
if
(
!
path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment