Mercurial > pidgin
comparison src/prefs.c @ 5581:3a9b54f260e3
[gaim-migrate @ 5985]
Commit'em if you got'em.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 31 May 2003 04:35:54 +0000 |
parents | 5d2911d6d38e |
children | 57165429ed73 |
comparison
equal
deleted
inserted
replaced
5580:86456ec3ca25 | 5581:3a9b54f260e3 |
---|---|
438 } | 438 } |
439 | 439 |
440 gboolean gaim_prefs_get_bool(const char *name) { | 440 gboolean gaim_prefs_get_bool(const char *name) { |
441 struct gaim_pref *pref = find_pref(name); | 441 struct gaim_pref *pref = find_pref(name); |
442 | 442 |
443 gaim_debug(GAIM_DEBUG_MISC, "prefs", "key = %s\n", name); | |
444 | |
443 g_return_val_if_fail(pref != NULL, FALSE); | 445 g_return_val_if_fail(pref != NULL, FALSE); |
444 g_return_val_if_fail(pref->type == GAIM_PREF_BOOLEAN, FALSE); | 446 g_return_val_if_fail(pref->type == GAIM_PREF_BOOLEAN, FALSE); |
445 | 447 |
446 return pref->value.boolean; | 448 return pref->value.boolean; |
447 } | 449 } |