# HG changeset patch # User Daniel Atallah # Date 1218688127 0 # Node ID d9d388a27d01cea3096b8a96a7bcb9c4a3249d0a # Parent a5bfc59b0c6ed489fca381940a84a0b94fd53efa Use the "Flash taskbar button X times" value from the win32 Tweak UI "Prevent applications from stealing focus" settings to determine how many times to flash the taskbar for incoming messages. References #1502,#2372,#117 diff -r a5bfc59b0c6e -r d9d388a27d01 pidgin/win32/gtkwin32dep.c --- a/pidgin/win32/gtkwin32dep.c Thu Aug 14 04:17:21 2008 +0000 +++ b/pidgin/win32/gtkwin32dep.c Thu Aug 14 04:28:47 2008 +0000 @@ -319,8 +319,10 @@ winpidgin_window_flash(window, FALSE); - if ((handler_id = g_object_get_data(G_OBJECT(window), "flash_stop_handler_id"))) + if ((handler_id = g_object_get_data(G_OBJECT(window), "flash_stop_handler_id"))) { g_signal_handler_disconnect(G_OBJECT(window), (gulong) GPOINTER_TO_UINT(handler_id)); + g_object_steal_data(G_OBJECT(window), "flash_stop_handler_id"); + } return FALSE; } @@ -346,7 +348,10 @@ info.cbSize = sizeof(FLASHWINFO); info.hwnd = GDK_WINDOW_HWND(gdkwin); if (flash) { + DWORD flashCount; info.uCount = 3; + if (SystemParametersInfo(SPI_GETFOREGROUNDFLASHCOUNT, 0, &flashCount, 0)) + info.uCount = flashCount; info.dwFlags = FLASHW_ALL | FLASHW_TIMER; } else info.dwFlags = FLASHW_STOP;