Mercurial > pidgin.yaz
changeset 105:c76d4c0c5e3a
[gaim-migrate @ 115]
Start of a plugin to let you check your email
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Wed, 12 Apr 2000 06:46:38 +0000 |
parents | b2b9d6b44562 |
children | e05e6373ea5a |
files | plugins/Makefile plugins/chkmail.c |
diffstat | 2 files changed, 38 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/Makefile Mon Apr 10 08:21:10 2000 +0000 +++ b/plugins/Makefile Wed Apr 12 06:46:38 2000 +0000 @@ -2,7 +2,7 @@ CFLAGS = -Wall `gnome-config --cflags gtk` -I../src LDFLAGS = -ggdb `gnome-config --libs gtk` -shared -all: simple.so gaiminc.so autorecon.so spellchk.so +all: simple.so gaiminc.so autorecon.so spellchk.so chkmail.so .SUFFIXES: .c .so
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/chkmail.c Wed Apr 12 06:46:38 2000 +0000 @@ -0,0 +1,37 @@ +#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"; +}