Mercurial > pidgin.yaz
comparison src/notify.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 | fb64cc87bc96 |
children | fa6395637e2c |
comparison
equal
deleted
inserted
replaced
7034:f7ff0dfa6b9f | 7035:feb3d21a7794 |
---|---|
40 { | 40 { |
41 GaimNotifyUiOps *ops; | 41 GaimNotifyUiOps *ops; |
42 | 42 |
43 g_return_val_if_fail(primary != NULL, NULL); | 43 g_return_val_if_fail(primary != NULL, NULL); |
44 | 44 |
45 ops = gaim_get_notify_ui_ops(); | 45 ops = gaim_notify_get_ui_ops(); |
46 | 46 |
47 if (ops != NULL && ops->notify_message != NULL) { | 47 if (ops != NULL && ops->notify_message != NULL) { |
48 GaimNotifyInfo *info; | 48 GaimNotifyInfo *info; |
49 | 49 |
50 info = g_new0(GaimNotifyInfo, 1); | 50 info = g_new0(GaimNotifyInfo, 1); |
66 const char *to, const char *url, GCallback cb, | 66 const char *to, const char *url, GCallback cb, |
67 void *user_data) | 67 void *user_data) |
68 { | 68 { |
69 GaimNotifyUiOps *ops; | 69 GaimNotifyUiOps *ops; |
70 | 70 |
71 ops = gaim_get_notify_ui_ops(); | 71 ops = gaim_notify_get_ui_ops(); |
72 | 72 |
73 if (ops != NULL && ops->notify_email != NULL) { | 73 if (ops != NULL && ops->notify_email != NULL) { |
74 GaimNotifyInfo *info; | 74 GaimNotifyInfo *info; |
75 | 75 |
76 info = g_new0(GaimNotifyInfo, 1); | 76 info = g_new0(GaimNotifyInfo, 1); |
104 (tos == NULL ? NULL : *tos), | 104 (tos == NULL ? NULL : *tos), |
105 (urls == NULL ? NULL : *urls), | 105 (urls == NULL ? NULL : *urls), |
106 cb, user_data); | 106 cb, user_data); |
107 } | 107 } |
108 | 108 |
109 ops = gaim_get_notify_ui_ops(); | 109 ops = gaim_notify_get_ui_ops(); |
110 | 110 |
111 if (ops != NULL && ops->notify_emails != NULL) { | 111 if (ops != NULL && ops->notify_emails != NULL) { |
112 GaimNotifyInfo *info; | 112 GaimNotifyInfo *info; |
113 | 113 |
114 info = g_new0(GaimNotifyInfo, 1); | 114 info = g_new0(GaimNotifyInfo, 1); |
132 { | 132 { |
133 GaimNotifyUiOps *ops; | 133 GaimNotifyUiOps *ops; |
134 | 134 |
135 g_return_val_if_fail(primary != NULL, NULL); | 135 g_return_val_if_fail(primary != NULL, NULL); |
136 | 136 |
137 ops = gaim_get_notify_ui_ops(); | 137 ops = gaim_notify_get_ui_ops(); |
138 | 138 |
139 if (ops != NULL && ops->notify_formatted != NULL) { | 139 if (ops != NULL && ops->notify_formatted != NULL) { |
140 GaimNotifyInfo *info; | 140 GaimNotifyInfo *info; |
141 | 141 |
142 info = g_new0(GaimNotifyInfo, 1); | 142 info = g_new0(GaimNotifyInfo, 1); |
158 { | 158 { |
159 GaimNotifyUiOps *ops; | 159 GaimNotifyUiOps *ops; |
160 | 160 |
161 g_return_val_if_fail(uri != NULL, NULL); | 161 g_return_val_if_fail(uri != NULL, NULL); |
162 | 162 |
163 ops = gaim_get_notify_ui_ops(); | 163 ops = gaim_notify_get_ui_ops(); |
164 | 164 |
165 if (ops != NULL && ops->notify_uri != NULL) { | 165 if (ops != NULL && ops->notify_uri != NULL) { |
166 GaimNotifyInfo *info; | 166 GaimNotifyInfo *info; |
167 | 167 |
168 info = g_new0(GaimNotifyInfo, 1); | 168 info = g_new0(GaimNotifyInfo, 1); |
184 GList *l; | 184 GList *l; |
185 GaimNotifyUiOps *ops; | 185 GaimNotifyUiOps *ops; |
186 | 186 |
187 g_return_if_fail(ui_handle != NULL); | 187 g_return_if_fail(ui_handle != NULL); |
188 | 188 |
189 ops = gaim_get_notify_ui_ops(); | 189 ops = gaim_notify_get_ui_ops(); |
190 | 190 |
191 for (l = handles; l != NULL; l = l->next) { | 191 for (l = handles; l != NULL; l = l->next) { |
192 GaimNotifyInfo *info = l->data; | 192 GaimNotifyInfo *info = l->data; |
193 | 193 |
194 if (info->ui_handle == ui_handle) { | 194 if (info->ui_handle == ui_handle) { |
210 GList *l, *l_next; | 210 GList *l, *l_next; |
211 GaimNotifyUiOps *ops; | 211 GaimNotifyUiOps *ops; |
212 | 212 |
213 g_return_if_fail(handle != NULL); | 213 g_return_if_fail(handle != NULL); |
214 | 214 |
215 ops = gaim_get_notify_ui_ops(); | 215 ops = gaim_notify_get_ui_ops(); |
216 | 216 |
217 for (l = handles; l != NULL; l = l_next) { | 217 for (l = handles; l != NULL; l = l_next) { |
218 GaimNotifyInfo *info = l->data; | 218 GaimNotifyInfo *info = l->data; |
219 | 219 |
220 l_next = l->next; | 220 l_next = l->next; |
229 } | 229 } |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
233 void | 233 void |
234 gaim_set_notify_ui_ops(GaimNotifyUiOps *ops) | 234 gaim_notify_set_ui_ops(GaimNotifyUiOps *ops) |
235 { | 235 { |
236 notify_ui_ops = ops; | 236 notify_ui_ops = ops; |
237 } | 237 } |
238 | 238 |
239 GaimNotifyUiOps * | 239 GaimNotifyUiOps * |
240 gaim_get_notify_ui_ops(void) | 240 gaim_notify_get_ui_ops(void) |
241 { | 241 { |
242 return notify_ui_ops; | 242 return notify_ui_ops; |
243 } | 243 } |