comparison src/pounce.c @ 7107:9220c7490cd1

[gaim-migrate @ 7672] This is a big one: normalize() -> gaim_normalize, linkify_text() -> gaim_markup_linkify(), gaim_get_size_string() -> gaim_str_size_to_units(), and moved clean_pid() to main.c. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 06:17:28 +0000
parents f098765ac919
children bf630f7dfdcd
comparison
equal deleted inserted replaced
7106:db6bd3e794d8 7107:9220c7490cd1
370 370
371 g_return_if_fail(pouncer != NULL); 371 g_return_if_fail(pouncer != NULL);
372 g_return_if_fail(pouncee != NULL); 372 g_return_if_fail(pouncee != NULL);
373 g_return_if_fail(events != GAIM_POUNCE_NONE); 373 g_return_if_fail(events != GAIM_POUNCE_NONE);
374 374
375 norm_pouncee = g_strdup(normalize(pouncee)); 375 norm_pouncee = g_strdup(gaim_normalize(pouncee));
376 376
377 for (l = gaim_pounces_get_all(); l != NULL; l = l_next) 377 for (l = gaim_pounces_get_all(); l != NULL; l = l_next)
378 { 378 {
379 pounce = (GaimPounce *)l->data; 379 pounce = (GaimPounce *)l->data;
380 l_next = l->next; 380 l_next = l->next;
381 381
382 if ((gaim_pounce_get_events(pounce) & events) && 382 if ((gaim_pounce_get_events(pounce) & events) &&
383 (gaim_pounce_get_pouncer(pounce) == pouncer) && 383 (gaim_pounce_get_pouncer(pounce) == pouncer) &&
384 !gaim_utf8_strcasecmp(normalize(gaim_pounce_get_pouncee(pounce)), 384 !gaim_utf8_strcasecmp(gaim_normalize(gaim_pounce_get_pouncee(pounce)),
385 norm_pouncee)) 385 norm_pouncee))
386 { 386 {
387 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type); 387 handler = g_hash_table_lookup(pounce_handlers, pounce->ui_type);
388 388
389 if (handler != NULL && handler->cb != NULL) 389 if (handler != NULL && handler->cb != NULL)
417 { 417 {
418 pounce = (GaimPounce *)l->data; 418 pounce = (GaimPounce *)l->data;
419 419
420 if ((gaim_pounce_get_events(pounce) & events) && 420 if ((gaim_pounce_get_events(pounce) & events) &&
421 (gaim_pounce_get_pouncer(pounce) == pouncer) && 421 (gaim_pounce_get_pouncer(pounce) == pouncer) &&
422 !gaim_utf8_strcasecmp(normalize(gaim_pounce_get_pouncee(pounce)), 422 !gaim_utf8_strcasecmp(gaim_normalize(gaim_pounce_get_pouncee(pounce)),
423 norm_pouncee)) 423 norm_pouncee))
424 { 424 {
425 break; 425 break;
426 } 426 }
427 427