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 330588 - Use Seconds instead of Milliseconds
Use Seconds instead of Milliseconds
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Mouse
2.15.x
Other Linux
: Normal major
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-09 22:30 UTC by Crispin Flowerday (not receiving bugmail)
Modified: 2010-11-18 16:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch fixes the bug (2.11 KB, patch)
2006-02-10 09:28 UTC, Anilkumar BVN
none Details | Review
Patch fixes the bug. (2.35 KB, patch)
2006-02-14 11:51 UTC, Anilkumar BVN
committed Details | Review
Patch that updates the GConf schema (762 bytes, patch)
2006-07-29 12:44 UTC, Sven Herzberg
none Details | Review

Description Crispin Flowerday (not receiving bugmail) 2006-02-09 22:30:52 UTC
In the mouse property screen, where it talks about the "Double-click timeout" is says "500 microseconds". There is no way that it means microseconds, it should say milliseconds, or preferably give the time in a fraction of a second, e.g. 0.1 seconds, 0.2.
Comment 1 Crispin Flowerday (not receiving bugmail) 2006-02-09 22:40:23 UTC
The code that displays this should use ngettext() for proper translation.
Comment 2 Anilkumar BVN 2006-02-10 09:28:27 UTC
Created attachment 59059 [details] [review]
Patch fixes the bug

I apologise for the mistake. Made the changes accordingly so that the label is in milliseconds.
Comment 3 Crispin Flowerday (not receiving bugmail) 2006-02-10 09:35:56 UTC
Why use milliseconds ? fractions of a second makes much more sense.

In any case, this needs to use ngettext()
Comment 4 Anilkumar BVN 2006-02-14 11:51:07 UTC
Created attachment 59326 [details] [review]
Patch fixes the bug.

Issue 1: Why not use fraction of seconds...
To show the slider value in fraction of seconds, the range of the slider should be  changed to have a range of <0.1-1> in the glade file. Changing this requires a change in the gconf key which stores the value as an integer<100-1000>. Hence opted to change the label instead of changing the gconf key.

Issue 2: Use of ngettext().
Modified the patch so that ngettext() is used to get thecorrect  plural form of the messages.
Comment 5 Crispin Flowerday (not receiving bugmail) 2006-02-14 11:54:57 UTC
(In reply to comment #4)
> To show the slider value in fraction of seconds, the range of the slider should
> be  changed to have a range of <0.1-1> in the glade file. Changing this
> requires a change in the gconf key which stores the value as an
> integer<100-1000>.

So why not just mutiply the value in the slider by 1000 when storing in gconf, and divide by 1000 when reading from gconf? We used to display the value in seconds, and it is much saner than showing milliseconds
Comment 6 Anilkumar BVN 2006-02-17 11:05:03 UTC
Updation of the slider value from GConf and vice-versa is done in capplets/common/gconf-property-editor.c which is common for the sliders of other capplets too (network, sound preferences). So, opted to change the units to milliseconds.
Comment 7 Rodrigo Moya 2006-02-17 11:23:12 UTC
Patch committed to CVS HEAD, thanks
Comment 8 Crispin Flowerday (not receiving bugmail) 2006-02-18 10:05:12 UTC
This latest patch (that has been committed) is incorrect - the correct use of ngettext() is:

ngettext ("%d millisecond","%d milliseconds", ...)

Note that the first string is not in the plural form - although as you can never have '1 millisecond' in this dialogue, so it is not worth changing now.

BTW, I'm still not convinced about the use of millisecond - it is an unncessary technical term, and the reason for not leaving it at seconds is not at all convincing
Comment 9 Vincent Untz 2006-02-19 10:00:25 UTC
Reopening:

 + ngettext() is not properly used, as Crispin pointed out
 + there was no approval from translators and no notice sent to the release-team and documentation people
 + fraction of a second is better for the user than milliseconds (Crispin, again :-))
Comment 10 Karsten Bräckelmann 2006-02-26 03:19:58 UTC
Just noticed this issue, too. Luckily I searched bugzilla before filing it, though I still don't believe this already was known... ;-)

Since I'm here, confirming.

I'd strongly suggest to get this simple fix in, in whatever form. Milliseconds, fractions of seconds... as long as the unit is *correct*. Whatever will be approved. Even ngettext() is a minor issue when simply renaming the label.
Comment 11 Sven Herzberg 2006-07-24 12:42:37 UTC
2006-07-24  Sven Herzberg  <herzi@gnome-de.org>

        * gnome-mouse-properties.c: use ngettext() correctly
Comment 12 Christian Persch 2006-07-24 14:05:22 UTC
That fixed the ngettext usage, but it still uses *millisecond* instead of %.1f second.
Comment 13 Sven Herzberg 2006-07-24 17:02:02 UTC
Updating summary for the last remaining piece...
Comment 14 Sven Herzberg 2006-07-29 12:44:07 UTC
Created attachment 69870 [details] [review]
Patch that updates the GConf schema

This patch will update the GConf schema which is located in libgnome. Now I just need to create a proper patch for the mouse capplet.
Comment 15 Sebastien Bacher 2006-08-06 22:21:55 UTC
if the patch is for libgnome maybe the bug should be reassigned to it?
Comment 16 Sven Herzberg 2006-08-07 10:23:06 UTC
No, because this patch just fixes the schema for the mouse capplet. I'm still working on a patch for the mouse capplet (because it needs to get proper migration code for older settings). This patch will be the really large one.
Comment 17 Bastien Nocera 2009-11-10 19:45:39 UTC
Resetting to default assignee, hasn't been touched in 3 years. What's the status on this bug?
Comment 18 Bastien Nocera 2010-11-18 16:24:54 UTC
I don't think that storing the setting in a different format helps at all, and it would break the GConf -> GSettings conversion.

Finally, the mouse panel doesn't show the actual value of the setting anymore. So problem solved.