Don't use uninitialized node pointer. (#147911, Peter Zelezny)

Mon Jul 19 23:51:50 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
	use uninitialized node pointer.  (#147911, Peter Zelezny)
This commit is contained in:
Matthias Clasen 2004-07-20 04:05:42 +00:00 committed by Matthias Clasen
parent 48ba281cb9
commit 838497e8ac
5 changed files with 31 additions and 5 deletions

View File

@ -1,3 +1,10 @@
Mon Jul 19 23:51:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
use uninitialized node pointer. (#147911, Peter Zelezny)
* gtk/gtktreeview.c (gtk_tree_view_enter_notify):
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* configure.in: Bump version number

View File

@ -1,3 +1,10 @@
Mon Jul 19 23:51:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
use uninitialized node pointer. (#147911, Peter Zelezny)
* gtk/gtktreeview.c (gtk_tree_view_enter_notify):
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* configure.in: Bump version number

View File

@ -1,3 +1,10 @@
Mon Jul 19 23:51:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
use uninitialized node pointer. (#147911, Peter Zelezny)
* gtk/gtktreeview.c (gtk_tree_view_enter_notify):
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* configure.in: Bump version number

View File

@ -1,3 +1,10 @@
Mon Jul 19 23:51:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
use uninitialized node pointer. (#147911, Peter Zelezny)
* gtk/gtktreeview.c (gtk_tree_view_enter_notify):
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* configure.in: Bump version number

View File

@ -4253,17 +4253,15 @@ gtk_tree_view_enter_notify (GtkWidget *widget,
if (tree_view->priv->tree == NULL)
return FALSE;
if ((tree_view->priv->button_pressed_node != NULL) &&
(tree_view->priv->button_pressed_node != node))
return TRUE;
/* find the node internally */
new_y = TREE_WINDOW_Y_TO_RBTREE_Y(tree_view, event->y);
if (new_y < 0)
new_y = 0;
_gtk_rbtree_find_offset (tree_view->priv->tree, new_y, &tree, &node);
prelight_or_select (tree_view, tree, node, event->x, event->y);
if ((tree_view->priv->button_pressed_node == NULL) ||
(tree_view->priv->button_pressed_node == node))
prelight_or_select (tree_view, tree, node, event->x, event->y);
return TRUE;
}