Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
3629:afc5bb164c5a | 3630:9682c0e022c6 |
---|---|
1 #include "../config.h" | 1 #define GAIM_PLUGINS |
2 #include "gaim.h" | 2 #include "gaim.h" |
3 | 3 |
4 #include <gtk/gtk.h> | 4 #include <gtk/gtk.h> |
5 | 5 |
6 #ifdef _WIN32 | |
7 #include "win32dep.h" | |
8 #endif | |
9 | |
6 void *handle; | 10 void *handle; |
7 | 11 |
8 extern GtkWidget *imaway; | 12 G_MODULE_IMPORT GtkWidget *imaway; |
9 extern GtkWidget *blist; | 13 G_MODULE_IMPORT GtkWidget *blist; |
10 extern GtkWidget *all_chats; | 14 G_MODULE_IMPORT GtkWidget *all_chats; |
11 extern GtkWidget *all_convos; | 15 G_MODULE_IMPORT GtkWidget *all_convos; |
12 | 16 |
13 #ifdef USE_APPLET | 17 #ifdef USE_APPLET |
14 extern void applet_destroy_buddy(); | 18 extern void applet_destroy_buddy(); |
15 #endif | 19 #endif |
16 | 20 |
23 gtk_window_iconify(GTK_WINDOW(all_convos)); | 27 gtk_window_iconify(GTK_WINDOW(all_convos)); |
24 if (all_chats) | 28 if (all_chats) |
25 gtk_window_iconify(GTK_WINDOW(all_chats)); | 29 gtk_window_iconify(GTK_WINDOW(all_chats)); |
26 } | 30 } |
27 | 31 |
28 char *gaim_plugin_init(GModule *h) { | 32 /* |
33 * EXPORTED FUNCTIONS | |
34 */ | |
35 | |
36 G_MODULE_EXPORT char *gaim_plugin_init(GModule *h) { | |
29 handle = h; | 37 handle = h; |
30 | 38 |
31 gaim_signal_connect(handle, event_away, iconify_windows, NULL); | 39 gaim_signal_connect(handle, event_away, iconify_windows, NULL); |
32 | 40 |
33 return NULL; | 41 return NULL; |
34 } | 42 } |
35 | 43 |
36 struct gaim_plugin_description desc; | 44 struct gaim_plugin_description desc; |
37 struct gaim_plugin_description *gaim_plugin_desc() { | 45 G_MODULE_EXPORT struct gaim_plugin_description *gaim_plugin_desc() { |
38 desc.api_version = PLUGIN_API_VERSION; | 46 desc.api_version = PLUGIN_API_VERSION; |
39 desc.name = g_strdup("Iconify on away"); | 47 desc.name = g_strdup("Iconify on away"); |
40 desc.version = g_strdup(VERSION); | 48 desc.version = g_strdup(VERSION); |
41 desc.description = g_strdup("Iconifies the away box and the buddy list when you go away."); | 49 desc.description = g_strdup("Iconifies the away box and the buddy list when you go away."); |
42 desc.authors = g_strdup("Eric Warmenhoven <eric@warmenhoven.org>"); | 50 desc.authors = g_strdup("Eric Warmenhoven <eric@warmenhoven.org>"); |
43 desc.url = g_strdup(WEBSITE); | 51 desc.url = g_strdup(WEBSITE); |
44 return &desc; | 52 return &desc; |
45 } | 53 } |
46 | 54 |
47 char *name() { | 55 G_MODULE_EXPORT char *name() { |
48 return "Iconify On Away"; | 56 return "Iconify On Away"; |
49 } | 57 } |
50 | 58 |
51 char *description() { | 59 G_MODULE_EXPORT char *description() { |
52 return "Iconifies the away box and the buddy list when you go away."; | 60 return "Iconifies the away box and the buddy list when you go away."; |
53 } | 61 } |