Mercurial > pidgin
diff plugins/toc_commands.c @ 425:ae7c762775cd
[gaim-migrate @ 435]
More mods to how plugins work.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 23 Jun 2000 04:15:51 +0000 |
parents | 8d8faeab01f6 |
children | ece2d1543b20 |
line wrap: on
line diff
--- a/plugins/toc_commands.c Wed Jun 21 19:43:05 2000 +0000 +++ b/plugins/toc_commands.c Fri Jun 23 04:15:51 2000 +0000 @@ -9,6 +9,11 @@ sflap_send(entry_text, strlen(entry_text), TYPE_DATA); } +void destroy_callback(GtkWidget *widget, void *handle) { + gtk_widget_destroy(widget); + gaim_plugin_unload(handle); +} + GtkWidget *window; void gaim_plugin_init(void *h) { GtkWidget *entry; @@ -23,6 +28,10 @@ gtk_container_add(GTK_CONTAINER(window), entry); gtk_widget_show(entry); + gtk_signal_connect(GTK_OBJECT(window), "destroy", + (GtkSignalFunc)destroy_callback, + h); + gtk_widget_show(window); }