diff src/gtkprefs.c @ 13046:1becdaf72e6d

[gaim-migrate @ 15405] SF Patch #1415168 from charkins This makes the volume adjustment range center on the middle of the slider again. It also improves the volume control in a couple of other ways. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 26 Jan 2006 05:43:27 +0000
parents 778d08e87ad0
children a0a4b44239e8
line wrap: on
line diff
--- a/src/gtkprefs.c	Thu Jan 26 05:30:39 2006 +0000
+++ b/src/gtkprefs.c	Thu Jan 26 05:43:27 2006 +0000
@@ -1447,14 +1447,20 @@
 #ifdef USE_AO
 static gchar* prefs_sound_volume_format(GtkScale *scale, gdouble val)
 {
-	if(val == 0) {
- 		return g_strdup_printf("Silent");
-	} else if(val < 35) {
-		return g_strdup_printf("Quiet");
-	} else if(val > 65) {
-		return g_strdup_printf("Loud");
+	if(val < 15) {
+ 		return g_strdup_printf(_("Quietest"));
+	} else if(val < 30) {
+		return g_strdup_printf(_("Quieter"));
+	} else if(val < 45) {
+		return g_strdup_printf(_("Quiet"));
+	} else if(val < 55) {
+		return g_strdup_printf(_("Normal"));
+	} else if(val < 70) {
+		return g_strdup_printf(_("Loud"));
+	} else if(val < 85) {
+		return g_strdup_printf(_("Louder"));
 	} else {
-		return g_strdup_printf("Normal");
+		return g_strdup_printf(_("Loudest"));
 	}
 }