105
|
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 }
|