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 325063 - inconsistent layout decisions (whether to use 1 or 2 lines) for applet initialization and update
inconsistent layout decisions (whether to use 1 or 2 lines) for applet initia...
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: clock
2.12.x
Other All
: Normal minor
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-27 14:50 UTC by Peter Adolphs
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
two clock applets on the same panel with different layouts (1.97 KB, image/png)
2005-12-27 15:01 UTC, Peter Adolphs
Details

Description Peter Adolphs 2005-12-27 14:50:00 UTC
Please describe the problem:
On my system, a clock applet displays the date and time in one line for a panel
size up to 48 pixels and in two lines for a for a panel size of 49+ pixels. My
panel size is set to 48 pixels, so the clock applet displays one line. However,
if I change e.g. the hour format in the clock applet preferences from 12 to 24
hours, the clock applet will immediately use two lines. Similarly, if I increase
the panel size until the clock applet uses two lines and then decrease it again,
the clock applet will still use two lines for any panel size between 37 and 48.
In both cases, this display property is not sticky: the clock applet will again
use one line if gnome-panel is restarted.

Steps to reproduce:
1. create a horizontal panel with a size between 37 and 48 pixels (the
problematic sizes probably depend on the default font sizes on your system)
2. add a clock applet to this panel
3. change hour format from 12 to 24 hours or vice versa


Actual results:
the display immediatly uses two lines instead of one, when the hour format is
changed

Expected results:
no change in the text layout. whether one or two lines are used for date and
time display should depend on the same panel sizes during applet initialization
and event-triggered update.

Does this happen every time?
yes

Other information:
using the Gnome packages shipped with Ubuntu 5.10 "Breezy Badger"
Comment 1 Peter Adolphs 2005-12-27 15:01:10 UTC
Created attachment 56441 [details]
two clock applets on the same panel with different layouts

Cf attached screenshot: two clock applets where added to a panel of size 48 pixels. Both were displayed within one line. Then I selected 24 hour format for the left applet which caused a change of the applet's layout.
Comment 2 Vincent Untz 2005-12-30 11:06:08 UTC
Funny :-)
Comment 3 Vincent Untz 2006-01-22 16:54:21 UTC
Should be fixed in HEAD.