+2002-03-06 Darin Adler <darin@bentspoon.com>
+
+ * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
+ Update offsets before finding where to insert the new value.
+
+ * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
+ we scroll, instead of just updating the scroll position variables.
+
2002-03-06 Manish Singh <yosh@gimp.org>
* gdk/Makefile.am
+2002-03-06 Darin Adler <darin@bentspoon.com>
+
+ * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
+ Update offsets before finding where to insert the new value.
+
+ * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
+ we scroll, instead of just updating the scroll position variables.
+
2002-03-06 Manish Singh <yosh@gimp.org>
* gdk/Makefile.am
+2002-03-06 Darin Adler <darin@bentspoon.com>
+
+ * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
+ Update offsets before finding where to insert the new value.
+
+ * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
+ we scroll, instead of just updating the scroll position variables.
+
2002-03-06 Manish Singh <yosh@gimp.org>
* gdk/Makefile.am
+2002-03-06 Darin Adler <darin@bentspoon.com>
+
+ * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
+ Update offsets before finding where to insert the new value.
+
+ * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
+ we scroll, instead of just updating the scroll position variables.
+
2002-03-06 Manish Singh <yosh@gimp.org>
* gdk/Makefile.am
+2002-03-06 Darin Adler <darin@bentspoon.com>
+
+ * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
+ Update offsets before finding where to insert the new value.
+
+ * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
+ we scroll, instead of just updating the scroll position variables.
+
2002-03-06 Manish Singh <yosh@gimp.org>
* gdk/Makefile.am
+2002-03-06 Darin Adler <darin@bentspoon.com>
+
+ * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
+ Update offsets before finding where to insert the new value.
+
+ * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
+ we scroll, instead of just updating the scroll position variables.
+
2002-03-06 Manish Singh <yosh@gimp.org>
* gdk/Makefile.am
+2002-03-06 Darin Adler <darin@bentspoon.com>
+
+ * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
+ Update offsets before finding where to insert the new value.
+
+ * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
+ we scroll, instead of just updating the scroll position variables.
+
2002-03-06 Manish Singh <yosh@gimp.org>
* gdk/Makefile.am
elt.ref_count = 0;
elt.children = NULL;
+ /* update all larger offsets */
+ tmp_elt = SORT_ELT (level->array->data);
+ for (i = 0; i < level->array->len; i++, tmp_elt++)
+ if (tmp_elt->offset >= offset)
+ tmp_elt->offset++;
+
if (tree_model_sort->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID &&
tree_model_sort->default_sort_func == NO_SORT_FUNC)
index = offset;
FALSE);
g_array_insert_vals (level->array, index, &elt, 1);
-
- /* update all larger offsets */
tmp_elt = SORT_ELT (level->array->data);
for (i = 0; i < level->array->len; i++, tmp_elt++)
- {
- if ((tmp_elt->offset >= offset) && i != index)
- tmp_elt->offset++;
- if (tmp_elt->children)
- tmp_elt->children->parent_elt = tmp_elt;
- }
+ if (tmp_elt->children)
+ tmp_elt->children->parent_elt = tmp_elt;
return TRUE;
}
GtkTreeIter iter;
GtkRBTree *tree = NULL;
GtkRBNode *node = NULL;
- gboolean validated_area = FALSE;
+ gboolean need_redraw = FALSE;
gboolean size_changed = FALSE;
gboolean modify_dy = FALSE;
gint total_height;
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID) ||
GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_COLUMN_INVALID))
{
- validated_area = TRUE;
+ need_redraw = TRUE;
if (validate_row (tree_view, tree, node, &iter, path))
size_changed = TRUE;
}
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID) ||
GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_COLUMN_INVALID))
{
- validated_area = TRUE;
+ need_redraw = TRUE;
if (validate_row (tree_view, tree, node, &iter, path))
size_changed = TRUE;
}
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID) ||
GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_COLUMN_INVALID))
{
- validated_area = TRUE;
+ need_redraw = TRUE;
if (validate_row (tree_view, tree, node, &iter, path))
size_changed = TRUE;
}
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID) ||
GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_COLUMN_INVALID))
{
- validated_area = TRUE;
+ need_redraw = TRUE;
if (validate_row (tree_view, tree, node, &iter, above_path))
size_changed = TRUE;
}
tree_view->priv->top_row =
gtk_tree_row_reference_new_proxy (G_OBJECT (tree_view), tree_view->priv->model, above_path);
tree_view->priv->top_row_dy = - area_above;
+ need_redraw = TRUE;
}
else
{
}
if (size_changed)
gtk_widget_queue_resize (GTK_WIDGET (tree_view));
- if (validated_area)
+ if (need_redraw)
gtk_widget_queue_draw (GTK_WIDGET (tree_view));
}