← Back to team overview

gtg team mailing list archive

Re: [Question #166141]: Font size in task description

 

Question #166141 on Getting Things GNOME! changed:
https://answers.launchpad.net/gtg/+question/166141

    Status: Open => Answered

Izidor Matušov proposed the following answer:
You can apply this patch to manually change font size:

<patch>
=== modified file 'GTG/gtk/editor/editor.py'
--- GTG/gtk/editor/editor.py	2010-09-15 05:02:01 +0000
+++ GTG/gtk/editor/editor.py	2011-07-27 16:13:37 +0000
@@ -26,6 +26,7 @@
 import time
 
 import gtk
+import pango
 
 from GTG                     import _, ngettext
 from GTG.gtk.editor          import GnomeConfig
@@ -107,6 +108,7 @@
         self.textview.open_task_callback(self.vmanager.open_task)
         self.textview.set_left_margin(7)
         self.textview.set_right_margin(5)
+        self.textview.modify_font(pango.FontDescription('sans bold 12'))
         scrolled.add(self.textview)
         #Voila! it's done
         self.calendar       = GTGCalendar(self.builder)

<patch>

This is inspired by [1].

1: http://www.daa.com.au/pipermail/pygtk/2008-February/014850.html

-- 
You received this question notification because you are a member of Gtg
developers, which is an answer contact for Getting Things GNOME!.