Mercurial > pidgin.yaz
changeset 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 | f9e961773058 |
children | c7da32e6373c |
files | src/win32/win32dep.c src/win32/win32dep.h |
diffstat | 2 files changed, 17 insertions(+), 2 deletions(-) [+] |
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) {