Mercurial > pidgin.yaz
comparison plugins/iconaway.c @ 1779:0da2a831c0ae
[gaim-migrate @ 1789]
yay. iconaway works like i remember it working. now i'll use it again.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 30 Apr 2001 11:54:59 +0000 |
parents | cabde2947ba4 |
children | f15d449b3167 |
comparison
equal
deleted
inserted
replaced
1778:9bc21732ba79 | 1779:0da2a831c0ae |
---|---|
6 | 6 |
7 void *handle; | 7 void *handle; |
8 | 8 |
9 extern GtkWidget *imaway; | 9 extern GtkWidget *imaway; |
10 extern GtkWidget *blist; | 10 extern GtkWidget *blist; |
11 extern GtkWidget *all_chats; | |
12 extern GtkWidget *all_convos; | |
11 | 13 |
12 #ifdef USE_APPLET | 14 #ifdef USE_APPLET |
13 extern void applet_destroy_buddy(); | 15 extern void applet_destroy_buddy(); |
14 #endif | 16 #endif |
15 | 17 |
16 void iconify_windows(struct gaim_connection *gc, char *state, char *message, void *data) { | 18 void iconify_windows(struct gaim_connection *gc, char *state, char *message, void *data) { |
17 if (!gc->away) | |
18 return; | |
19 if (!imaway) | 19 if (!imaway) |
20 return; | 20 return; |
21 XIconifyWindow(GDK_DISPLAY(), | 21 XIconifyWindow(GDK_DISPLAY(), |
22 GDK_WINDOW_XWINDOW(imaway->window), | 22 GDK_WINDOW_XWINDOW(imaway->window), |
23 ((_XPrivDisplay)GDK_DISPLAY())->default_screen); | 23 ((_XPrivDisplay)GDK_DISPLAY())->default_screen); |
26 #else | 26 #else |
27 XIconifyWindow(GDK_DISPLAY(), | 27 XIconifyWindow(GDK_DISPLAY(), |
28 GDK_WINDOW_XWINDOW(blist->window), | 28 GDK_WINDOW_XWINDOW(blist->window), |
29 ((_XPrivDisplay)GDK_DISPLAY())->default_screen); | 29 ((_XPrivDisplay)GDK_DISPLAY())->default_screen); |
30 #endif | 30 #endif |
31 if (all_convos) | |
32 XIconifyWindow(GDK_DISPLAY(), | |
33 GDK_WINDOW_XWINDOW(all_convos->window), | |
34 ((_XPrivDisplay)GDK_DISPLAY())->default_screen); | |
35 if (all_chats) | |
36 XIconifyWindow(GDK_DISPLAY(), | |
37 GDK_WINDOW_XWINDOW(all_chats->window), | |
38 ((_XPrivDisplay)GDK_DISPLAY())->default_screen); | |
31 } | 39 } |
32 | 40 |
33 char *gaim_plugin_init(GModule *h) { | 41 char *gaim_plugin_init(GModule *h) { |
34 handle = h; | 42 handle = h; |
35 | 43 |