comparison src/notify.c @ 6381:e006685f75aa

[gaim-migrate @ 6886] Added gaim_notify_formatted(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 05 Aug 2003 20:19:57 +0000
parents ee0044f3e377
children fb64cc87bc96
comparison
equal deleted inserted replaced
6380:0f0b34c72e69 6381:e006685f75aa
123 } 123 }
124 124
125 return NULL; 125 return NULL;
126 } 126 }
127 127
128 void *
129 gaim_notify_formatted(void *handle, const char *title, const char *primary,
130 const char *secondary, const char *text,
131 GCallback cb, void *user_data)
132 {
133 GaimNotifyUiOps *ops;
134
135 g_return_val_if_fail(primary != NULL, NULL);
136
137 ops = gaim_get_notify_ui_ops();
138
139 if (ops != NULL && ops->notify_formatted != NULL) {
140 GaimNotifyInfo *info;
141
142 info = g_new0(GaimNotifyInfo, 1);
143 info->type = GAIM_NOTIFY_FORMATTED;
144 info->handle = handle;
145 info->ui_handle = ops->notify_formatted(title, primary, secondary,
146 text, cb, user_data);
147
148 handles = g_list_append(handles, info);
149
150 return info->ui_handle;
151 }
152
153 return NULL;
154 }
155
128 void 156 void
129 gaim_notify_close(GaimNotifyType type, void *ui_handle) 157 gaim_notify_close(GaimNotifyType type, void *ui_handle)
130 { 158 {
131 GList *l; 159 GList *l;
132 GaimNotifyUiOps *ops; 160 GaimNotifyUiOps *ops;