Mercurial > pidgin.yaz
view plugins/iconaway.c @ 606:eaab8abda2c0
[gaim-migrate @ 616]
ok, a few changes.
1) --enable-gnome (which is the default) can make sounds go through gnome,
which means they're configurable. they can still go through gaim.
2) --enable-gnome will also install the necessary files to make sounds
through gnome work.
3) the rpm will be built without gnome; if a distributor later wants to
require gnome that's up to them.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 04 Aug 2000 17:13:54 +0000 |
parents | ec301cfcaebf |
children | ece2d1543b20 |
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 } void gaim_plugin_init(void *h) { handle = h; gaim_signal_connect(handle, event_away, iconify_windows, NULL); } char *name() { return "Iconify On Away"; } char *description() { return "Iconifies the away box and the buddy list when you go away."; }