Commit 2aec0359 authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

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)
parent 73e7a35c
2005-08-01 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
Implement using FlashWindowEx(). (#309423)
2005-07-30 Hans Breuer <hans@breuer.org> 2005-07-30 Hans Breuer <hans@breuer.org>
* gtk/makefile.msc.in tests/makefile.msc : updated * gtk/makefile.msc.in tests/makefile.msc : updated
......
2005-08-01 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
Implement using FlashWindowEx(). (#309423)
2005-07-30 Hans Breuer <hans@breuer.org> 2005-07-30 Hans Breuer <hans@breuer.org>
* gtk/makefile.msc.in tests/makefile.msc : updated * gtk/makefile.msc.in tests/makefile.msc : updated
......
2005-08-01 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
Implement using FlashWindowEx(). (#309423)
2005-07-30 Hans Breuer <hans@breuer.org> 2005-07-30 Hans Breuer <hans@breuer.org>
* gtk/makefile.msc.in tests/makefile.msc : updated * gtk/makefile.msc.in tests/makefile.msc : updated
......
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
#include <config.h> #include <config.h>
#include <stdlib.h> #include <stdlib.h>
#define _WIN32_WINNT 0x0500
#define WINVER _WIN32_WINNT
#include "gdk.h" /* gdk_rectangle_intersect */ #include "gdk.h" /* gdk_rectangle_intersect */
#include "gdkevents.h" #include "gdkevents.h"
#include "gdkpixmap.h" #include "gdkpixmap.h"
...@@ -1571,13 +1574,24 @@ void ...@@ -1571,13 +1574,24 @@ void
gdk_window_set_urgency_hint (GdkWindow *window, gdk_window_set_urgency_hint (GdkWindow *window,
gboolean urgent) gboolean urgent)
{ {
FLASHWINFO flashwinfo;
g_return_if_fail (GDK_IS_WINDOW (window)); g_return_if_fail (GDK_IS_WINDOW (window));
g_return_if_fail (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD); g_return_if_fail (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD);
if (GDK_WINDOW_DESTROYED (window)) if (GDK_WINDOW_DESTROYED (window))
return; 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 void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment