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).
This commit is contained in:
Tim Janik
2000-07-11 06:08:02 +00:00
committed by Tim Janik
parent 7307991b62
commit f969f69af3
8 changed files with 55 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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;