src/prefs.c

changeset 5568
3c7cc231c8c4
parent 5561
d4a6b0c87193
child 5569
c0e413ace539
equal deleted inserted replaced
5567:248932da7121 5568:3c7cc231c8c4
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 printf("bool name = '%s'\n", name);
443 g_return_val_if_fail(pref != NULL, FALSE); 444 g_return_val_if_fail(pref != NULL, FALSE);
444 g_return_val_if_fail(pref->type == GAIM_PREF_BOOLEAN, FALSE); 445 g_return_val_if_fail(pref->type == GAIM_PREF_BOOLEAN, FALSE);
445 446
446 return pref->value.boolean; 447 return pref->value.boolean;
447 } 448 }

mercurial