do not try to find the clicked node in the tree when tree == NULL

Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
        to find the clicked node in the tree when tree == NULL
This commit is contained in:
Kristian Rietveld 2001-12-13 19:36:40 +00:00 committed by Kristian Rietveld
parent 5a3de51ba1
commit fe655f3919
8 changed files with 37 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
to find the clicked node in the tree when tree == NULL
2001-12-13 Anders Carlsson <andersca@gnu.org> 2001-12-13 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare

View File

@ -1,3 +1,8 @@
Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
to find the clicked node in the tree when tree == NULL
2001-12-13 Anders Carlsson <andersca@gnu.org> 2001-12-13 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare

View File

@ -1,3 +1,8 @@
Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
to find the clicked node in the tree when tree == NULL
2001-12-13 Anders Carlsson <andersca@gnu.org> 2001-12-13 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare

View File

@ -1,3 +1,8 @@
Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
to find the clicked node in the tree when tree == NULL
2001-12-13 Anders Carlsson <andersca@gnu.org> 2001-12-13 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare

View File

@ -1,3 +1,8 @@
Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
to find the clicked node in the tree when tree == NULL
2001-12-13 Anders Carlsson <andersca@gnu.org> 2001-12-13 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare

View File

@ -1,3 +1,8 @@
Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
to find the clicked node in the tree when tree == NULL
2001-12-13 Anders Carlsson <andersca@gnu.org> 2001-12-13 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare

View File

@ -1,3 +1,8 @@
Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
to find the clicked node in the tree when tree == NULL
2001-12-13 Anders Carlsson <andersca@gnu.org> 2001-12-13 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Compare * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare

View File

@ -1654,7 +1654,8 @@ gtk_tree_view_button_press (GtkWidget *widget,
"horizontal_separator", &horizontal_separator, "horizontal_separator", &horizontal_separator,
NULL); NULL);
if (event->window == tree_view->priv->bin_window) if (event->window == tree_view->priv->bin_window &&
tree_view->priv->tree != NULL)
{ {
GtkRBNode *node; GtkRBNode *node;
GtkRBTree *tree; GtkRBTree *tree;