From f8a3daa2b62c0e7c9d57d53bf1ad457f6ea8215a Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sat, 10 Mar 2007 19:30:44 -0300 Subject: [PATCH] Console: logviewer font changes --- services/console/interface/logviewer/logviewer.py | 5 +++++ services/console/interface/xo/__init__.py | 1 + 2 files changed, 6 insertions(+) diff --git a/services/console/interface/logviewer/logviewer.py b/services/console/interface/logviewer/logviewer.py index 43d801ad..c741ac98 100644 --- a/services/console/interface/logviewer/logviewer.py +++ b/services/console/interface/logviewer/logviewer.py @@ -25,6 +25,7 @@ import pygtk pygtk.require('2.0') import gtk import gobject +import pango from sugar import env @@ -155,6 +156,10 @@ class LogView(gtk.ScrolledWindow): self.textview = gtk.TextView() self.textview.set_wrap_mode(gtk.WRAP_WORD) + font = pango.FontDescription('Sans 8') + font.set_weight(pango.WEIGHT_LIGHT) + self.textview.modify_font(font) + # Set background color bgcolor = gtk.gdk.color_parse("#FFFFFF") self.textview.modify_base(gtk.STATE_NORMAL, bgcolor) diff --git a/services/console/interface/xo/__init__.py b/services/console/interface/xo/__init__.py index 6610a0df..491017d4 100644 --- a/services/console/interface/xo/__init__.py +++ b/services/console/interface/xo/__init__.py @@ -1 +1,2 @@ from xo import Interface +