mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
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:
parent
48ba281cb9
commit
838497e8ac
@ -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>
|
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* configure.in: Bump version number
|
* configure.in: Bump version number
|
||||||
|
@ -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>
|
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* configure.in: Bump version number
|
* configure.in: Bump version number
|
||||||
|
@ -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>
|
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* configure.in: Bump version number
|
* configure.in: Bump version number
|
||||||
|
@ -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>
|
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* configure.in: Bump version number
|
* configure.in: Bump version number
|
||||||
|
@ -4253,17 +4253,15 @@ gtk_tree_view_enter_notify (GtkWidget *widget,
|
|||||||
if (tree_view->priv->tree == NULL)
|
if (tree_view->priv->tree == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if ((tree_view->priv->button_pressed_node != NULL) &&
|
|
||||||
(tree_view->priv->button_pressed_node != node))
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
/* find the node internally */
|
/* find the node internally */
|
||||||
new_y = TREE_WINDOW_Y_TO_RBTREE_Y(tree_view, event->y);
|
new_y = TREE_WINDOW_Y_TO_RBTREE_Y(tree_view, event->y);
|
||||||
if (new_y < 0)
|
if (new_y < 0)
|
||||||
new_y = 0;
|
new_y = 0;
|
||||||
_gtk_rbtree_find_offset (tree_view->priv->tree, new_y, &tree, &node);
|
_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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user