Mercurial > pidgin
comparison src/core.c @ 7035:feb3d21a7794
[gaim-migrate @ 7598]
Standardized the UI op accessor functions in every file. They're now
properly namespaced.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 29 Sep 2003 23:39:02 +0000 |
parents | 8ab95f4c9800 |
children | 25a616f16b6c |
comparison
equal
deleted
inserted
replaced
7034:f7ff0dfa6b9f | 7035:feb3d21a7794 |
---|---|
58 | 58 |
59 _core = core = g_new0(GaimCore, 1); | 59 _core = core = g_new0(GaimCore, 1); |
60 core->ui = g_strdup(ui); | 60 core->ui = g_strdup(ui); |
61 core->reserved = NULL; | 61 core->reserved = NULL; |
62 | 62 |
63 ops = gaim_get_core_ui_ops(); | 63 ops = gaim_core_get_ui_ops(); |
64 | 64 |
65 /* The signals subsystem is important and should be first. */ | 65 /* The signals subsystem is important and should be first. */ |
66 gaim_signals_init(); | 66 gaim_signals_init(); |
67 | 67 |
68 gaim_signal_register(core, "quitting", gaim_marshal_VOID, NULL, 0); | 68 gaim_signal_register(core, "quitting", gaim_marshal_VOID, NULL, 0); |
104 GaimCoreUiOps *ops; | 104 GaimCoreUiOps *ops; |
105 GaimCore *core = gaim_get_core(); | 105 GaimCore *core = gaim_get_core(); |
106 | 106 |
107 g_return_if_fail(core != NULL); | 107 g_return_if_fail(core != NULL); |
108 | 108 |
109 ops = gaim_get_core_ui_ops(); | 109 ops = gaim_core_get_ui_ops(); |
110 | 110 |
111 if (ops != NULL && ops->quit != NULL) | 111 if (ops != NULL && ops->quit != NULL) |
112 ops->quit(); | 112 ops->quit(); |
113 | 113 |
114 /* The self destruct sequence has been initiated */ | 114 /* The self destruct sequence has been initiated */ |
171 { | 171 { |
172 return _core; | 172 return _core; |
173 } | 173 } |
174 | 174 |
175 void | 175 void |
176 gaim_set_core_ui_ops(GaimCoreUiOps *ops) | 176 gaim_core_set_ui_ops(GaimCoreUiOps *ops) |
177 { | 177 { |
178 _ops = ops; | 178 _ops = ops; |
179 } | 179 } |
180 | 180 |
181 GaimCoreUiOps * | 181 GaimCoreUiOps * |
182 gaim_get_core_ui_ops(void) | 182 gaim_core_get_ui_ops(void) |
183 { | 183 { |
184 return _ops; | 184 return _ops; |
185 } | 185 } |