From 4a19c3da8214e430c7709ad4c52e5a9da398d02d Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Thu, 19 Dec 2002 02:38:27 +0000 Subject: [PATCH] the rand variable should be static to avoid conflicts with rand(). Thu Dec 19 03:58:36 2002 Kristian Rietveld * tests/testtreeflow.c: the rand variable should be static to avoid conflicts with rand(). (#100844, reported by Soeren Sandmann, fix pointed out by Matthias Clasen). Thu Dec 19 03:56:23 2002 Kristian Rietveld * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): if we started editing, we handled this key signal, so return TRUE. (#100532, reported by Soeren Sandmann). --- ChangeLog | 12 ++++++++++++ ChangeLog.pre-2-10 | 12 ++++++++++++ ChangeLog.pre-2-2 | 12 ++++++++++++ ChangeLog.pre-2-4 | 12 ++++++++++++ ChangeLog.pre-2-6 | 12 ++++++++++++ ChangeLog.pre-2-8 | 12 ++++++++++++ gtk/gtktreeview.c | 2 +- tests/testtreeflow.c | 2 +- 8 files changed, 74 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5591918525..8f98ebf0fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Thu Dec 19 03:58:36 2002 Kristian Rietveld + + * tests/testtreeflow.c: the rand variable should be static to + avoid conflicts with rand(). (#100844, reported by Soeren Sandmann, + fix pointed out by Matthias Clasen). + +Thu Dec 19 03:56:23 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): if we + started editing, we handled this key signal, so return TRUE. + (#100532, reported by Soeren Sandmann). + 2002-12-18 Matthias Clasen * gtk/gtkwidget.c: Add docs. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5591918525..8f98ebf0fd 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,15 @@ +Thu Dec 19 03:58:36 2002 Kristian Rietveld + + * tests/testtreeflow.c: the rand variable should be static to + avoid conflicts with rand(). (#100844, reported by Soeren Sandmann, + fix pointed out by Matthias Clasen). + +Thu Dec 19 03:56:23 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): if we + started editing, we handled this key signal, so return TRUE. + (#100532, reported by Soeren Sandmann). + 2002-12-18 Matthias Clasen * gtk/gtkwidget.c: Add docs. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 5591918525..8f98ebf0fd 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,15 @@ +Thu Dec 19 03:58:36 2002 Kristian Rietveld + + * tests/testtreeflow.c: the rand variable should be static to + avoid conflicts with rand(). (#100844, reported by Soeren Sandmann, + fix pointed out by Matthias Clasen). + +Thu Dec 19 03:56:23 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): if we + started editing, we handled this key signal, so return TRUE. + (#100532, reported by Soeren Sandmann). + 2002-12-18 Matthias Clasen * gtk/gtkwidget.c: Add docs. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 5591918525..8f98ebf0fd 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,15 @@ +Thu Dec 19 03:58:36 2002 Kristian Rietveld + + * tests/testtreeflow.c: the rand variable should be static to + avoid conflicts with rand(). (#100844, reported by Soeren Sandmann, + fix pointed out by Matthias Clasen). + +Thu Dec 19 03:56:23 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): if we + started editing, we handled this key signal, so return TRUE. + (#100532, reported by Soeren Sandmann). + 2002-12-18 Matthias Clasen * gtk/gtkwidget.c: Add docs. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5591918525..8f98ebf0fd 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,15 @@ +Thu Dec 19 03:58:36 2002 Kristian Rietveld + + * tests/testtreeflow.c: the rand variable should be static to + avoid conflicts with rand(). (#100844, reported by Soeren Sandmann, + fix pointed out by Matthias Clasen). + +Thu Dec 19 03:56:23 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): if we + started editing, we handled this key signal, so return TRUE. + (#100532, reported by Soeren Sandmann). + 2002-12-18 Matthias Clasen * gtk/gtkwidget.c: Add docs. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5591918525..8f98ebf0fd 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,15 @@ +Thu Dec 19 03:58:36 2002 Kristian Rietveld + + * tests/testtreeflow.c: the rand variable should be static to + avoid conflicts with rand(). (#100844, reported by Soeren Sandmann, + fix pointed out by Matthias Clasen). + +Thu Dec 19 03:56:23 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): if we + started editing, we handled this key signal, so return TRUE. + (#100532, reported by Soeren Sandmann). + 2002-12-18 Matthias Clasen * gtk/gtkwidget.c: Add docs. diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index e9e9325011..b500f6f7ec 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -7487,7 +7487,7 @@ gtk_tree_view_real_select_cursor_row (GtkTreeView *tree_view, if (gtk_tree_view_start_editing (tree_view, cursor_path)) { gtk_tree_path_free (cursor_path); - return FALSE; + return TRUE; } } _gtk_tree_selection_internal_select_node (tree_view->priv->selection, diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c index 50abad7407..ffc0b8650e 100644 --- a/tests/testtreeflow.c +++ b/tests/testtreeflow.c @@ -1,7 +1,7 @@ #include GtkTreeModel *model = NULL; -GRand *rand = NULL; +static GRand *rand = NULL; GtkTreeSelection *selection = NULL; enum {