Mercurial > pidgin.yaz
diff console/libgnt/gnttree.h @ 14613:62bb53609a36
[gaim-migrate @ 17341]
Menus and windows. I have added a test-app test/menu.c to show how to use it.
Pressing Ctrl+o brings up the menu for the window (if it has one).
It should now be possible to add menus for account-actions and all that stuff.
Patches are very welcome.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 24 Sep 2006 07:14:26 +0000 |
parents | 4a901f5d1312 |
children | f1f1dcb26d89 |
line wrap: on
line diff
--- a/console/libgnt/gnttree.h Sat Sep 23 19:04:03 2006 +0000 +++ b/console/libgnt/gnttree.h Sun Sep 24 07:14:26 2006 +0000 @@ -46,6 +46,7 @@ char *title; } *columns; /* Would a GList be better? */ gboolean show_title; + gboolean show_separator; /* Whether to show column separators */ GCompareFunc compare; }; @@ -54,7 +55,7 @@ { GntWidgetClass parent; - void (*selection_changed)(int old, int current); + void (*selection_changed)(GntTreeRow *old, GntTreeRow * current); void (*gnt_reserved1)(void); void (*gnt_reserved2)(void); @@ -120,6 +121,13 @@ void gnt_tree_set_expanded(GntTree *tree, void *key, gboolean expanded); +void gnt_tree_set_show_separator(GntTree *tree, gboolean set); + G_END_DECLS +/* The following functions should NOT be used by applications. */ + +/* This should be called by the subclasses of GntTree's in their _new function */ +void _gnt_tree_init_internals(GntTree *tree, int col); + #endif /* GNT_TREE_H */