Mercurial > pidgin.yaz
view plugins/toc_commands.c @ 673:ddc3fd0dcd51
[gaim-migrate @ 683]
Made the necessary modifications to allow gaim to save buddy pounces.
I just noticed that you cant _delete_ (remove) a buddy pounce. Woops.
I'll take a look at that. I'll do saving of buddy chats when I get back
from dinner.
Adios.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Sun, 13 Aug 2000 03:15:06 +0000 |
parents | ae7c762775cd |
children | ece2d1543b20 |
line wrap: on
line source
#define GAIM_PLUGINS #include "gaim.h" #include <gtk/gtk.h> 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); } 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; window = gtk_window_new(GTK_WINDOW_DIALOG); gtk_window_set_title(GTK_WINDOW(window), "Gaim - SFLAP interface"); entry = gtk_entry_new(); gtk_signal_connect(GTK_OBJECT(entry), "activate", (GtkSignalFunc)enter_callback, entry); 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); } void gaim_plugin_remove() { gtk_widget_destroy(window); } char *name() { return "TOC Interface"; } char *description() { return "Allows you to talk directly to the TOC server, bypassing gaim."; }