[dots] Use a monospaced font
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots] Use a monospaced font
- Date: Thu, 2 Dec 2010 00:41:51 +0000 (UTC)
commit 2162ed0659e31c41701654976e7180851bff6b03
Author: Fernando Herrera <fherrera onirica com>
Date: Thu Dec 2 01:39:52 2010 +0100
Use a monospaced font
dots/app_window.py | 9 ++++++---
dots/dots_project.py | 3 +--
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/dots/app_window.py b/dots/app_window.py
index 807ef86..dad80ed 100644
--- a/dots/app_window.py
+++ b/dots/app_window.py
@@ -21,13 +21,14 @@ import pygtk
import gtk, glib
import os, tempfile
import subprocess
-from config_builder import ConfigBuilder
import host_settings
import gettext
-from dots_project import DotsProject
-from document_builder import document_new
import gconf
import gtkunixprint
+import pango
+from dots_project import DotsProject
+from document_builder import document_new
+from config_builder import ConfigBuilder
from table_editor import TableEditor
from translator import Translator
@@ -56,6 +57,8 @@ class AppWindow(object):
self.conf_xml.add_from_file (
os.path.join(host_settings.gtkbuilder_dir, 'config.xml'))
+ view = self.main_xml.get_object('textview1')
+ view.modify_font(pango.FontDescription('Mono'))
self.loadConfig()
def loadConfig(self):
diff --git a/dots/dots_project.py b/dots/dots_project.py
index 7173232..41edfa0 100644
--- a/dots/dots_project.py
+++ b/dots/dots_project.py
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, tempfile, host_settings, sys, gtk
import ascii_braille
-import pango, gobject
+import gobject
import mimetypes
class DotsProject(gobject.GObject):
@@ -27,7 +27,6 @@ class DotsProject(gobject.GObject):
gobject.GObject.__init__(self)
self.view = view
self.view.set_sensitive(True)
- #self.view.modify_font(pango.FontDescription('Mono'))
self.buffer = gtk.TextBuffer()
self.braille_buffer = gtk.TextBuffer()
self.buffer.connect("notify", self._onBufferPropChanged)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]