diff options
author | Tim Janik <timj@gtk.org> | 2000-07-11 06:08:02 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2000-07-11 06:08:02 +0000 |
commit | f969f69af3bf55108dcfc653cf2d41aa491b3376 (patch) | |
tree | 3b15d7e1671ed25354da1850a9bc2f5a62eea98d | |
parent | 7307991b627d9cfe7ac3808429643af58401fbec (diff) | |
download | gdk-pixbuf-f969f69af3bf55108dcfc653cf2d41aa491b3376.tar.gz |
eek, i've never seen a bug here, never been here and never fixed anything
Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
* gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
a bug here, never been here and never fixed anything ;(
(don't segfault if tree->root_tree is NULL, which happens prior
to widget realization, but puke instead).
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | gtk/gtktree.c | 6 |
8 files changed, 55 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org> + + * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen + a bug here, never been here and never fixed anything ;( + (don't segfault if tree->root_tree is NULL, which happens prior + to widget realization, but puke instead). + Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com> * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 7c34ee350..d48d3f758 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org> + + * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen + a bug here, never been here and never fixed anything ;( + (don't segfault if tree->root_tree is NULL, which happens prior + to widget realization, but puke instead). + Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com> * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7c34ee350..d48d3f758 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org> + + * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen + a bug here, never been here and never fixed anything ;( + (don't segfault if tree->root_tree is NULL, which happens prior + to widget realization, but puke instead). + Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com> * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 7c34ee350..d48d3f758 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org> + + * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen + a bug here, never been here and never fixed anything ;( + (don't segfault if tree->root_tree is NULL, which happens prior + to widget realization, but puke instead). + Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com> * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 7c34ee350..d48d3f758 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org> + + * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen + a bug here, never been here and never fixed anything ;( + (don't segfault if tree->root_tree is NULL, which happens prior + to widget realization, but puke instead). + Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com> * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 7c34ee350..d48d3f758 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org> + + * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen + a bug here, never been here and never fixed anything ;( + (don't segfault if tree->root_tree is NULL, which happens prior + to widget realization, but puke instead). + Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com> * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7c34ee350..d48d3f758 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org> + + * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen + a bug here, never been here and never fixed anything ;( + (don't segfault if tree->root_tree is NULL, which happens prior + to widget realization, but puke instead). + Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com> * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by diff --git a/gtk/gtktree.c b/gtk/gtktree.c index b3765f561..ccaec4851 100644 --- a/gtk/gtktree.c +++ b/gtk/gtktree.c @@ -1057,6 +1057,12 @@ gtk_real_tree_select_child (GtkTree *tree, g_return_if_fail (GTK_IS_TREE (tree)); g_return_if_fail (child != NULL); g_return_if_fail (GTK_IS_TREE_ITEM (child)); + + if (!tree->root_tree) + { + g_warning ("gtk_real_tree_select_child(): unable to select a child in a tree prior to realization"); + return; + } root_selection = tree->root_tree->selection; |