# HG changeset patch # User Herman Bloggs # Date 1037409387 0 # Node ID d9287e87ba56b784faa9a86e7580495b4a287fba # Parent f9e96177305849f2e4ff19f13dc495758658c687 [gaim-migrate @ 4157] wgaim_im_blink added committer: Tailor Script diff -r f9e961773058 -r d9287e87ba56 src/win32/win32dep.c --- a/src/win32/win32dep.c Sat Nov 16 01:15:49 2002 +0000 +++ b/src/win32/win32dep.c Sat Nov 16 01:16:27 2002 +0000 @@ -9,18 +9,20 @@ #include #include #include +#include #include "gaim.h" #include "stdafx.h" #include "resource.h" #include "MinimizeToTray.h" #include "systray.h" +#include "winuser_extra.h" +#include "IdleTracker.h" /* * DEFINES & MACROS */ - /* * LOCALS */ @@ -36,7 +38,6 @@ HINSTANCE gaimexe_hInstance = 0; HINSTANCE gaimdll_hInstance = 0; - /* * STATIC CODE */ @@ -90,6 +91,19 @@ return (char*)&locale_dir; } +/* Miscellaneous */ + +/* FlashWindowEx is only supported by Win98+ and WinNT5+ */ +void wgaim_im_blink(GtkWidget *window) { + FLASHWINFO info; + + info.cbSize = sizeof(FLASHWINFO); + info.hwnd = GDK_WINDOW_HWND(window->window); + info.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG; + info.dwTimeout = 0; + FlashWindowEx(&info); +} + /* Windows Initializations */ void wgaim_init(void) { diff -r f9e961773058 -r d9287e87ba56 src/win32/win32dep.h --- a/src/win32/win32dep.h Sat Nov 16 01:15:49 2002 +0000 +++ b/src/win32/win32dep.h Sat Nov 16 01:16:27 2002 +0000 @@ -20,6 +20,7 @@ **/ /* Misc */ HINSTANCE wgaim_hinstance(void); +extern void wgaim_im_blink(GtkWidget*); /* Determine Gaim paths */ extern char* wgaim_install_dir(void);