Mercurial > pidgin.yaz
comparison plugins/chkmail.c @ 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 | |
children | 668727c82810 |
comparison
equal
deleted
inserted
replaced
104:b2b9d6b44562 | 105:c76d4c0c5e3a |
---|---|
1 #define GAIM_PLUGINS | |
2 | |
3 #include <stdio.h> | |
4 #include "gaim.h" | |
5 | |
6 static void *handle = NULL; | |
7 extern GtkWidget *blist; | |
8 GtkWidget *maily; | |
9 GtkWidget *vbox2; | |
10 GList *tmp; | |
11 | |
12 void gaim_plugin_init(void *h) { | |
13 handle = h; | |
14 printf("Wahoo\n"); | |
15 tmp = gtk_container_children(GTK_CONTAINER(blist)); | |
16 | |
17 maily = gtk_label_new("TESTING!!!"); | |
18 vbox2 = (GtkWidget *)tmp->data; | |
19 | |
20 gtk_box_pack_start(GTK_BOX(vbox2), maily, FALSE, FALSE, 5); | |
21 gtk_box_reorder_child(GTK_BOX(vbox2), maily, 2); | |
22 gtk_widget_show(maily); | |
23 } | |
24 | |
25 void gaim_plugin_remove() { | |
26 handle = NULL; | |
27 gtk_widget_hide(maily); | |
28 gtk_widget_destroy(maily); | |
29 } | |
30 | |
31 char *name() { | |
32 return "Check Mail"; | |
33 } | |
34 | |
35 char *description() { | |
36 return "Check email every X seconds.\n"; | |
37 } |