summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2024-05-15 22:06:25 +0200
committerColomban Wendling <[email protected]>2024-05-21 11:02:58 +0200
commitf23bc4fe013c9ca2d68073e2e472560bdecd8b35 (patch)
tree845af50d80cce498ef11c2421274fe813f9ad0fb
parenta3def4737c267b649194fd8c2f37cc8fa0f2bc0d (diff)
downloadmate-screensaver-lock-delay-time-wording.tar.bz2
mate-screensaver-lock-delay-time-wording.tar.xz
mate-screensaver-preferences: Fix lock-delay time wordinglock-delay-time-wording
The scale controls the delay after which to lock the screen once the screensaver activated, not whether or not it happens -- which has its own checkbox. So remove the "Never" wording for value 0, which was inherited from an earlier version of the activate-delay scale that is not used anymore (the activate-delay scale is now 1-120, never 0).
-rw-r--r--src/mate-screensaver-preferences.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 1bcdcaf..39336c9 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -1034,10 +1034,7 @@ format_value_callback_time (GtkScale *scale,
gint pad_size;
/* get the value representation as a string */
- if (value == 0)
- time_str = g_strdup (_("Never"));
- else
- time_str = time_to_string_text ((long) (value * 60.0));
+ time_str = time_to_string_text ((long) (value * 60.0));
/* Now, adjust the string so the representation for the bounds are the
* longest ones, and try and adjust the length as smoothly as possible.