forked from AuroraMiddleware/gtk
Don't crash when there are no columns, or all columns are hidden, #131402
Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash when there are no columns, or all columns are hidden, #131402
This commit is contained in:
parent
f2cafe6480
commit
65e277c5d2
@ -1,3 +1,8 @@
|
||||
Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
|
||||
when there are no columns, or all columns are hidden, #131402
|
||||
|
||||
Fri Jan 23 16:58:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
|
||||
when there are no columns, or all columns are hidden, #131402
|
||||
|
||||
Fri Jan 23 16:58:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
|
||||
when there are no columns, or all columns are hidden, #131402
|
||||
|
||||
Fri Jan 23 16:58:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
|
||||
when there are no columns, or all columns are hidden, #131402
|
||||
|
||||
Fri Jan 23 16:58:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
|
||||
when there are no columns, or all columns are hidden, #131402
|
||||
|
||||
Fri Jan 23 16:58:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
|
||||
|
@ -10620,14 +10620,24 @@ gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
|
||||
remaining_x -= tmp_column->width;
|
||||
}
|
||||
|
||||
/* If found is FALSE and there is a last_column, then it the remainder
|
||||
* space is in that area
|
||||
*/
|
||||
if (!found)
|
||||
{
|
||||
if (column)
|
||||
*column = last_column;
|
||||
|
||||
if (cell_x)
|
||||
*cell_x = last_column->width + remaining_x;
|
||||
}
|
||||
if (last_column)
|
||||
{
|
||||
if (column)
|
||||
*column = last_column;
|
||||
|
||||
if (cell_x)
|
||||
*cell_x = last_column->width + remaining_x;
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
y_offset = _gtk_rbtree_find_offset (tree_view->priv->tree,
|
||||
|
Loading…
Reference in New Issue
Block a user