diff plugins/toc_commands.c @ 1047:ece2d1543b20

[gaim-migrate @ 1057] Plugins now use GModule. Protocol plugins can be dynamically updated. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 01 Nov 2000 22:30:36 +0000
parents ae7c762775cd
children 94e81315be2a
line wrap: on
line diff
--- a/plugins/toc_commands.c	Wed Nov 01 11:34:56 2000 +0000
+++ b/plugins/toc_commands.c	Wed Nov 01 22:30:36 2000 +0000
@@ -6,7 +6,8 @@
 void enter_callback(GtkWidget *widget, GtkWidget *entry) {
 	gchar *entry_text;
 	entry_text = gtk_entry_get_text(GTK_ENTRY(entry));
-	sflap_send(entry_text, strlen(entry_text), TYPE_DATA);
+	/* this is bad, but you really shouldn't be using this plugin */
+	sflap_send(connections->data, entry_text, strlen(entry_text), TYPE_DATA);
 }
 
 void destroy_callback(GtkWidget *widget, void *handle) {
@@ -15,7 +16,7 @@
 }
 
 GtkWidget *window;
-void gaim_plugin_init(void *h) {
+char *gaim_plugin_init(GModule *h) {
 	GtkWidget *entry;
 
 	window = gtk_window_new(GTK_WINDOW_DIALOG);
@@ -33,6 +34,8 @@
 			   h);
 
 	gtk_widget_show(window);
+
+	return NULL;
 }
 
 void gaim_plugin_remove() {