Fri, 14 Apr 2000 06:02:26 +0000
[gaim-migrate @ 122]
Fixed the bug where if there is more than one word either being removed or
inserted, remaining checks hold. E.g. if there is a rule that 'm' gets
replaced with 'your roommate' (this is actually is one of my rules), and another
rule is 'u' -> 'you', typing "m u" used to be "your roommate u", but is now
"your roommate you" (don't ask, it's a stupid example, but it has implications).
#define GAIM_PLUGINS #include <stdio.h> #include "gaim.h" static void *handle = NULL; extern GtkWidget *blist; GtkWidget *maily; GtkWidget *vbox2; GList *tmp; void gaim_plugin_init(void *h) { handle = h; printf("Wahoo\n"); tmp = gtk_container_children(GTK_CONTAINER(blist)); maily = gtk_label_new("TESTING!!!"); vbox2 = (GtkWidget *)tmp->data; gtk_box_pack_start(GTK_BOX(vbox2), maily, FALSE, FALSE, 5); gtk_box_reorder_child(GTK_BOX(vbox2), maily, 2); gtk_widget_show(maily); } void gaim_plugin_remove() { handle = NULL; gtk_widget_hide(maily); gtk_widget_destroy(maily); } char *name() { return "Check Mail"; } char *description() { return "Check email every X seconds.\n"; }