diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-08-23 17:06:48 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-08-23 17:06:48 +0400 |
commit | cad32636cec29de26701af5adaecd09285effced (patch) | |
tree | 0ed14ba49b0312f4e5064c3ba9efe74c56b12752 /gdk | |
parent | 88503bcc3bb3a281bd31915952a9248a7c485f3f (diff) | |
download | gtk+-cad32636cec29de26701af5adaecd09285effced.tar.gz |
gdk/win32: annotate gdk_win32_surface_set_urgency_hint
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdksurface-win32.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index ed19c9f70a..a2f60eb3ec 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -1305,19 +1305,27 @@ gdk_win32_surface_raise (GdkSurface *window) } } +/** + * gdk_win32_surface_set_urgency_hint: + * @surface: (type GdkWin32Surface): a native `GdkSurface`. + * @urgent: if %TRUE, flashes both the window and the taskbar button + * continuously. + * + * Flashes the specified @surface. + */ void -gdk_win32_surface_set_urgency_hint (GdkSurface *window, +gdk_win32_surface_set_urgency_hint (GdkSurface *surface, gboolean urgent) { FLASHWINFO flashwinfo; - g_return_if_fail (GDK_IS_SURFACE (window)); + g_return_if_fail (GDK_IS_WIN32_SURFACE (surface)); - if (GDK_SURFACE_DESTROYED (window)) + if (GDK_SURFACE_DESTROYED (surface)) return; flashwinfo.cbSize = sizeof (flashwinfo); - flashwinfo.hwnd = GDK_SURFACE_HWND (window); + flashwinfo.hwnd = GDK_SURFACE_HWND (surface); if (urgent) flashwinfo.dwFlags = FLASHW_ALL | FLASHW_TIMER; else |