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 131221 - incomplete display of clock data with reduced panel width
incomplete display of clock data with reduced panel width
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: clock
git master
Other All
: Normal major
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 96341 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-01-12 13:01 UTC by Yogeesh
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
the fix. This utilizes panel applet size. (1.65 KB, patch)
2004-03-17 09:59 UTC, Dharmaveer Singh
needs-work Details | Review
The Fix, utilizes clock applet size and clock format (5.12 KB, patch)
2004-06-16 12:41 UTC, prasad
none Details | Review
another patch (3.87 KB, patch)
2004-10-13 21:40 UTC, Vincent Noel
none Details | Review

Description Yogeesh 2004-01-12 13:01:34 UTC
I am running Gnome community head build(2.5.2), dated 07th Jan 2004 on 
linux.

Steps to reproduce:
1. Create new verical panel,
2. Add Clock applet to newly created panel, 
3. Clock data is displayed with default format,
4. Reduce the width of panel by right click on the verical panel
Select ->Properties ->Size  (Say 30)
5. Panel width is reduces as desired by the above step.
6. Observe that Clock data is displayed partially.

Expected result: Clock data should be displayed completely.
Comment 1 Dharmaveer Singh 2004-03-17 09:59:59 UTC
Created attachment 25721 [details] [review]
the fix. This utilizes panel applet size.
Comment 2 Mark McLoughlin 2004-05-26 07:47:21 UTC
This is totally broken, there's no way we're reducing the font size one vertical
panels. I don't know what a good answer is, but this isn't it.
Comment 3 Satvik Upadhyaya 2004-05-31 09:40:37 UTC
what if the time were to be displayed in the tooltip. Currently only the date is
shown. I don't know whether this is a good answer or not :).
Comment 4 Sagar Rastogi 2004-06-01 06:30:20 UTC
Another solution could be to display the date-time (Tue Jun 1, 11:59) as :
Tue
Jun
01
11:59
on the vertical panel.
Comment 5 Dharmaveer Singh 2004-06-04 05:12:18 UTC
But it behaves same as other applets. Doesn't fish applet becomes smaller and 
smaller on panel when width is decreased. It should be upto the user that how 
much wide the panel should be in order to view the clock. It maintains common 
behaviour of resizing by applets.
Comment 6 prasad 2004-06-16 12:41:48 UTC
Created attachment 28759 [details] [review]
The Fix, utilizes clock applet size and clock format

The problem overcomes by changing the clock applet size 
and by changing the clock format, according to the vertical panel size.
Comment 7 Vincent Noel 2004-07-07 17:55:25 UTC
This is similar to bug #96341
Comment 8 Vincent Noel 2004-07-08 19:08:39 UTC
*** Bug 96341 has been marked as a duplicate of this bug. ***
Comment 9 Vincent Noel 2004-07-08 19:09:52 UTC
Bug 96341 also has an extensive discussion about how to implement the clock on a
vertical panel.
Comment 10 Vincent Noel 2004-10-13 21:40:51 UTC
Created attachment 32584 [details] [review]
another patch

Here is another, somehow simpler, patch.
It spreads the clock on up to 3 lines, depending on the panel size and
orientation. I tried to keep it light on the pixel sizes so it would work with
a majority of font sizes.

I did not include a 4-lines mode (ie weekday/day/month/time) as with 3 lines
the time is already the widest element anyway.

The patch has the nice side-effect of removing one of two similar translatable
strings :-)
Comment 11 Vincent Noel 2004-10-13 21:43:31 UTC
Also : I connected the applet to the size-allocate signal, instead of
size-change.  Otherwise it doesn't work (the applet does not have the right
size, etc - as usual :-P)
Comment 12 Vincent Untz 2005-01-02 15:13:22 UTC
There's something I don't understand... We're calling gtk_label_set_line_wrap
(label, TRUE).

So why doesn't it automatically wrap?
Comment 13 Luis Villa 2005-01-02 17:23:02 UTC
Hrm. Note that this doesn't happen just to the clock- other applets, like the
addressbook applet, also seem a bit busted. Thoughts?
Comment 14 Vincent Untz 2005-03-02 10:18:16 UTC
If anybody know why it doesn't automatically wrap, you can make a happy man
today by explaining me ;-)
Comment 15 Vincent Noel 2005-09-15 22:38:50 UTC
According to bug #313807, the clock is not displayed vertically on vertical
panels. Yay ! :)