forked from AuroraMiddleware/gtk
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:
parent
64911ddc44
commit
fc5ee9256d
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user