remove gconf usage. It's not used anymore

This commit is contained in:
Yann Leboulanger 2015-10-04 21:22:17 +02:00
parent 1d41349b6e
commit 5656d210f7
2 changed files with 1 additions and 11 deletions

View File

@ -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")

View File

@ -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