Mercurial > pidgin.yaz
diff src/win32/win32dep.c @ 4106:a843ce9d77ea
[gaim-migrate @ 4321]
code re-org
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Fri, 20 Dec 2002 18:10:17 +0000 |
parents | 929d23ef2ded |
children | ebfb80bbe1ed |
line wrap: on
line diff
--- a/src/win32/win32dep.c Fri Dec 20 18:08:47 2002 +0000 +++ b/src/win32/win32dep.c Fri Dec 20 18:10:17 2002 +0000 @@ -54,6 +54,11 @@ BOOL (*MyFlashWindowEx)(PFLASHWINFO pfwi)=NULL; FARPROC wgaim_find_and_loadproc(char*, char*); +/* Gaim window filters from systray.c */ +extern GdkFilterReturn st_buddywin_filter(GdkXEvent*, GdkEvent*, gpointer); +extern GdkFilterReturn st_loginwin_filter(GdkXEvent*, GdkEvent*, gpointer); +extern GdkFilterReturn st_backwin_filter(GdkXEvent*, GdkEvent*, gpointer); + /* * STATIC CODE */ @@ -118,6 +123,27 @@ } } +/* + * These functions are called after their respective windows are created. + */ +void wgaim_created_blistwin( GtkWidget *blist ) { + gdk_window_add_filter (GTK_WIDGET(blist)->window, + st_buddywin_filter, + NULL); +} + +void wgaim_created_loginwin( GtkWidget *loginwin ) { + gdk_window_add_filter (GTK_WIDGET(loginwin)->window, + st_loginwin_filter, + NULL); +} + +void wgaim_created_backwin( GtkWidget *backwin ) { + gdk_window_add_filter (GTK_WIDGET(backwin)->window, + st_backwin_filter, + NULL); +} + /* Determine Gaim Paths during Runtime */ char* wgaim_install_dir(void) {