Mercurial > pidgin
view plugins/toc_commands.c @ 283:0f14e6d8a51b
[gaim-migrate @ 293]
- Good fun things here. Sometimes I think Adam does things just to make
it difficult for me, I swear (j/k :) ).
- I moved all the .h files into the faim/ directory because I'm tired
of changing faim/aim.h to just aim.h every time Adam makes an update.
- libfaim can now send messages much longer than WinAIM or TOC can. But,
the length checking code is still in conversation.c, and I haven't
changed it yet, mostly because I'm lazy.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 31 May 2000 03:20:11 +0000 |
parents | 8d8faeab01f6 |
children | ae7c762775cd |
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); } 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_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."; }