Mercurial > pidgin.yaz
changeset 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 | 27e82a85a619 |
children | 2ff05a24192b |
files | src/gaimrc.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gaimrc.c Tue Apr 08 01:05:08 2003 +0000 +++ b/src/gaimrc.c Tue Apr 08 01:07:11 2003 +0000 @@ -1631,8 +1631,10 @@ old_pounce_opts_to_new(ph->options, &events, &actions); pounce = gaim_gtkpounce_new(account, ph->name, events, actions, - ph->message, ph->command, ph->sound, - (ph->options & 0x100)); + (*ph->message == '\0' ? NULL : ph->message), + (*ph->command == '\0' ? NULL : ph->command), + (*ph->sound == '\0' ? NULL : ph->sound), + (ph->options & 0x100)); g_free(ph); }