diff src/gtknotify.c @ 13640:d12bbe6da705

[gaim-migrate @ 16038] * Changed signatures of some of the search results notify API functions. * GG PRPL: Support parallel public directory searches. committer: Tailor Script <tailor@pidgin.im>
author Bartoz Oler <bartosz@pidgin.im>
date Sun, 16 Apr 2006 10:10:55 +0000
parents c69a837e990c
children 8b7d6fce88d5
line wrap: on
line diff
--- a/src/gtknotify.c	Sat Apr 15 15:01:30 2006 +0000
+++ b/src/gtknotify.c	Sun Apr 16 10:10:55 2006 +0000
@@ -52,6 +52,8 @@
 	GtkListStore *model;
 	GtkWidget *treeview;
 	GtkWidget *window;
+	gpointer user_data;
+
 } GaimNotifySearchResultsData;
 
 typedef struct
@@ -157,7 +159,7 @@
 }
 
 static void
-searchresults_close_cb(GaimNotifySearchResultsData *data, GdkEvent *event, void *user_data)
+searchresults_close_cb(GaimNotifySearchResultsData *data, GdkEvent *event, gpointer user_data)
 {
 	gaim_notify_close(GAIM_NOTIFY_SEARCHRESULTS, data);
 }
@@ -188,7 +190,7 @@
 	}
 
 	button = bd->button;
-	button->callback(gaim_account_get_connection(data->account), row);
+	button->callback(gaim_account_get_connection(data->account), row, data->user_data);
 }
 
 static void *
@@ -614,7 +616,7 @@
 
 static void
 gaim_gtk_notify_searchresults_new_rows(GaimConnection *gc, GaimNotifySearchResults *results,
-									   void *data_, gpointer user_data)
+									   void *data_)
 {
 	GaimNotifySearchResultsData *data = data_;
 	GtkListStore *model = data->model;
@@ -656,7 +658,7 @@
 static void *
 gaim_gtk_notify_searchresults(GaimConnection *gc, const char *title,
 							  const char *primary, const char *secondary,
-							  GaimNotifySearchResults *results)
+							  GaimNotifySearchResults *results, gpointer user_data)
 {
 	GtkWidget *window;
 	GtkWidget *treeview;
@@ -679,6 +681,7 @@
 	g_return_val_if_fail(results != NULL, NULL);
 
 	data = g_malloc(sizeof(GaimNotifySearchResultsData));
+	data->user_data = user_data;
 
 	/* Create the window */
 	window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
@@ -824,7 +827,7 @@
 	data->window = window;
 
 	/* Insert rows. */
-	gaim_gtk_notify_searchresults_new_rows(gc, results, data, NULL);
+	gaim_gtk_notify_searchresults_new_rows(gc, results, data);
 
 	/* Show the window */
 	gtk_widget_show(window);