diff 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
line wrap: on
line diff
--- a/src/notify.c	Mon Dec 27 21:24:20 2004 +0000
+++ b/src/notify.c	Tue Dec 28 06:24:32 2004 +0000
@@ -155,8 +155,36 @@
 	return NULL;
 }
 
-void *gaim_notify_userinfo(GaimConnection *gc, const char *who, const char *title,
-						   const char *primary, const char *secondary, 
+void *
+gaim_notify_searchresults(GaimConnection *gc, const char *title,
+						  const char *primary, const char *secondary,
+						  const char **results, GCallback cb, void *user_data)
+{
+	GaimNotifyUiOps *ops;
+
+	ops = gaim_notify_get_ui_ops();
+
+	if (ops != NULL && ops->notify_searchresults != NULL) {
+		GaimNotifyInfo *info;
+
+		info            = g_new0(GaimNotifyInfo, 1);
+		info->type      = GAIM_NOTIFY_SEARCHRESULTS;
+		info->handle    = gc;
+		info->ui_handle = ops->notify_searchresults(gc, title, primary,
+													secondary, results,
+													cb, user_data);
+
+		handles = g_list_append(handles, info);
+
+		return info->ui_handle;
+	}
+
+	return NULL;
+}
+
+void *
+gaim_notify_userinfo(GaimConnection *gc, const char *who, const char *title,
+						   const char *primary, const char *secondary,
 						   const char *text, GCallback cb, void *user_data)
 {
 	GaimNotifyUiOps *ops;