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 413114 - Clock applet preferences does not allow editing of custom format
Clock applet preferences does not allow editing of custom format
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: clock
git master
Other All
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-28 16:42 UTC by Chris Rose
Modified: 2007-05-02 12:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Make custom format edit box appear correctly. (382 bytes, patch)
2007-05-01 19:54 UTC, Jamie Fox
committed Details | Review

Description Chris Rose 2007-02-28 16:42:15 UTC
Please describe the problem:
The clock preferneces dialog does not allow editing of the custom format after the dialog has been closed once.


Steps to reproduce:
1. Set a custom format in apps/panel/applets/applet_?/prefs/custom_format and set format to custom.
2. Right click the clock and select preferences.
3. Everything displays normally. Close preferences.
4. Open preferences again. Clock type is now blank and no custom format field is shown.

Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/87346
Comment 1 Paul Gier 2007-05-01 18:09:26 UTC
I also experienced this issue using Fedora Core 6 and Gnome 2.6.13.
It would be nice if the option for custom was always in the list of clock types.  I only see 12, 24, Unix, or Internet in the list of options.  Custom should be in the list, and when it is selected the custom format field should be enabled.

Also the applet help should include some documentation about the formats that are accepted by strftime.
Comment 2 Jamie Fox 2007-05-01 19:54:19 UTC
Created attachment 87351 [details] [review]
Make custom format edit box appear correctly.

The problem is that cd->custom_format_shown is not set to FALSE before the call to  update_properties_for_format each time the Preferences dialogue is created. Patch attached.

Paul: looking at the source code it appears that the intended behaviour is that the custom format fields only appear when either the format is set to custom or the custom_format string is non-empty, set via some other means. Whether or not 'custom' should appear as a choice by default is another issue.
Comment 3 Vincent Untz 2007-05-02 12:39:04 UTC
2007-05-02  Vincent Untz  <vuntz@gnome.org>

	* clock.c: (display_properties_dialog): reset custom_format_shown to
	FALSE.
	Patch by Jamie Fox <launchpad@jamiefox.me.uk>
	* clock.schemas.in: add a reference to the strftime manual
	Fix bug #413114

Jamie is also right about the fact that Custom is only visible when the user already played with it in gconf. This won't change.