Mercurial > pidgin.yaz
diff console/libgnt/test/multiwin.c @ 13916:fdf2dbed6faa
[gaim-migrate @ 16418]
Make the conversation windows bigger ... which is better *wink*.
Use Panel library to manage the windows.
Add a window-list that you can use to quickly switch to a window
(press Alt+w to bring it up).
Get rid of some unused codes.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 04 Jul 2006 01:32:39 +0000 |
parents | cc60d0861337 |
children | 9309d27d780c |
line wrap: on
line diff
--- a/console/libgnt/test/multiwin.c Mon Jul 03 21:19:56 2006 +0000 +++ b/console/libgnt/test/multiwin.c Tue Jul 04 01:32:39 2006 +0000 @@ -1,18 +1,20 @@ +#include "gnt.h" #include "gntbutton.h" -#include "gnt.h" +#include "gntentry.h" #include "gntkeys.h" +#include "gntlabel.h" #include "gnttree.h" #include "gntbox.h" gboolean show(GntWidget *w) { - gnt_widget_draw(w); - - return TRUE; + gnt_widget_destroy(w); + return FALSE; } int main() { + freopen(".error", "w", stderr); gnt_init(); GntWidget *hbox, *tree, *box2; @@ -36,11 +38,11 @@ gnt_box_set_toplevel(GNT_BOX(box2), TRUE); gnt_box_set_title(GNT_BOX(box2), "On top"); - gnt_box_add_widget(GNT_BOX(box2), GNT_WIDGET(gnt_label_new("asdasd"))); + gnt_box_add_widget(GNT_BOX(box2), gnt_label_new("asdasd")); gnt_box_add_widget(GNT_BOX(box2), gnt_entry_new(NULL)); gnt_widget_show(hbox); - gnt_widget_set_position(box2, 5, 5); + gnt_widget_set_position(box2, 35, 15); gnt_widget_show(box2); gnt_tree_add_row_after(GNT_TREE(tree), "a", "a", NULL, NULL); @@ -56,7 +58,8 @@ gnt_tree_add_row_after(GNT_TREE(tree), "5", "5", "d", NULL); gnt_tree_add_row_after(GNT_TREE(tree), "6", "6", "4", NULL); - g_timeout_add(1000, (GSourceFunc)show, hbox); + + g_timeout_add(5000, show, box2); gnt_main();