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;
> if (pango_parse_markup(timestr, -1, 0, NULL, NULL, NULL, NULL))
> use_markup = TRUE;
>
> if (use_markup)
> gtk_label_set_markup(label, timestr);
> else
> gtk_label_set_text(label, timestr);
While it's now done in libindicator's indicator-ng.c this way:
> static void
> indicator_ng_set_label (IndicatorNg *self,
> const gchar *label)
> {
> if (label == NULL || *label == '\0')
> {
> if (self->entry.label)
> gtk_widget_hide (GTK_WIDGET (self->entry.label));
> return;
> }
>
> gtk_label_set_label (GTK_LABEL (self->entry.label), label);
> gtk_widget_show (GTK_WIDGET (self->entry.label));
> }
We could re-add pango markup support by updating indicator_ng_set_label
to use the _set_markup() function when appropriate.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1235990
Title:
Custom format does not handle html formatting any more
To manage notifications about this bug go to:
https://bugs.launchpad.net/libindicator/+bug/1235990/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs