fix indentation and some pylint warning in roster_window.py

This commit is contained in:
Yann Leboulanger 2010-02-17 11:32:55 +01:00
parent 408be06002
commit d8f9289349
5 changed files with 622 additions and 523 deletions

View File

@ -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:]))

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff