Commit 1d528b97 authored by Joshua N Pritikin's avatar Joshua N Pritikin

Fix to work on empty models.

* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
parent 524704cd
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:
......
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:
......
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:
......
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:
......
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:
......
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:
......
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:
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment