| 492 } |
492 } |
| 493 |
493 |
| 494 return pref->value.generic; |
494 return pref->value.generic; |
| 495 } |
495 } |
| 496 |
496 |
| |
497 GaimPrefType gaim_prefs_get_type(const char *name) { |
| |
498 struct gaim_pref *pref = find_pref(name); |
| |
499 |
| |
500 if (pref == NULL) |
| |
501 return GAIM_PREF_NONE; |
| |
502 |
| |
503 return (pref->type); |
| |
504 } |
| |
505 |
| 497 gboolean gaim_prefs_get_bool(const char *name) { |
506 gboolean gaim_prefs_get_bool(const char *name) { |
| 498 struct gaim_pref *pref = find_pref(name); |
507 struct gaim_pref *pref = find_pref(name); |
| 499 |
508 |
| 500 if(!pref) { |
509 if(!pref) { |
| 501 gaim_debug(GAIM_DEBUG_ERROR, "prefs", |
510 gaim_debug(GAIM_DEBUG_ERROR, "prefs", |