summaryrefslogtreecommitdiff
path: root/gtk/gtktree.h
diff options
context:
space:
mode:
authorShawn Amundson <amundson@src.gnome.org>1997-12-19 05:41:45 +0000
committerShawn Amundson <amundson@src.gnome.org>1997-12-19 05:41:45 +0000
commite9f322e2f020e977c1fe6b0fb93807d978da16a2 (patch)
tree92a73bb1e4adb1ac440fb602a9118486df969f04 /gtk/gtktree.h
parentf7b1fa3aedc6e639812d85aaf7ad8f06f84219ad (diff)
downloadgtk+-e9f322e2f020e977c1fe6b0fb93807d978da16a2.tar.gz
Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.
Corrects a bug in gtk_tree_remove_items and gtk_tree_item_destroy. Adds the possibility to connect all items by lines. This is the default now. You can overide this with the function gtk_tree_set_view_line which take a tree and a boolean. This tree widget looks way more finished with the lines. Very nice. Check it out and run gtk/testtree. -Shawn
Diffstat (limited to 'gtk/gtktree.h')
-rw-r--r--gtk/gtktree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktree.h b/gtk/gtktree.h
index 2dc5ece1b3..aaacd86c2f 100644
--- a/gtk/gtktree.h
+++ b/gtk/gtktree.h
@@ -54,10 +54,12 @@ struct _GtkTree
GtkTree* root_tree; /* owner of selection list */
GtkWidget* tree_owner;
GList *selection;
+ guint level;
guint indent_value;
guint current_indent;
guint selection_mode : 2;
guint view_mode : 1;
+ guint view_line : 1;
};
struct _GtkTreeClass
@@ -102,6 +104,8 @@ void gtk_tree_set_selection_mode (GtkTree *tree,
GtkSelectionMode mode);
void gtk_tree_set_view_mode (GtkTree *tree,
GtkTreeViewMode mode);
+void gtk_tree_set_view_lines (GtkTree *tree,
+ guint flag);
#ifdef __cplusplus
}
#endif /* __cplusplus */