void gui_draw_init_post ( void   ) 

Initialize trailing GUI components that can only be initialized after initializing locks and chroot()'ing.

Definition at line 49 of file gui_draw.c.

00050 {
00051         /* Lock playq from main thread */
00052         gui_mtx = g_mutex_new();
00053 
00054 #ifdef PDCURSES
00055         PDC_set_title(APP_NAME);
00056 #endif /* PDCURSES */
00057         nonl();
00058         cbreak();
00059         noecho();
00060         keypad(stdscr, TRUE);
00061         raw();
00062         wnoutrefresh(stdscr);
00063 
00064         gui_draw_colors =
00065             config_getopt_bool("gui.color.enabled") && has_colors();
00066         gui_draw_ratio = config_getopt_percentage("gui.ratio");
00067 
00068         if (gui_draw_colors) {
00069                 start_color();
00070 #ifdef NCURSES_VERSION
00071                 use_default_colors();
00072 #endif /* NCURSES_VERSION */
00073 
00074                 init_pair(GUI_COLOR_BAR,
00075                     config_getopt_color("gui.color.bar.fg"),
00076                     config_getopt_color("gui.color.bar.bg"));
00077                 init_pair(GUI_COLOR_BLOCK,
00078                     config_getopt_color("gui.color.block.fg"),
00079                     config_getopt_color("gui.color.block.bg"));
00080                 init_pair(GUI_COLOR_SELECT,
00081                     config_getopt_color("gui.color.select.fg"),
00082                     config_getopt_color("gui.color.select.bg"));
00083                 init_pair(GUI_COLOR_DESELECT,
00084                     config_getopt_color("gui.color.deselect.fg"),
00085                     config_getopt_color("gui.color.deselect.bg"));
00086                 init_pair(GUI_COLOR_MARKED,
00087                     config_getopt_color("gui.color.marked.fg"),
00088                     config_getopt_color("gui.color.marked.bg"));
00089         }
00090 
00091         gui_msgbar_init();
00092         gui_playq_init();
00093         gui_browser_init();
00094         gui_draw_done();
00095 }

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:09 2010 for herrie by  doxygen 1.6.3