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

fix var names. type -> type_. see #4403

parent ecba6896
No related branches found
No related tags found
No related merge requests found
...@@ -1039,7 +1039,7 @@ May be useful some day in the future?''' ...@@ -1039,7 +1039,7 @@ May be useful some day in the future?'''
return ctrl return ctrl
return None return None
def get_controls(self, type_ = None, acct = None): def get_controls(self, type_=None, acct=None):
ctrls = [] ctrls = []
for c in self.controls(): for c in self.controls():
if acct and c.account != acct: if acct and c.account != acct:
...@@ -1084,15 +1084,15 @@ May be useful some day in the future?''' ...@@ -1084,15 +1084,15 @@ May be useful some day in the future?'''
elif self.mode == self.ONE_MSG_WINDOW_PERACCT: elif self.mode == self.ONE_MSG_WINDOW_PERACCT:
acct = msg_win.account acct = msg_win.account
elif self.mode == self.ONE_MSG_WINDOW_PERTYPE: elif self.mode == self.ONE_MSG_WINDOW_PERTYPE:
type = msg_win.type type_ = msg_win.type
pos_x_key = type + '-msgwin-x-position' pos_x_key = type_ + '-msgwin-x-position'
pos_y_key = type + '-msgwin-y-position' pos_y_key = type_ + '-msgwin-y-position'
size_width_key = type + '-msgwin-width' size_width_key = type_ + '-msgwin-width'
size_height_key = type + '-msgwin-height' size_height_key = type_ + '-msgwin-height'
elif self.mode == self.ONE_MSG_WINDOW_NEVER: elif self.mode == self.ONE_MSG_WINDOW_NEVER:
type = msg_win.type type_ = msg_win.type
size_width_key = type + '-msgwin-width' size_width_key = type_ + '-msgwin-width'
size_height_key = type + '-msgwin-height' size_height_key = type_ + '-msgwin-height'
elif self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: elif self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
# Ignore any hpaned width # Ignore any hpaned width
width = msg_win.notebook.allocation.width width = msg_win.notebook.allocation.width
......
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