Mercurial > pidgin.yaz
view plugins/chkmail.c @ 110:f7c6366ca703
[gaim-migrate @ 120]
Okay, this is cool. Plugins are now configurable. They can each do whatever
whenever someone clicks a little "Configure Plugin" button. This is optional;
plugins don't have to be configurable, and if they're not, the button isn't
clickable.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 12 Apr 2000 22:18:15 +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"; }