Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Erik Huelsmann
gajim
Commits
03917eda
Commit
03917eda
authored
May 09, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pylint errors
parent
bc5e7541
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
gajim/gtk/settings.py
gajim/gtk/settings.py
+12
-12
No files found.
gajim/gtk/settings.py
View file @
03917eda
...
...
@@ -66,12 +66,12 @@ class SettingsDialog(Gtk.ApplicationWindow):
self
.
listbox
.
connect
(
'row-activated'
,
self
.
on_row_activated
)
self
.
connect
(
'key-press-event'
,
self
.
on_key_press
)
def
on_key_press
(
self
,
widget
,
event
):
def
on_key_press
(
self
,
_
widget
,
event
):
if
event
.
keyval
==
Gdk
.
KEY_Escape
:
self
.
destroy
()
@
staticmethod
def
on_row_activated
(
listbox
,
row
):
def
on_row_activated
(
_
listbox
,
row
):
row
.
on_row_activated
()
def
get_setting
(
self
,
name
):
...
...
@@ -209,7 +209,7 @@ class GenericSetting(Gtk.ListBoxRow):
@
staticmethod
def
__get_value
(
type_
,
value
,
account
):
if
value
is
None
:
return
return
None
if
type_
==
SettingType
.
VALUE
:
return
value
...
...
@@ -277,7 +277,7 @@ class SwitchSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
bool
,
'Switch Value'
,
''
,
False
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -311,7 +311,7 @@ class EntrySetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
str
,
'Entry Value'
,
''
,
''
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -342,7 +342,7 @@ class DialogSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
str
,
'Dummy'
,
''
,
''
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
,
dialog
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -375,7 +375,7 @@ class SpinSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
int
,
'Priority'
,
''
,
-
128
,
127
,
0
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
,
range_
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -413,7 +413,7 @@ class FileChooserSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
str
,
'Certificate Path'
,
''
,
''
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
,
filefilter
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -463,7 +463,7 @@ class CallbackSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
str
,
'Dummy'
,
''
,
''
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
,
callback
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -478,7 +478,7 @@ class ActionSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
str
,
'Dummy'
,
''
,
''
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
,
account
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -516,7 +516,7 @@ class ComboSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
str
,
'Proxy'
,
''
,
''
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
,
combo_items
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
@@ -556,7 +556,7 @@ class ProxyComboSetting(GenericSetting):
__gproperties__
=
{
"setting-value"
:
(
str
,
'Proxy'
,
''
,
''
,
GObject
.
ParamFlags
.
READWRITE
),}
GObject
.
ParamFlags
.
READWRITE
),}
def
__init__
(
self
,
*
args
):
GenericSetting
.
__init__
(
self
,
*
args
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment