Skip to content
Snippets Groups Projects
Commit 5656d210 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

remove gconf usage. It's not used anymore

parent 1d41349b
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment