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 327113 - Time is displayed vertically in a wide vertical top-right panel
Time is displayed vertically in a wide vertical top-right panel
Status: RESOLVED DUPLICATE of bug 318377
Product: gnome-panel
Classification: Other
Component: clock
2.12.x
Other All
: Normal trivial
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-15 19:14 UTC by Adam Sjøgren
Modified: 2006-01-22 15:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Actual panel (20.75 KB, image/png)
2006-01-15 19:19 UTC, Adam Sjøgren
  Details
Expected panel (21.51 KB, image/png)
2006-01-15 19:19 UTC, Adam Sjøgren
  Details
Ugly hack, only rotates for small sizes (<48) (1.48 KB, patch)
2006-01-15 19:21 UTC, Adam Sjøgren
none Details | Review

Description Adam Sjøgren 2006-01-15 19:14:20 UTC
Please describe the problem:
I have a vertical panel placed in the top-right corner of my desktop. The panel
is 48 pixels wide.

The clock is displayed rotated, so the text is vertical instead of horisontal.

It would be nice if the text only was rotated if there wasn't enough room to
display it horisontally, as it is much easier to read.

If that is complicated, perhaps the text could only be rotated if the panel has
the preferences checkbox "Expand" checked (I expect it is usually checke for
panels used for "menubar"-like things and not checked for panels used more
"buttony"-like).

I've looked at the code, but unfortunately I couldn't figure out how to do any
of these two things.

Instead I've made a crude and ugly patch, that only rotates the text for panels
with size less than 48. It works for me, but it sure is an ugly hack.

Steps to reproduce:
1. Create a panel with orientation right (or left). 
2. Make the panel wide (say, 48 pixels).
2. Add a clock-applet to the panel.



Actual results:
The text is displayed vertically. It looks rather silly.

Expected results:
The text displayed horisontally, when there is room enough.

Does this happen every time?
Yes.

Other information:
Comment 1 Adam Sjøgren 2006-01-15 19:19:07 UTC
Created attachment 57420 [details]
Actual panel

This is what the panel looks like.
Comment 2 Adam Sjøgren 2006-01-15 19:19:40 UTC
Created attachment 57421 [details]
Expected panel

This is how I would expect the panel to look.
Comment 3 Adam Sjøgren 2006-01-15 19:21:05 UTC
Created attachment 57422 [details] [review]
Ugly hack, only rotates for small sizes (<48)

Not to be used, just what I could come up with, when I couldn't figure out how to either determine whether the text would fit horisontally or whether the panel has its Expand checkbox marked.
Comment 4 Vincent Untz 2006-01-22 15:38:00 UTC
Unfortunately the hack is too ugly so it won't get in :-) I'll try to fix it in a clean way.
Btw, this is a dup.

*** This bug has been marked as a duplicate of 318377 ***