[virt-tools-list] Patch to make fonts work correctly using Pango 1.20
Fred Leeflang
fredl at dutchie.org
Thu Oct 1 15:41:23 UTC 2009
In the dev head in mercurial some fonts are invisible on a Debian Lenny
system (Pango 1.20 installed).
Fixed with Cole Robinson's help:
diff -r a1225cd49733 src/virtManager/manager.py
--- a/src/virtManager/manager.py Tue Sep 29 14:35:20 2009 -0400
+++ b/src/virtManager/manager.py Thu Oct 01 17:38:04 2009 +0200
@@ -491,15 +491,15 @@
def _build_conn_markup(self, conn, row):
if conn.state == conn.STATE_DISCONNECTED:
- markup = ("<span font='9' color='#5b5b5b'>%s - "
+ markup = ("<span font_desc='9' color='#5b5b5b'>%s - "
"Not Connected</span>" % row[ROW_NAME])
else:
- markup = ("<span font='9'>%s</span>" % row[ROW_NAME])
+ markup = ("<span font_desc='9'>%s</span>" % row[ROW_NAME])
return markup
def _build_vm_markup(self, vm, row):
- markup = ("<span font='10'>%s</span>\n"
- "<span font='9' color='#989898'>%s</span>" %
+ markup = ("<span font_desc='10'>%s</span>\n"
+ "<span font_desc='9' color='#989898'>%s</span>" %
(row[ROW_NAME], row[ROW_STATUS]))
return markup
@@ -531,7 +531,7 @@
row.insert(ROW_HANDLE, conn)
row.insert(ROW_NAME, conn.get_pretty_desc_inactive(False))
row.insert(ROW_MARKUP, self._build_conn_markup(conn, row))
- row.insert(ROW_STATUS, ("<span font='9'>%s</span>" %
+ row.insert(ROW_STATUS, ("<span font_desc='9'>%s</span>" %
conn.get_state_text()))
row.insert(ROW_STATUS_ICON, None)
row.insert(ROW_KEY, conn.get_uri())
@@ -603,7 +603,7 @@
row = self.rows[conn.get_uri()]
row[ROW_MARKUP] = self._build_conn_markup(conn, row)
- row[ROW_STATUS] = "<span font='9'>%s</span>" %
conn.get_state_text()
+ row[ROW_STATUS] = "<span font_desc='9'>%s</span>" %
conn.get_state_text()
row[ROW_IS_CONN_CONNECTED] = conn.state != conn.STATE_DISCONNECTED
if conn.get_state() in [vmmConnection.STATE_DISCONNECTED,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20091001/717985ca/attachment.htm>
More information about the virt-tools-list
mailing list