Custom format does not handle html formatting any more
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libindicator |
Won't Fix
|
Wishlist
|
Unassigned | ||
indicator-datetime (Ubuntu) |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Until Ubuntu 13.04, the format of date and time in indicator-datetime could be formatted with HTML tags, like explained e.g. here: http://
Since 13.10, this behaviour is not available any more.
Downgrading indicator-datetime to 12.10.3daily13.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: indicator-datetime 12.10.3daily13.
ProcVersionSign
Uname: Linux 3.11.0-11-generic x86_64
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
Date: Sun Oct 6 17:06:40 2013
InstallationDate: Installed on 2011-12-02 (673 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
SourcePackage: indicator-datetime
UpgradeStatus: Upgraded to saucy on 2013-09-14 (21 days ago)
Changed in indicator-datetime (Ubuntu): | |
status: | New → Confirmed |
Changed in libindicator: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in indicator-datetime (Ubuntu): | |
importance: | Undecided → Wishlist |
This was never a supported feature, but it's a neat idea and I wouldn't be against re-enabling this.
The old indicator-datetime code set the label text this way:
> gboolean use_markup = FALSE; parse_markup( timestr, -1, 0, NULL, NULL, NULL, NULL)) set_markup( label, timestr); set_text( label, timestr);
> if (pango_
> use_markup = TRUE;
>
> if (use_markup)
> gtk_label_
> else
> gtk_label_
While it's now done in libindicator's indicator-ng.c this way:
> static void ng_set_ label (IndicatorNg *self, entry.label) ); entry.label) , label); entry.label) );
> indicator_
> const gchar *label)
> {
> if (label == NULL || *label == '\0')
> {
> if (self->entry.label)
> gtk_widget_hide (GTK_WIDGET (self->
> return;
> }
>
> gtk_label_set_label (GTK_LABEL (self->
> gtk_widget_show (GTK_WIDGET (self->
> }
We could re-add pango markup support by updating indicator_ ng_set_ label to use the _set_markup() function when appropriate.