Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evert Mouw
gajim-plugins
Commits
e4e59353
Commit
e4e59353
authored
12 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
PluginInstaller.prevent adding multiple 'Available' tabs.
parent
a815f337
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugin_installer/manifest.ini
+1
-1
1 addition, 1 deletion
plugin_installer/manifest.ini
plugin_installer/plugin_installer.py
+11
-5
11 additions, 5 deletions
plugin_installer/plugin_installer.py
with
12 additions
and
6 deletions
plugin_installer/manifest.ini
+
1
−
1
View file @
e4e59353
[info]
[info]
name:
Plugin
Installer
name:
Plugin
Installer
short_name:
plugin_installer
short_name:
plugin_installer
version:
0.8
version:
0.8
.1
description:
Install
and
upgrade
plugins
from
ftp
description:
Install
and
upgrade
plugins
from
ftp
authors:
Denis
Fomin
<fominde@gmail.com>
authors:
Denis
Fomin
<fominde@gmail.com>
Yann
Leboulanger
<asterix@lagaule.org>
Yann
Leboulanger
<asterix@lagaule.org>
...
...
This diff is collapsed.
Click to expand it.
plugin_installer/plugin_installer.py
+
11
−
5
View file @
e4e59353
...
@@ -142,8 +142,9 @@ class PluginInstaller(GajimPlugin):
...
@@ -142,8 +142,9 @@ class PluginInstaller(GajimPlugin):
self
.
xml
.
set_translation_domain
(
'
gajim_plugins
'
)
self
.
xml
.
set_translation_domain
(
'
gajim_plugins
'
)
self
.
xml
.
add_objects_from_file
(
self
.
GTK_BUILDER_FILE_PATH
,
[
'
hpaned2
'
])
self
.
xml
.
add_objects_from_file
(
self
.
GTK_BUILDER_FILE_PATH
,
[
'
hpaned2
'
])
hpaned
=
self
.
xml
.
get_object
(
'
hpaned2
'
)
hpaned
=
self
.
xml
.
get_object
(
'
hpaned2
'
)
self
.
page_num
=
self
.
notebook
.
append_page
(
hpaned
,
if
not
hasattr
(
self
,
'
page_num
'
):
gtk
.
Label
(
_
(
'
Available
'
)))
self
.
page_num
=
self
.
notebook
.
append_page
(
hpaned
,
gtk
.
Label
(
_
(
'
Available
'
)))
widgets_to_extract
=
(
'
plugin_name_label1
'
,
widgets_to_extract
=
(
'
plugin_name_label1
'
,
'
available_treeview
'
,
'
progressbar
'
,
'
inslall_upgrade_button
'
,
'
available_treeview
'
,
'
progressbar
'
,
'
inslall_upgrade_button
'
,
...
@@ -205,6 +206,8 @@ class PluginInstaller(GajimPlugin):
...
@@ -205,6 +206,8 @@ class PluginInstaller(GajimPlugin):
def
on_win_destroy
(
self
,
widget
):
def
on_win_destroy
(
self
,
widget
):
if
hasattr
(
self
,
'
ftp
'
):
if
hasattr
(
self
,
'
ftp
'
):
del
self
.
ftp
del
self
.
ftp
if
hasattr
(
self
,
'
page_num
'
):
del
self
.
page_num
def
available_plugins_toggled_cb
(
self
,
cell
,
path
):
def
available_plugins_toggled_cb
(
self
,
cell
,
path
):
is_active
=
self
.
available_plugins_model
[
path
][
4
]
is_active
=
self
.
available_plugins_model
[
path
][
4
]
...
@@ -373,9 +376,12 @@ class PluginInstaller(GajimPlugin):
...
@@ -373,9 +376,12 @@ class PluginInstaller(GajimPlugin):
return
plugins_found
return
plugins_found
def
select_root_iter
(
self
):
def
select_root_iter
(
self
):
selection
=
self
.
available_treeview
.
get_selection
()
try
:
if
selection
.
count_selected_rows
()
==
0
:
selection
=
self
.
available_treeview
.
get_selection
()
selection
.
select_iter
(
self
.
available_plugins_model
.
get_iter_root
())
if
selection
.
count_selected_rows
()
==
0
:
selection
.
select_iter
(
self
.
available_plugins_model
.
get_iter_root
())
except
Exception
,
error
:
pass
class
Ftp
(
threading
.
Thread
):
class
Ftp
(
threading
.
Thread
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment