After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687405 - screen: preserve existing value
screen: preserve existing value
Status: RESOLVED WONTFIX
Product: gnome-control-center
Classification: Core
Component: Power
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
Control-Center Maintainers
3.10
Depends on:
Blocks:
 
 
Reported: 2012-11-02 04:41 UTC by Matthias Clasen
Modified: 2013-07-16 17:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (4.60 KB, patch)
2012-11-02 04:41 UTC, Matthias Clasen
reviewed Details | Review

Description Matthias Clasen 2012-11-02 04:41:45 UTC
Created attachment 227868 [details] [review]
patch

We should add the current value of the two delay settings on this panel to the choices offered in the combo boxes, if it is not one of the stock choices. 
Otherwise, you end up in a 'no way back' situation just by opening the combo box.
Comment 1 Bastien Nocera 2012-11-02 18:37:38 UTC
Review of attachment 227868 [details] [review]:

But why?
To get those custom values, you have to tweak those values by hand. We don't do this for any other drop-downs in control-center either (say, the text size in universal access).
Comment 2 Bastien Nocera 2012-11-02 18:39:16 UTC
Review of attachment 227868 [details] [review]:

But why?
To get those custom values, you have to tweak those values by hand. We don't do this for any other drop-downs in control-center either (say, the text size in universal access).

::: panels/screen/cc-screen-panel.c
@@ +386,3 @@
+  hours = minutes / 60;
+  minutes = minutes % 60;
+  s1 = g_strdup_printf (ngettext ("%d minute", "%d minutes", minutes), minutes);

I have that same code in Totem, and I would really rather it landed in glib so we didn't have to copy/paste yet again)
Comment 3 Matthias Clasen 2012-11-03 16:08:51 UTC
I'm really not a fan of taking more of this human-readable formatting into glib - when we have done so in the past, we've been burned.
Comment 4 Richard Hughes 2013-07-16 17:00:36 UTC
(In reply to comment #1)
> To get those custom values, you have to tweak those values by hand. We don't do
> this for any other drop-downs in control-center either (say, the text size in
> universal access).

Tempted to agree. Otherwise we have to range check for sanity and we'd get all kinds of odd bugs popping up.