Mercurial > pidgin
comparison src/notify.c @ 6465:fb64cc87bc96
[gaim-migrate @ 6974]
open_url() is gone forever! WOOHOO! Now we have gaim_notify_uri(). Oh, and
whitespace changes in some files, because they just really bugged me.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 14 Aug 2003 03:55:13 +0000 |
parents | e006685f75aa |
children | feb3d21a7794 |
comparison
equal
deleted
inserted
replaced
6464:059649ed25ed | 6465:fb64cc87bc96 |
---|---|
3 * @ingroup core | 3 * @ingroup core |
4 * | 4 * |
5 * gaim | 5 * gaim |
6 * | 6 * |
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> |
8 * | 8 * |
9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
11 * the Free Software Foundation; either version 2 of the License, or | 11 * the Free Software Foundation; either version 2 of the License, or |
12 * (at your option) any later version. | 12 * (at your option) any later version. |
13 * | 13 * |
151 } | 151 } |
152 | 152 |
153 return NULL; | 153 return NULL; |
154 } | 154 } |
155 | 155 |
156 void * | |
157 gaim_notify_uri(void *handle, const char *uri) | |
158 { | |
159 GaimNotifyUiOps *ops; | |
160 | |
161 g_return_val_if_fail(uri != NULL, NULL); | |
162 | |
163 ops = gaim_get_notify_ui_ops(); | |
164 | |
165 if (ops != NULL && ops->notify_uri != NULL) { | |
166 GaimNotifyInfo *info; | |
167 | |
168 info = g_new0(GaimNotifyInfo, 1); | |
169 info->type = GAIM_NOTIFY_URI; | |
170 info->handle = handle; | |
171 info->ui_handle = ops->notify_uri(uri); | |
172 | |
173 handles = g_list_append(handles, info); | |
174 | |
175 return info->ui_handle; | |
176 } | |
177 | |
178 return NULL; | |
179 } | |
180 | |
156 void | 181 void |
157 gaim_notify_close(GaimNotifyType type, void *ui_handle) | 182 gaim_notify_close(GaimNotifyType type, void *ui_handle) |
158 { | 183 { |
159 GList *l; | 184 GList *l; |
160 GaimNotifyUiOps *ops; | 185 GaimNotifyUiOps *ops; |