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
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
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
50d19f3c
Commit
50d19f3c
authored
Mar 06, 2016
by
Yann Leboulanger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a few warnings
parent
28f01f7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
plugin_installer/manifest.ini
plugin_installer/manifest.ini
+1
-1
plugin_installer/plugin_installer.py
plugin_installer/plugin_installer.py
+11
-11
No files found.
plugin_installer/manifest.ini
View file @
50d19f3c
[info]
name:
Plugin
Installer
short_name:
plugin_installer
version:
0.1
2.2
version:
0.1
3.0
description:
Install
and
upgrade
plugins
from
ftp
authors:
Denis
Fomin
<fominde@gmail.com>
Yann
Leboulanger
<asterix@lagaule.org>
...
...
plugin_installer/plugin_installer.py
View file @
50d19f3c
...
...
@@ -37,7 +37,7 @@ import zipfile
from
common
import
gajim
from
plugins
import
GajimPlugin
from
plugins.helpers
import
log_calls
,
log
from
conversation_textview
import
ConversationTextv
iew
from
htmltextview
import
HtmlTextV
iew
from
dialogs
import
WarningDialog
,
HigDialog
,
YesNoDialog
from
plugins.gui
import
GajimPluginConfigDialog
...
...
@@ -192,7 +192,7 @@ class PluginInstaller(GajimPlugin):
self
.
xml
.
add_objects_from_file
(
self
.
Gtk_BUILDER_FILE_PATH
,
[
'hpaned2'
])
self
.
hpaned
=
self
.
xml
.
get_object
(
'hpaned2'
)
self
.
page_num
=
self
.
notebook
.
append_page
(
self
.
hpaned
,
Gtk
.
Label
(
_
(
'Available'
)))
Gtk
.
Label
.
new
(
_
(
'Available'
)))
widgets_to_extract
=
(
'plugin_name_label1'
,
'available_treeview'
,
'progressbar'
,
'inslall_upgrade_button'
,
...
...
@@ -237,10 +237,10 @@ class PluginInstaller(GajimPlugin):
if
GObject
.
signal_lookup
(
'error_signal'
,
self
.
window
)
is
0
:
GObject
.
signal_new
(
'error_signal'
,
self
.
window
,
GObject
.
S
IGNAL_
RUN_LAST
,
GObject
.
TYPE_STRING
,
GObject
.
S
ignalFlags
.
RUN_LAST
,
GObject
.
TYPE_STRING
,
(
GObject
.
TYPE_STRING
,))
GObject
.
signal_new
(
'plugin_downloaded'
,
self
.
window
,
GObject
.
S
IGNAL_
RUN_LAST
,
GObject
.
TYPE_STRING
,
GObject
.
S
ignalFlags
.
RUN_LAST
,
GObject
.
TYPE_STRING
,
(
GObject
.
TYPE_PYOBJECT
,))
id_
=
self
.
window
.
connect
(
'error_signal'
,
self
.
on_some_ftp_error
)
...
...
@@ -256,9 +256,9 @@ class PluginInstaller(GajimPlugin):
self
.
_clear_available_plugin_info
()
self
.
plugin_description_textview
=
ConversationTextview
(
None
)
self
.
plugin_description_textview
=
HtmlTextView
(
)
sw
=
self
.
xml
.
get_object
(
'scrolledwindow1'
)
sw
.
add
(
self
.
plugin_description_textview
.
tv
)
sw
.
add
(
self
.
plugin_description_textview
)
self
.
xml
.
connect_signals
(
self
)
self
.
window
.
show_all
()
...
...
@@ -363,9 +363,9 @@ class PluginInstaller(GajimPlugin):
def
available_plugins_treeview_selection_changed
(
self
,
treeview_selection
):
model
,
iter
=
treeview_selection
.
get_selected
()
self
.
xml
.
get_object
(
'scrolledwindow1'
).
get_children
()[
0
].
destroy
()
self
.
plugin_description_textview
=
ConversationTextview
(
None
)
self
.
plugin_description_textview
=
HtmlTextView
(
)
sw
=
self
.
xml
.
get_object
(
'scrolledwindow1'
)
sw
.
add
(
self
.
plugin_description_textview
.
tv
)
sw
.
add
(
self
.
plugin_description_textview
)
sw
.
show_all
()
if
iter
:
self
.
plugin_name_label1
.
set_text
(
model
.
get_value
(
iter
,
C_NAME
))
...
...
@@ -382,9 +382,9 @@ class PluginInstaller(GajimPlugin):
desc
=
'<body xmlns=
\'
http://www.w3.org/1999/xhtml
\'
>'
+
\
desc
+
' </body>'
desc
=
desc
.
replace
(
'
\n
'
,
'<br/>'
)
self
.
plugin_description_textview
.
tv
.
display_html
(
desc
,
self
.
plugin_description_textview
)
self
.
plugin_description_textview
.
tv
.
set_property
(
'sensitive'
,
True
)
self
.
plugin_description_textview
.
display_html
(
desc
,
self
.
plugin_description_textview
,
None
)
self
.
plugin_description_textview
.
set_property
(
'sensitive'
,
True
)
else
:
self
.
_clear_available_plugin_info
()
...
...
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