remove gconf usage. It's not used anymore
This commit is contained in:
parent
1d41349b6e
commit
5656d210f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue