Mercurial > pidgin
view plugins/iconaway.c @ 1235:a9cf2f61a7b1
[gaim-migrate @ 1245]
1. added protocol names to menus in conversation/join chat dialog. helpful if you're signed on as warmenhoven in both irc and yahoo.
2. made "no sounds when away" mean absolutely no sounds when away.
3. fixed buddy pounces and made it so you can save them.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 12 Dec 2000 09:09:24 +0000 |
parents | ece2d1543b20 |
children | 96e93119268d |
line wrap: on
line source
#define GAIM_PLUGINS #include "gaim.h" #include <gdk/gdkx.h> #include <X11/Xlib.h> void *handle; extern GtkWidget *imaway; extern GtkWidget *blist; #ifdef USE_APPLET extern void applet_destroy_buddy(); #endif void iconify_windows(void *data) { XIconifyWindow(GDK_DISPLAY(), GDK_WINDOW_XWINDOW(imaway->window), ((_XPrivDisplay)GDK_DISPLAY())->default_screen); #ifdef USE_APPLET applet_destroy_buddy(); #else XIconifyWindow(GDK_DISPLAY(), GDK_WINDOW_XWINDOW(blist->window), ((_XPrivDisplay)GDK_DISPLAY())->default_screen); #endif } char *gaim_plugin_init(GModule *h) { handle = h; gaim_signal_connect(handle, event_away, iconify_windows, NULL); return NULL; } char *name() { return "Iconify On Away"; } char *description() { return "Iconifies the away box and the buddy list when you go away."; }