comparison src/notify.c @ 10439:911530134bf8

[gaim-migrate @ 11697] sf patch #1086253, from Alex Converse closes sf rfe #991372, from Adam Petaccia "New Buddy Search Results Dialog," used for oscar Also some memleak fixes from me. My bad. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 28 Dec 2004 06:24:32 +0000
parents 95ca0db2d01d
children 9480e0d0f563
comparison
equal deleted inserted replaced
10438:d90ece33e72f 10439:911530134bf8
153 } 153 }
154 154
155 return NULL; 155 return NULL;
156 } 156 }
157 157
158 void *gaim_notify_userinfo(GaimConnection *gc, const char *who, const char *title, 158 void *
159 const char *primary, const char *secondary, 159 gaim_notify_searchresults(GaimConnection *gc, const char *title,
160 const char *primary, const char *secondary,
161 const char **results, GCallback cb, void *user_data)
162 {
163 GaimNotifyUiOps *ops;
164
165 ops = gaim_notify_get_ui_ops();
166
167 if (ops != NULL && ops->notify_searchresults != NULL) {
168 GaimNotifyInfo *info;
169
170 info = g_new0(GaimNotifyInfo, 1);
171 info->type = GAIM_NOTIFY_SEARCHRESULTS;
172 info->handle = gc;
173 info->ui_handle = ops->notify_searchresults(gc, title, primary,
174 secondary, results,
175 cb, user_data);
176
177 handles = g_list_append(handles, info);
178
179 return info->ui_handle;
180 }
181
182 return NULL;
183 }
184
185 void *
186 gaim_notify_userinfo(GaimConnection *gc, const char *who, const char *title,
187 const char *primary, const char *secondary,
160 const char *text, GCallback cb, void *user_data) 188 const char *text, GCallback cb, void *user_data)
161 { 189 {
162 GaimNotifyUiOps *ops; 190 GaimNotifyUiOps *ops;
163 191
164 g_return_val_if_fail(primary != NULL, NULL); 192 g_return_val_if_fail(primary != NULL, NULL);