mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Don't iterate too far up. (#147965, Olivier Sessink)
Fri Jul 23 11:00:17 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): Don't iterate too far up. (#147965, Olivier Sessink)
This commit is contained in:
parent
a35539698a
commit
74d62a92ea
@ -1,3 +1,8 @@
|
||||
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
|
||||
Don't iterate too far up. (#147965, Olivier Sessink)
|
||||
|
||||
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_finalize):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
|
||||
Don't iterate too far up. (#147965, Olivier Sessink)
|
||||
|
||||
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_finalize):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
|
||||
Don't iterate too far up. (#147965, Olivier Sessink)
|
||||
|
||||
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_finalize):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
|
||||
Don't iterate too far up. (#147965, Olivier Sessink)
|
||||
|
||||
Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_finalize):
|
||||
|
@ -4487,8 +4487,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
|
||||
line_ancestor = line->parent;
|
||||
line_ancestor_parent = line->parent->parent;
|
||||
|
||||
node = line_ancestor_parent->children.node;
|
||||
while (node != line_ancestor || line_ancestor != info->tag_root)
|
||||
while (line_ancestor != info->tag_root)
|
||||
{
|
||||
GSList *child_nodes = NULL;
|
||||
GSList *tmp;
|
||||
@ -4496,6 +4495,11 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
|
||||
/* Create reverse-order list of nodes before
|
||||
* line_ancestor
|
||||
*/
|
||||
if (line_ancestor_parent != NULL)
|
||||
node = line_ancestor_parent->children.node;
|
||||
else
|
||||
node = line_ancestor;
|
||||
|
||||
while (node != line_ancestor && node != NULL)
|
||||
{
|
||||
child_nodes = g_slist_prepend (child_nodes, node);
|
||||
@ -4526,11 +4530,6 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
|
||||
/* Didn't find anything on this level; go up one level. */
|
||||
line_ancestor = line_ancestor_parent;
|
||||
line_ancestor_parent = line_ancestor->parent;
|
||||
|
||||
if (line_ancestor_parent != NULL)
|
||||
{
|
||||
node = line_ancestor_parent->children.node;
|
||||
}
|
||||
}
|
||||
|
||||
/* No dice. */
|
||||
|
Loading…
Reference in New Issue
Block a user