From b852358d0ac7e144909236fa5851ec89408b9867 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Thu, 1 Nov 2001 17:23:03 +0000 Subject: [PATCH] Fix crash found by Matt Wilson. Thu Nov 1 12:21:31 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash found by Matt Wilson. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtktreeview.c | 1 + 8 files changed, 36 insertions(+) diff --git a/ChangeLog b/ChangeLog index 958ab4cc02..2dd76b34d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 1 12:21:31 2001 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash + found by Matt Wilson. + Thu Nov 1 00:44:50 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift, diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 958ab4cc02..2dd76b34d0 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Thu Nov 1 12:21:31 2001 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash + found by Matt Wilson. + Thu Nov 1 00:44:50 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 958ab4cc02..2dd76b34d0 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Thu Nov 1 12:21:31 2001 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash + found by Matt Wilson. + Thu Nov 1 00:44:50 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift, diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 958ab4cc02..2dd76b34d0 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Thu Nov 1 12:21:31 2001 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash + found by Matt Wilson. + Thu Nov 1 00:44:50 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift, diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 958ab4cc02..2dd76b34d0 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Thu Nov 1 12:21:31 2001 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash + found by Matt Wilson. + Thu Nov 1 00:44:50 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 958ab4cc02..2dd76b34d0 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Thu Nov 1 12:21:31 2001 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash + found by Matt Wilson. + Thu Nov 1 00:44:50 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 958ab4cc02..2dd76b34d0 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Thu Nov 1 12:21:31 2001 Jonathan Blandford + + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash + found by Matt Wilson. + Thu Nov 1 00:44:50 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift, diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 65c0601020..c443407d2c 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -5835,6 +5835,7 @@ gtk_tree_view_focus_to_cursor (GtkTreeView *tree_view) { cursor_path = gtk_tree_path_new_root (); gtk_tree_row_reference_free (tree_view->priv->cursor); + tree_view->priv->cursor = NULL; if (tree_view->priv->selection->type == GTK_SELECTION_MULTIPLE) gtk_tree_view_real_set_cursor (tree_view, cursor_path, FALSE);