Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
aae340c6
Commit
aae340c6
authored
Oct 17, 2018
by
Daniel Brötzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[plugin_installer] Set xml to _ui, Fix one config checkbox on_run
parent
44c53680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
plugin_installer/plugin_installer.py
plugin_installer/plugin_installer.py
+17
-17
No files found.
plugin_installer/plugin_installer.py
View file @
aae340c6
...
...
@@ -180,7 +180,7 @@ class PluginInstaller(GajimPlugin):
id_
=
self
.
window
.
connect
(
'destroy'
,
self
.
on_win_destroy
)
self
.
connected_ids
[
id_
]
=
self
.
window
path
=
self
.
local_file_path
(
'installer.ui'
)
self
.
xml
=
get_builder
(
self
.
_ui
=
get_builder
(
path
,
widgets
=
[
'refresh'
,
'available_plugins_box'
,
'plugin_store'
])
widgets_to_extract
=
(
...
...
@@ -190,16 +190,16 @@ class PluginInstaller(GajimPlugin):
'available_text'
,
'available_text_label'
)
for
widget_name
in
widgets_to_extract
:
setattr
(
self
,
widget_name
,
self
.
xml
.
get_object
(
widget_name
))
setattr
(
self
,
widget_name
,
self
.
_ui
.
get_object
(
widget_name
))
self
.
available_page
=
self
.
notebook
.
append_page
(
self
.
available_plugins_box
,
Gtk
.
Label
.
new
(
_
(
'Available'
)))
self
.
available_plugins_model
=
self
.
xml
.
get_object
(
'plugin_store'
)
self
.
available_plugins_model
=
self
.
_ui
.
plugin_store
self
.
available_plugins_model
.
set_sort_column_id
(
2
,
Gtk
.
SortType
.
ASCENDING
)
self
.
xml
.
connect_signals
(
self
)
self
.
_ui
.
connect_signals
(
self
)
self
.
window
.
show_all
()
def
on_win_destroy
(
self
,
widget
):
...
...
@@ -554,30 +554,30 @@ class DownloadAsync(threading.Thread):
class
PluginInstallerPluginConfigDialog
(
GajimPluginConfigDialog
):
def
init
(
self
):
glade_file_path
=
self
.
plugin
.
local_file_path
(
'config.ui'
)
self
.
xml
=
get_builder
(
glade_file_path
)
self
.
get_child
().
pack_start
(
self
.
xml
.
config_grid
,
True
,
True
,
0
)
self
.
_ui
=
get_builder
(
glade_file_path
)
self
.
get_child
().
pack_start
(
self
.
_ui
.
config_grid
,
True
,
True
,
0
)
self
.
xml
.
connect_signals
(
self
)
self
.
_ui
.
connect_signals
(
self
)
def
on_run
(
self
):
self
.
xml
.
check_update
.
set_active
(
self
.
plugin
.
config
[
'check_update'
])
self
.
xml
.
auto_update
.
set_sensitive
(
self
.
plugin
.
config
[
'check_update'
])
self
.
xml
.
auto_update
.
set_active
(
self
.
plugin
.
config
[
'auto_update'
])
self
.
xml
.
auto_update_feedback
.
set_sensitive
(
self
.
plugin
.
config
[
'check
_update'
])
self
.
xml
.
auto_update_feedback
.
set_active
(
self
.
plugin
.
config
[
'auto_update_feedback'
])
self
.
_ui
.
check_update
.
set_active
(
self
.
plugin
.
config
[
'check_update'
])
self
.
_ui
.
auto_update
.
set_sensitive
(
self
.
plugin
.
config
[
'check_update'
])
self
.
_ui
.
auto_update
.
set_active
(
self
.
plugin
.
config
[
'auto_update'
])
self
.
_ui
.
auto_update_feedback
.
set_sensitive
(
self
.
plugin
.
config
[
'auto
_update'
])
self
.
_ui
.
auto_update_feedback
.
set_active
(
self
.
plugin
.
config
[
'auto_update_feedback'
])
def
on_check_update_toggled
(
self
,
widget
):
self
.
plugin
.
config
[
'check_update'
]
=
widget
.
get_active
()
if
not
self
.
plugin
.
config
[
'check_update'
]:
self
.
plugin
.
config
[
'auto_update'
]
=
False
self
.
xml
.
auto_update
.
set_sensitive
(
self
.
plugin
.
config
[
'check_update'
])
self
.
xml
.
auto_update
.
set_active
(
self
.
plugin
.
config
[
'auto_update'
])
self
.
xml
.
auto_update_feedback
.
set_sensitive
(
self
.
plugin
.
config
[
'auto_update'
])
self
.
xml
.
auto_update_feedback
.
set_active
(
self
.
plugin
.
config
[
'auto_update_feedback'
])
self
.
_ui
.
auto_update
.
set_sensitive
(
self
.
plugin
.
config
[
'check_update'
])
self
.
_ui
.
auto_update
.
set_active
(
self
.
plugin
.
config
[
'auto_update'
])
self
.
_ui
.
auto_update_feedback
.
set_sensitive
(
self
.
plugin
.
config
[
'auto_update'
])
self
.
_ui
.
auto_update_feedback
.
set_active
(
self
.
plugin
.
config
[
'auto_update_feedback'
])
def
on_auto_update_toggled
(
self
,
widget
):
self
.
plugin
.
config
[
'auto_update'
]
=
widget
.
get_active
()
self
.
xml
.
auto_update_feedback
.
set_sensitive
(
self
.
plugin
.
config
[
'auto_update'
])
self
.
_ui
.
auto_update_feedback
.
set_sensitive
(
self
.
plugin
.
config
[
'auto_update'
])
def
on_auto_update_feedback_toggled
(
self
,
widget
):
self
.
plugin
.
config
[
'auto_update_feedback'
]
=
widget
.
get_active
()
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