Mercurial > pidgin
diff src/win32/win32dep.c @ 3973:d9287e87ba56
[gaim-migrate @ 4157]
wgaim_im_blink added
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Sat, 16 Nov 2002 01:16:27 +0000 |
parents | c25cf0495533 |
children | a1245dcf7b31 |
line wrap: on
line diff
--- 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 <stdlib.h> #include <stdio.h> #include <glib.h> +#include <gdk/gdkwin32.h> #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) {