summaryrefslogtreecommitdiff
path: root/gtk/gtktree.h
diff options
context:
space:
mode:
authorPST 1998 Shawn T. Amundson <amundson@gimp.org>1998-03-02 00:32:52 +0000
committerShawn Amundson <amundson@src.gnome.org>1998-03-02 00:32:52 +0000
commitf6f1ce01c6b33fe75e32c7e76ef5e7fc9ce494ab (patch)
treedca8f578054ea33fd2973ee3eb6d6d38e4a60342 /gtk/gtktree.h
parent80fd0a0c0068cd09d120e1a74df26cf82004a491 (diff)
downloadgtk+-f6f1ce01c6b33fe75e32c7e76ef5e7fc9ce494ab.tar.gz
Required changes for version change to 0.99.4
Sun Mar 1 15:18:38 PST 1998 Shawn T. Amundson <amundson@gimp.org> * Required changes for version change to 0.99.4 * gtk/gtktree.[ch]: patch from J. Bolliet to correct some bugs * gtk/testgtk.c: added test here from J. Bolliet, removed testtree * gtk/clist: gtk-abilleira-981602-0, allows gtk_clist_set_pixmap and gtk_clist_set_pixtext to not require a mask * gdk/gdkdraw.c,gdk.h: gtk-trow-980217-0 adds gdk_draw_lines and fixes some things about gdk_draw_polygon
Diffstat (limited to 'gtk/gtktree.h')
-rw-r--r--gtk/gtktree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktree.h b/gtk/gtktree.h
index aaacd86c2f..a764b3ea1e 100644
--- a/gtk/gtktree.h
+++ b/gtk/gtktree.h
@@ -18,6 +18,8 @@
#ifndef __GTK_TREE_H__
#define __GTK_TREE_H__
+/* set this flag to enable tree debugging output */
+/* #define TREE_DEBUG */
#include <gdk/gdk.h>
#include <gtk/gtkcontainer.h>
@@ -32,7 +34,7 @@ extern "C" {
#define GTK_TREE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_tree_get_type (), GtkTreeClass)
#define GTK_IS_TREE(obj) GTK_CHECK_TYPE (obj, gtk_tree_get_type ())
-#define GTK_IS_ROOT_TREE(obj) (GTK_TREE(obj)->root_tree == NULL)
+#define GTK_IS_ROOT_TREE(obj) (GTK_TREE(obj)->root_tree == obj)
#define GTK_TREE_ROOT_TREE(obj) (GTK_TREE(obj)->root_tree ? GTK_TREE(obj)->root_tree : GTK_TREE(obj))
#define GTK_TREE_SELECTION(obj) (GTK_TREE_ROOT_TREE(obj)->selection)