Fix to work on empty models.

* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
This commit is contained in:
Joshua N Pritikin 2001-10-12 18:39:14 +00:00
parent 524704cd43
commit 1d528b97ed
8 changed files with 38 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
2001-10-11 Matthias Clasen <matthiasc@poet.de>
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:

View File

@ -1,3 +1,8 @@
Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
2001-10-11 Matthias Clasen <matthiasc@poet.de>
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:

View File

@ -1,3 +1,8 @@
Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
2001-10-11 Matthias Clasen <matthiasc@poet.de>
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:

View File

@ -1,3 +1,8 @@
Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
2001-10-11 Matthias Clasen <matthiasc@poet.de>
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:

View File

@ -1,3 +1,8 @@
Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
2001-10-11 Matthias Clasen <matthiasc@poet.de>
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:

View File

@ -1,3 +1,8 @@
Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
2001-10-11 Matthias Clasen <matthiasc@poet.de>
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:

View File

@ -1,3 +1,8 @@
Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
2001-10-11 Matthias Clasen <matthiasc@poet.de>
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:

View File

@ -8036,7 +8036,6 @@ gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
gint y_offset;
g_return_val_if_fail (tree_view != NULL, FALSE);
g_return_val_if_fail (tree_view->priv->tree != NULL, FALSE);
g_return_val_if_fail (tree_view->priv->bin_window != NULL, FALSE);
if (window)
@ -8047,6 +8046,9 @@ gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
if (column)
*column = NULL;
if (tree_view->priv->tree == NULL)
return FALSE;
if (x > tree_view->priv->hadjustment->upper)
return FALSE;