void gnc_GWEN_Gui_log_init(void) { if (!log_gwen_gui) { log_gwen_gui = GWEN_Gui_new(); /* Always use our own logging */ GWEN_Gui_SetLogHookFn(log_gwen_gui, loghook_cb); /* Keep a reference so that the GWEN_GUI survives a GUI switch */ GWEN_Gui_Attach(log_gwen_gui); } GWEN_Gui_SetGui(log_gwen_gui); }
void gnc_GWEN_Gui_log_init(void) { if (!log_gwen_gui) { log_gwen_gui = #ifdef USING_GWENHYWFAR_GTK2_GUI Gtk2_Gui_new() #else GWEN_Gui_new() #endif ; /* Always use our own logging */ GWEN_Gui_SetLogHookFn(log_gwen_gui, loghook_cb); /* Keep a reference so that the GWEN_GUI survives a GUI switch */ GWEN_Gui_Attach(log_gwen_gui); } GWEN_Gui_SetGui(log_gwen_gui); }