Mercurial > pidgin
diff plugins/iconaway.c @ 3630:9682c0e022c6
[gaim-migrate @ 3753]
Yeah this will probably break a lot of shit knowing my luck. But hey, I really don't care what people thnk.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 11 Oct 2002 03:14:01 +0000 |
parents | 83a54877f1ae |
children | 74d27aa5b686 |
line wrap: on
line diff
--- a/plugins/iconaway.c Fri Oct 11 02:10:08 2002 +0000 +++ b/plugins/iconaway.c Fri Oct 11 03:14:01 2002 +0000 @@ -1,14 +1,18 @@ -#include "../config.h" +#define GAIM_PLUGINS #include "gaim.h" #include <gtk/gtk.h> +#ifdef _WIN32 +#include "win32dep.h" +#endif + void *handle; -extern GtkWidget *imaway; -extern GtkWidget *blist; -extern GtkWidget *all_chats; -extern GtkWidget *all_convos; +G_MODULE_IMPORT GtkWidget *imaway; +G_MODULE_IMPORT GtkWidget *blist; +G_MODULE_IMPORT GtkWidget *all_chats; +G_MODULE_IMPORT GtkWidget *all_convos; #ifdef USE_APPLET extern void applet_destroy_buddy(); @@ -25,7 +29,11 @@ gtk_window_iconify(GTK_WINDOW(all_chats)); } -char *gaim_plugin_init(GModule *h) { +/* + * EXPORTED FUNCTIONS + */ + +G_MODULE_EXPORT char *gaim_plugin_init(GModule *h) { handle = h; gaim_signal_connect(handle, event_away, iconify_windows, NULL); @@ -34,7 +42,7 @@ } struct gaim_plugin_description desc; -struct gaim_plugin_description *gaim_plugin_desc() { +G_MODULE_EXPORT struct gaim_plugin_description *gaim_plugin_desc() { desc.api_version = PLUGIN_API_VERSION; desc.name = g_strdup("Iconify on away"); desc.version = g_strdup(VERSION); @@ -44,10 +52,10 @@ return &desc; } -char *name() { +G_MODULE_EXPORT char *name() { return "Iconify On Away"; } -char *description() { +G_MODULE_EXPORT char *description() { return "Iconifies the away box and the buddy list when you go away."; }