comparison src/gtkprefs.c @ 14035:8bda65b88e49

[gaim-migrate @ 16638] A bunch of small changes. Mostly remove "if not null" checks before calling g_free, g_list_free, g_slist_free and g_strdup. Also use g_list_foreach() to call g_free to free strings in an array. And some whitespace changes here and there. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Aug 2006 08:27:39 +0000
parents 0a2fa0177a30
children
comparison
equal deleted inserted replaced
14034:0839a7b71325 14035:8bda65b88e49
1472 1472
1473 #ifdef USE_GSTREAMER 1473 #ifdef USE_GSTREAMER
1474 static gchar* prefs_sound_volume_format(GtkScale *scale, gdouble val) 1474 static gchar* prefs_sound_volume_format(GtkScale *scale, gdouble val)
1475 { 1475 {
1476 if(val < 15) { 1476 if(val < 15) {
1477 return g_strdup_printf(_("Quietest")); 1477 return g_strdup_printf(_("Quietest"));
1478 } else if(val < 30) { 1478 } else if(val < 30) {
1479 return g_strdup_printf(_("Quieter")); 1479 return g_strdup_printf(_("Quieter"));
1480 } else if(val < 45) { 1480 } else if(val < 45) {
1481 return g_strdup_printf(_("Quiet")); 1481 return g_strdup_printf(_("Quiet"));
1482 } else if(val < 55) { 1482 } else if(val < 55) {