comparison console/gntui.c @ 13907:cc60d0861337

[gaim-migrate @ 16402] This commit has 1234 lines of diff :) Windows can now be moved (alt+m, then the arrow keys, then escape/enter). Add a window to enable/disable accounts. But the 'add' etc. buttons don't have any callbacks yet. I am going to need to do some more widgets (checkbox, combobox) before I do anything else. I have also updated the test programs to work with the changes in libgnt. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 02 Jul 2006 22:13:06 +0000
parents 7d3256b253ec
children 841a5ffbfee4
comparison
equal deleted inserted replaced
13906:b986b6e2441b 13907:cc60d0861337
1 #include "gntui.h" 1 #include "gntui.h"
2
3 #include "gntaccount.h"
2 #include "gntblist.h" 4 #include "gntblist.h"
3 #include "gntconv.h" 5 #include "gntconv.h"
4 6
5 void init_gnt_ui() 7 void init_gnt_ui()
6 { 8 {
7 gnt_init(); 9 gnt_init();
8 10
9 wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); 11 /* Accounts */
10 werase(stdscr); 12 gg_accounts_init();
11 wrefresh(stdscr); 13 gaim_accounts_set_ui_ops(gg_accounts_get_ui_ops());
12 14
13 /* Initialize the buddy list */ 15 /* Initialize the buddy list */
14 gg_blist_init(); 16 gg_blist_init();
15 gaim_blist_set_ui_ops(gg_blist_get_ui_ops()); 17 gaim_blist_set_ui_ops(gg_blist_get_ui_ops());
16 18
17 /* Now the conversations */ 19 /* Now the conversations */
18 gg_conversation_init(); 20 gg_conversation_init();
19 gaim_conversations_set_ui_ops(gg_conv_get_ui_ops()); 21 gaim_conversations_set_ui_ops(gg_conv_get_ui_ops());
20 22
21 gnt_main(); 23 gnt_main();
24
25 gaim_accounts_set_ui_ops(NULL);
26 gg_accounts_uninit();
27
28 gaim_blist_set_ui_ops(NULL);
29 gg_blist_uninit();
30
31 gaim_conversations_set_ui_ops(NULL);
32 gg_conversation_uninit();
33
34 gnt_quit();
22 } 35 }
23 36