mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
no longer g_assert.
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer g_assert.
This commit is contained in:
parent
cef69b57fe
commit
76237096a8
@ -1,3 +1,8 @@
|
||||
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
|
||||
g_assert.
|
||||
|
||||
2002-01-28 Jon Trowbridge <trow@gnu.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
|
||||
g_assert.
|
||||
|
||||
2002-01-28 Jon Trowbridge <trow@gnu.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
|
||||
g_assert.
|
||||
|
||||
2002-01-28 Jon Trowbridge <trow@gnu.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
|
||||
g_assert.
|
||||
|
||||
2002-01-28 Jon Trowbridge <trow@gnu.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
|
||||
g_assert.
|
||||
|
||||
2002-01-28 Jon Trowbridge <trow@gnu.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
|
||||
g_assert.
|
||||
|
||||
2002-01-28 Jon Trowbridge <trow@gnu.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
|
||||
g_assert.
|
||||
|
||||
2002-01-28 Jon Trowbridge <trow@gnu.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
|
||||
|
@ -3474,6 +3474,9 @@ install_presize_handler (GtkTreeView *tree_view)
|
||||
}
|
||||
}
|
||||
|
||||
/* Always call this iff dy is in the visible range. If the tree is empty, then
|
||||
* it's set to be NULL, and top_row_dy is 0;
|
||||
*/
|
||||
static void
|
||||
gtk_tree_view_dy_to_top_row (GtkTreeView *tree_view)
|
||||
{
|
||||
@ -3485,7 +3488,12 @@ gtk_tree_view_dy_to_top_row (GtkTreeView *tree_view)
|
||||
tree_view->priv->top_row_dy = _gtk_rbtree_find_offset (tree_view->priv->tree,
|
||||
tree_view->priv->dy,
|
||||
&tree, &node);
|
||||
g_assert (tree != NULL);
|
||||
if (tree == NULL)
|
||||
{
|
||||
tree_view->priv->top_row = NULL;
|
||||
tree_view->priv->top_row_dy = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
path = _gtk_tree_view_find_path (tree_view, tree, node);
|
||||
tree_view->priv->top_row = gtk_tree_row_reference_new_proxy (G_OBJECT (tree_view), tree_view->priv->model, path);
|
||||
|
Loading…
Reference in New Issue
Block a user