comparison plugins/win32/winprefs/winprefs.c @ 11590:f67cc134cab4

[gaim-migrate @ 13860] compile committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 02 Oct 2005 18:47:35 +0000
parents 5938f6b386fa
children 86501c7bce46
comparison
equal deleted inserted replaced
11589:30947631262d 11590:f67cc134cab4
281 not supported we do it our own way */ 281 not supported we do it our own way */
282 static void 282 static void
283 wgaim_conv_im_blink (GaimAccount *account, char *sender, char *message, int flags) 283 wgaim_conv_im_blink (GaimAccount *account, char *sender, char *message, int flags)
284 { 284 {
285 GaimConversation *conv; 285 GaimConversation *conv;
286 GaimConvWindow *win; 286 GaimGtkWindow *win;
287 GtkWidget *window; 287 GtkWidget *window;
288 if (gaim_prefs_get_bool(PREF_IM_BLINK) == FALSE) 288 if (gaim_prefs_get_bool(PREF_IM_BLINK) == FALSE)
289 return; 289 return;
290 290
291 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, sender, account); 291 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, sender, account);
292 if (conv == NULL) { 292 if (conv == NULL) {
293 gaim_debug_info("winprefs", "gar!\n"); 293 gaim_debug_info("winprefs", "gar!\n");
294 return; 294 return;
295 } 295 }
296 win = gaim_conversation_get_window(conv); 296 win = gaim_gtkconv_get_window(GAIM_GTK_CONVERSATION(conv));
297 if (win == NULL) { 297 if (win == NULL) {
298 gaim_debug_info("winprefs", "gar2!\n"); 298 gaim_debug_info("winprefs", "gar2!\n");
299 return; 299 return;
300 } 300 }
301 window = GAIM_GTK_WINDOW(win)->window; 301 window = win->window;
302 302
303 if (MyFlashWindowEx) { 303 if (MyFlashWindowEx) {
304 FLASHWINFO info; 304 FLASHWINFO info;
305 if (GetForegroundWindow() == GDK_WINDOW_HWND(window->window)) 305 if (GetForegroundWindow() == GDK_WINDOW_HWND(window->window))
306 return; 306 return;