view plugins/chkmail.c @ 106:e05e6373ea5a

[gaim-migrate @ 116] Modified spellchk.c so now it uses a more customizable dictionary and added filectl.c to allow remote-control of gaim. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 12 Apr 2000 06:51:37 +0000
parents c76d4c0c5e3a
children 668727c82810
line wrap: on
line source

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