comparison src/gaimrc.c @ 5072:5078f765e3f9

[gaim-migrate @ 5425] Pounces with empty fields for message, sound, or command now pass NULL to those fields when creating the pounce. This eliminates the problem of a default sound (empty field) being read back as a filename of "". committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 08 Apr 2003 01:07:11 +0000
parents abc8489b2e8f
children 0e639df44fb5
comparison
equal deleted inserted replaced
5071:27e82a85a619 5072:5078f765e3f9
1629 account = gaim_account_find(ph->pouncer, ph->protocol); 1629 account = gaim_account_find(ph->pouncer, ph->protocol);
1630 1630
1631 old_pounce_opts_to_new(ph->options, &events, &actions); 1631 old_pounce_opts_to_new(ph->options, &events, &actions);
1632 1632
1633 pounce = gaim_gtkpounce_new(account, ph->name, events, actions, 1633 pounce = gaim_gtkpounce_new(account, ph->name, events, actions,
1634 ph->message, ph->command, ph->sound, 1634 (*ph->message == '\0' ? NULL : ph->message),
1635 (ph->options & 0x100)); 1635 (*ph->command == '\0' ? NULL : ph->command),
1636 (*ph->sound == '\0' ? NULL : ph->sound),
1637 (ph->options & 0x100));
1636 1638
1637 g_free(ph); 1639 g_free(ph);
1638 } 1640 }
1639 1641
1640 g_list_free(buddy_pounces); 1642 g_list_free(buddy_pounces);