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>
|
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||||
|
|
||||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
* 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>
|
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||||
|
|
||||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
* 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>
|
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||||
|
|
||||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
* 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>
|
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||||
|
|
||||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
* 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>
|
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||||
|
|
||||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
* 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>
|
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||||
|
|
||||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
* 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>
|
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
|
||||||
|
|
||||||
* gtk/gtktreemodelsort.c: more changes in an attempt to get
|
* 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 */
|
/* find the parent level */
|
||||||
while (i < gtk_tree_path_get_depth (s_path) - 1)
|
while (i < gtk_tree_path_get_depth (s_path) - 1)
|
||||||
{
|
{
|
||||||
|
gint j;
|
||||||
|
|
||||||
if (!level)
|
if (!level)
|
||||||
{
|
{
|
||||||
/* level not yet build, we won't cover this signal */
|
/* level not yet build, we won't cover this signal */
|
||||||
@ -523,8 +525,17 @@ gtk_tree_model_sort_row_inserted (GtkTreeModel *s_model,
|
|||||||
"before the parent was inserted.");
|
"before the parent was inserted.");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
elt = SORT_ELT (&g_array_index (level->array, SortElt, gtk_tree_path_get_indices (s_path)[i]));
|
|
||||||
if (!elt->children)
|
if (!elt->children)
|
||||||
{
|
{
|
||||||
/* FIXME: emit has_child_toggled here? like the treeview? */
|
/* FIXME: emit has_child_toggled here? like the treeview? */
|
||||||
|
|||||||
Reference in New Issue
Block a user