lp:~3v1n0/indicator-datetime/clock-label-improvements
Some fixes for the clock label, and markup support.
- Get this branch:
- bzr branch lp:~3v1n0/indicator-datetime/clock-label-improvements
Branch merges
- Ted Gould (community): Approve
-
Diff: 226 lines (+69/-27)1 file modifiedsrc/indicator-datetime.c (+69/-27)
Branch information
Recent revisions
- 32. By Marco Trevisan (Treviño)
-
Add markup support to clock label
This adds exactly the same markup support to the indicator-datetime
label respect to the clock gnome panel applet.Now formats like the ones below can be correctly set:
<span weight="Bold">%I:%M %p</span>
<sup><span rise="3000" font_desc="ubuntu 7.5" color="#DFD8C8" weight="normal">%a %d %b</span></sup>% n<sub>< span font_desc="ubuntu 7.5" color="#DFD8C8" weight="bold">%I:%M %p</span></sub>
%a <b>%I:%M %p</b> - 31. By Marco Trevisan (Treviño)
-
Reset the label max width when guessing it.
This should reduce the indicator size when a smaller (custom) text has
been added. - 30. By Marco Trevisan (Treviño)
-
Set label justification to center, and connect to "screen-changed" signal
Update gravity on screen change!
- 29. By Marco Trevisan (Treviño)
-
Check if the custom time format string shows seconds
If it happens, update the label each second, not only every minute.
So now you can also put any custom string showing seconds, getting
correctly updated.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)