! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add ability to set text colour in genmon plugin
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-genmon-plugin
Component:
General

Comments

Description Chris Green 2009-03-18 16:56:56 CET
Created attachment 2242 
Patch for main.c as described

I had a need for bits of coloured text in the XFCE panel.  xfce-genmon-plugin was exactly what I wanted except for the inability to set colours.

This patch allows use of the gtk pango markup in the text passed to xfce-genmon-plugin and thus one can colour the text.

The patch simply changes a couple of calls from gtk_label_set_text() to gtk_label_set_markup(), I have also increased the text buffer size because the markup can use quite a bit of 'non-displayed' space.

The patch is applied to main.c in xfce4-genmon-plugin-3.2/panel-plugin.

I have added the patch as an attachment - cgpatch.
Comment 1 Florian Rivoal editbugs 2011-02-24 14:53:00 CET
*** Bug 5751 has been marked as a duplicate of this bug. ***
Comment 2 Florian Rivoal editbugs 2011-02-24 15:18:18 CET
Patch applied. Thanks for submitting it.

Bug #5124

Reported by:
Chris Green
Reported on: 2009-03-18
Last modified on: 2011-02-24
Duplicates (1):
  • 5751 Colored text support in genmon-plugin - tag pair added

People

Assignee:
Florian Rivoal
CC List:
1 user

Version

Version:
3.2 or older

Attachments

Patch for main.c as described (6.12 KB, patch)
2009-03-18 16:56 CET , Chris Green
no flags

Additional information