plugins/chkmail.c

Fri, 14 Apr 2000 06:02:26 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Fri, 14 Apr 2000 06:02:26 +0000
changeset 112
232fe3aea76f
parent 105
ed9cd76f7d19
child 114
d85569eea934
permissions
-rw-r--r--

[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";
}

mercurial