]> Pileus Git - ~andy/gtk/commitdiff
eek, i've never seen a bug here, never been here and never fixed anything
authorTim Janik <timj@gtk.org>
Tue, 11 Jul 2000 06:08:24 +0000 (06:08 +0000)
committerTim Janik <timj@src.gnome.org>
Tue, 11 Jul 2000 06:08:24 +0000 (06:08 +0000)
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).

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktree.c

index cce9c6d10c59732dc312fb2302322621a1d6d4df..c2eda145aedfd153c1bb50a37e7f7581e21de999 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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).
+
 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
index cce9c6d10c59732dc312fb2302322621a1d6d4df..c2eda145aedfd153c1bb50a37e7f7581e21de999 100644 (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).
+
 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
index cce9c6d10c59732dc312fb2302322621a1d6d4df..c2eda145aedfd153c1bb50a37e7f7581e21de999 100644 (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).
+
 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
index cce9c6d10c59732dc312fb2302322621a1d6d4df..c2eda145aedfd153c1bb50a37e7f7581e21de999 100644 (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).
+
 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
index cce9c6d10c59732dc312fb2302322621a1d6d4df..c2eda145aedfd153c1bb50a37e7f7581e21de999 100644 (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).
+
 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
index cce9c6d10c59732dc312fb2302322621a1d6d4df..c2eda145aedfd153c1bb50a37e7f7581e21de999 100644 (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).
+
 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
index cce9c6d10c59732dc312fb2302322621a1d6d4df..c2eda145aedfd153c1bb50a37e7f7581e21de999 100644 (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).
+
 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
index 40c9fd79e2de604ca6af4968a4b454774be46806..a549e0e41a7dff6772b81e0df32cff43110e4ef1 100644 (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 (G_STRLOC ": unable to select a child in a tree prior to realization");
+      return;
+    }
   
   root_selection = tree->root_tree->selection;