treat s_path as a child path
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat s_path as a child path
This commit is contained in:
committed by
Kristian Rietveld
parent
beaba6a43c
commit
c9e39b2a34
@ -1,3 +1,8 @@
|
||||
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
|
||||
s_path as a child path
|
||||
|
||||
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
|
||||
s_path as a child path
|
||||
|
||||
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
|
||||
s_path as a child path
|
||||
|
||||
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
|
||||
s_path as a child path
|
||||
|
||||
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
|
||||
s_path as a child path
|
||||
|
||||
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
|
||||
s_path as a child path
|
||||
|
||||
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
|
||||
s_path as a child path
|
||||
|
||||
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||
|
||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
||||
|
||||
@ -510,6 +510,8 @@ gtk_tree_model_sort_row_inserted (GtkTreeModel *s_model,
|
||||
/* find the parent level */
|
||||
while (i < gtk_tree_path_get_depth (s_path) - 1)
|
||||
{
|
||||
gint j;
|
||||
|
||||
if (!level)
|
||||
{
|
||||
/* level not yet build, we won't cover this signal */
|
||||
@ -524,7 +526,16 @@ gtk_tree_model_sort_row_inserted (GtkTreeModel *s_model,
|
||||
goto done;
|
||||
}
|
||||
|
||||
elt = SORT_ELT (&g_array_index (level->array, SortElt, gtk_tree_path_get_indices (s_path)[i]));
|
||||
elt = NULL;
|
||||
for (j = 0; j < level->array->len; j++)
|
||||
if (g_array_index (level->array, SortElt, j).offset == gtk_tree_path_get_indices (s_path)[i])
|
||||
{
|
||||
elt = &g_array_index (level->array, SortElt, j);
|
||||
break;
|
||||
}
|
||||
|
||||
g_return_if_fail (elt != NULL);
|
||||
|
||||
if (!elt->children)
|
||||
{
|
||||
/* FIXME: emit has_child_toggled here? like the treeview? */
|
||||
|
||||
Reference in New Issue
Block a user