comparison libgaim/core.c @ 14224:ab8a105eff62

[gaim-migrate @ 16905] First step of getting wingaim working again. libgaim and gtk are compiling. The protocols aren't compiling yet. There are a number of things that are compiling, but should be cleaned up. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 20 Aug 2006 16:49:37 +0000
parents 60b1bc8dbf37
children f189327b9968
comparison
equal deleted inserted replaced
14223:7c560c01b8f9 14224:ab8a105eff62
67 GaimCore *core; 67 GaimCore *core;
68 68
69 g_return_val_if_fail(ui != NULL, FALSE); 69 g_return_val_if_fail(ui != NULL, FALSE);
70 g_return_val_if_fail(gaim_get_core() == NULL, FALSE); 70 g_return_val_if_fail(gaim_get_core() == NULL, FALSE);
71 71
72 #ifdef _WIN32
73 wgaim_init();
74 #endif
75
72 _core = core = g_new0(GaimCore, 1); 76 _core = core = g_new0(GaimCore, 1);
73 core->ui = g_strdup(ui); 77 core->ui = g_strdup(ui);
74 core->reserved = NULL; 78 core->reserved = NULL;
75 79
76 ops = gaim_core_get_ui_ops(); 80 ops = gaim_core_get_ui_ops();
197 #endif 201 #endif
198 202
199 g_free(core->ui); 203 g_free(core->ui);
200 g_free(core); 204 g_free(core);
201 205
206 #ifdef _WIN32
207 wgaim_cleanup();
208 #endif
209
202 _core = NULL; 210 _core = NULL;
203 } 211 }
204 212
205 gboolean 213 gboolean
206 gaim_core_quit_cb(gpointer unused) 214 gaim_core_quit_cb(gpointer unused)