remove gconf usage. It's not used anymore
This commit is contained in:
parent
1d41349b6e
commit
5656d210f7
2 changed files with 1 additions and 11 deletions
|
@ -38,7 +38,6 @@ from common import gajim
|
||||||
|
|
||||||
from ..framework import CommandProcessor
|
from ..framework import CommandProcessor
|
||||||
from ..errors import CommandError, NoCommandError
|
from ..errors import CommandError, NoCommandError
|
||||||
from ..tools import gconf
|
|
||||||
|
|
||||||
class ChatCommandProcessor(CommandProcessor):
|
class ChatCommandProcessor(CommandProcessor):
|
||||||
"""
|
"""
|
||||||
|
@ -114,8 +113,7 @@ class CommandTools:
|
||||||
def install_tags(self):
|
def install_tags(self):
|
||||||
buffer = self.conv_textview.tv.get_buffer()
|
buffer = self.conv_textview.tv.get_buffer()
|
||||||
|
|
||||||
name = gconf("/desktop/gnome/interface/monospace_font_name")
|
name = "Monospace"
|
||||||
name = name if name else "Monospace"
|
|
||||||
font = Pango.FontDescription(name)
|
font = Pango.FontDescription(name)
|
||||||
|
|
||||||
command_ok_tag = buffer.create_tag("command_ok")
|
command_ok_tag = buffer.create_tag("command_ok")
|
||||||
|
|
|
@ -33,11 +33,3 @@ def remove(sequence, target):
|
||||||
elif isinstance(sequence, dict):
|
elif isinstance(sequence, dict):
|
||||||
if target in sequence:
|
if target in sequence:
|
||||||
del sequence[target]
|
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…
Add table
Reference in a new issue