mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
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:
parent
524704cd43
commit
1d528b97ed
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user