Commit d8f92893 authored by Yann Leboulanger's avatar Yann Leboulanger

fix indentation and some pylint warning in roster_window.py

parent 408be060
......@@ -7,5 +7,5 @@ import sys
if os.getcwd().endswith('dev'):
os.chdir('../../src/') # we were in scripts/dev
os.system("pylint --include-ids=y --additional-builtins='_' --disable-msg=C0103,C0111,W0703,W0511,W0142 --disable-checker=design " + "".join(sys.argv[1:]))
os.system("pylint --include-ids=y --additional-builtins='_' --disable-msg=C0103,C0111,W0703,W0511,W0142,W0613,R0201 --disable-checker=design " + "".join(sys.argv[1:]))
......@@ -1125,7 +1125,7 @@ class GroupchatControl(ChatControlBase):
if status != '':
status = helpers.reduce_chars_newlines(status, max_lines=1)
# escape markup entities and make them small italic and fg color
color = gtkgui_helpers._get_fade_color(self.list_treeview,
color = gtkgui_helpers.get_fade_color(self.list_treeview,
selected, focus)
colorstring = "#%04x%04x%04x" % (color.red, color.green, color.blue)
name += ('\n<span size="small" style="italic" foreground="%s">'
......
......@@ -561,7 +561,7 @@ def file_is_locked(path_to_file):
hfile.Close()
return False
def _get_fade_color(treeview, selected, focused):
def get_fade_color(treeview, selected, focused):
"""
Get a gdk color that is between foreground and background in 0.3
0.7 respectively colors of the cell for the given treeview
......
......@@ -2758,7 +2758,7 @@ class Interface:
### Other Methods
################################################################################
def _change_awn_icon_status(self, status):
def change_awn_icon_status(self, status):
if not dbus_support.supported:
# do nothing if user doesn't have D-Bus bindings
return
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment