diff options
author | Tor Lillqvist <tml@novell.com> | 2005-08-01 07:19:15 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-08-01 07:19:15 +0000 |
commit | 2aec0359dbe1207b15c6a73232b2675dc7d7a7f6 (patch) | |
tree | 7318e892f12edaf702d7edb9c12ce836cb878128 /gdk | |
parent | 73e7a35cd4d421575392e0f82c63c268320ee1d1 (diff) | |
download | gdk-pixbuf-2aec0359dbe1207b15c6a73232b2675dc7d7a7f6.tar.gz |
Implement using FlashWindowEx(). (#309423)
2005-08-01 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
Implement using FlashWindowEx(). (#309423)
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkwindow-win32.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index 6022d96ea..6304096bb 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -29,6 +29,9 @@ #include <config.h> #include <stdlib.h> +#define _WIN32_WINNT 0x0500 +#define WINVER _WIN32_WINNT + #include "gdk.h" /* gdk_rectangle_intersect */ #include "gdkevents.h" #include "gdkpixmap.h" @@ -1571,13 +1574,24 @@ void gdk_window_set_urgency_hint (GdkWindow *window, gboolean urgent) { + FLASHWINFO flashwinfo; + g_return_if_fail (GDK_IS_WINDOW (window)); g_return_if_fail (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD); if (GDK_WINDOW_DESTROYED (window)) return; - g_warning ("gdk_window_set_urgency_hint() not implemented yet."); + flashwinfo.cbSize = sizeof (flashwinfo); + flashwinfo.hwnd = GDK_WINDOW_HWND (window); + if (urgent) + flashwinfo.dwFlags = FLASHW_ALL | FLASHW_TIMER; + else + flashwinfo.dwFlags = FLASHW_STOP; + flashwinfo.uCount = 0; + flashwinfo.dwTimeout = 0; + + FlashWindowEx (&flashwinfo); } void |