diff --git a/src/command_system/implementation/middleware.py b/src/command_system/implementation/middleware.py index 40e4bdf4e..d291517c5 100644 --- a/src/command_system/implementation/middleware.py +++ b/src/command_system/implementation/middleware.py @@ -38,7 +38,6 @@ from common import gajim from ..framework import CommandProcessor from ..errors import CommandError, NoCommandError -from ..tools import gconf class ChatCommandProcessor(CommandProcessor): """ @@ -114,8 +113,7 @@ class CommandTools: def install_tags(self): buffer = self.conv_textview.tv.get_buffer() - name = gconf("/desktop/gnome/interface/monospace_font_name") - name = name if name else "Monospace" + name = "Monospace" font = Pango.FontDescription(name) command_ok_tag = buffer.create_tag("command_ok") diff --git a/src/command_system/tools.py b/src/command_system/tools.py index e67720ded..5dcf3fb2d 100644 --- a/src/command_system/tools.py +++ b/src/command_system/tools.py @@ -33,11 +33,3 @@ def remove(sequence, target): elif isinstance(sequence, dict): if target in sequence: del sequence[target] - -def gconf(path): - try: - from gi.repository import GConf - client = GConf.Client.get_default() - return client.get_string(path) - except ImportError: - pass