Tracker: Patches

5 Centering of the dClock text in vertical panels - ID: 3102621
Last Update: Comment added ( gilir )

When the panel is vertical (i.e. stuck to the left or right of the screen), the clock is unattractively left-aligned. By changing the gtk label to be expanding, it centers the text, resulting in a much neater looking clock, especially when there are multiple lines.

This has no effect when the panel is horizontal (top or bottom) since the applet is constrained by those around it.


inductiveload ( inductiveload ) - 2010-11-03 20:44:17 PDT

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )

Date: 2011-12-24 06:54:12 PST
Sender: gilir

Patch committed in lxpanel git master. Thanks for your contribution :)


Date: 2010-11-03 21:01:37 PDT
Sender: inductiveload

I realised that this method didn't actually center the label's text
_within_ the label, it just centered the label in the HBox, so I added a
configuration option for text centering within the label, since I guess
some people would want left aligned text when they have a horizontal panel.


Attached File ( 1 )

Filename Description Download
center_clock_text.patch Patch which allows text centering Download

Changes ( 5 )

Field Old Value Date By
File Deleted 392183: 2010-11-03 21:02:35 PDT inductiveload
File Added 392184: center_clock_text.patch 2010-11-03 21:02:17 PDT inductiveload
File Added 392183: center_clock_text.patch 2010-11-03 21:02:10 PDT inductiveload
File Deleted 392181: 2010-11-03 20:59:04 PDT inductiveload
File Added 392181: center_clock_text.patch 2010-11-03 20:44:17 PDT inductiveload