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
58
Issues
58
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
fa6fb9f0
Commit
fa6fb9f0
authored
Jan 28, 2013
by
Dicson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PluginInstallerPlugin.add config
parent
612a6662
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
23 deletions
+80
-23
plugin_installer/config_dialog.ui
plugin_installer/config_dialog.ui
+78
-14
plugin_installer/plugin_installer.py
plugin_installer/plugin_installer.py
+2
-9
No files found.
plugin_installer/config_dialog.ui
View file @
fa6fb9f0
<?xml version="1.0"?>
<?xml version="1.0"
encoding="UTF-8"
?>
<interface>
<requires
lib=
"gtk+"
version=
"2.16"
/>
<!-- interface-naming-policy toplevel-contextual -->
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkTextBuffer"
id=
"textbuffer1"
>
<property
name=
"text"
>
Plug-in decription should be displayed here. This text will be erased during PluginsWindow initialization.
</property>
</object>
<object
class=
"GtkWindow"
id=
"window1"
>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkHPaned"
id=
"hpaned2"
>
<property
name=
"width_request"
>
600
</property>
...
...
@@ -17,32 +17,41 @@
<child>
<object
class=
"GtkVBox"
id=
"vbox1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"
orientation"
>
vertical
</property>
<property
name=
"
can_focus"
>
False
</property>
<child>
<object
class=
"GtkScrolledWindow"
id=
"scrolledwindow2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"hscrollbar_policy"
>
never
</property>
<property
name=
"vscrollbar_policy"
>
automatic
</property>
<child>
<object
class=
"GtkTreeView"
id=
"available_treeview"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"search_column"
>
1
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"treeview-selection1"
/>
</child>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkProgressBar"
id=
"progressbar"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"margin_left"
>
6
</property>
<property
name=
"margin_right"
>
6
</property>
<property
name=
"show_text"
>
True
</property>
<property
name=
"ellipsize"
>
end
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
...
...
@@ -55,12 +64,13 @@
<child>
<object
class=
"GtkVBox"
id=
"vbox4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
5
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
6
</property>
<child>
<object
class=
"GtkLabel"
id=
"plugin_name_label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
>
empty
</property>
<property
name=
"selectable"
>
True
</property>
...
...
@@ -71,26 +81,31 @@
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkHBox"
id=
"hbox8"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"spacing"
>
6
</property>
<child>
<object
class=
"GtkLabel"
id=
"label8"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Authors:
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"plugin_authors_label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"xpad"
>
6
</property>
<property
name=
"label"
>
<
empty
>
</property>
...
...
@@ -98,79 +113,97 @@
<property
name=
"ellipsize"
>
end
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkHBox"
id=
"hbox9"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkLabel"
id=
"label9"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Homepage:
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkLinkButton"
id=
"plugin_homepage_linkbutton1"
>
<property
name=
"label"
>
button
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"relief"
>
none
</property>
<property
name=
"focus_on_click"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
<child>
<object
class=
"GtkVBox"
id=
"vbox5"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"
orientation"
>
vertical
</property>
<property
name=
"
can_focus"
>
False
</property>
<child>
<object
class=
"GtkHBox"
id=
"hbox10"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkLabel"
id=
"label10"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Description:
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkAlignment"
id=
"alignment4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
...
...
@@ -183,52 +216,68 @@
<property
name=
"left_margin"
>
6
</property>
<property
name=
"right_margin"
>
6
</property>
<property
name=
"indent"
>
1
</property>
<property
name=
"overwrite"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
3
</property>
</packing>
</child>
<child>
<object
class=
"GtkHBox"
id=
"hbox15"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<placeholder/>
</child>
<child>
<object
class=
"GtkHButtonBox"
id=
"hbuttonbox3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
<child>
<object
class=
"GtkButton"
id=
"inslall_upgrade_button"
>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"sensitive"
>
False
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"receives_default"
>
True
</property>
<signal
name=
"clicked"
handler=
"on_inslall_upgrade_clicked"
/>
<property
name=
"use_action_appearance"
>
False
</property>
<signal
name=
"clicked"
handler=
"on_inslall_upgrade_clicked"
swapped=
"no"
/>
<child>
<object
class=
"GtkHBox"
id=
"hbox1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkImage"
id=
"image1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"stock"
>
gtk-refresh
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Install/Upgrade
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
...
...
@@ -266,21 +315,25 @@
</child>
</object>
<object
class=
"GtkWindow"
id=
"window2"
>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkVBox"
id=
"hbox111"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"
orientation"
>
vertical
</property>
<property
name=
"
can_focus"
>
False
</property>
<child>
<object
class=
"GtkHBox"
id=
"hbox
1
"
>
<object
class=
"GtkHBox"
id=
"hbox
2
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkLabel"
id=
"label
1
"
>
<object
class=
"GtkLabel"
id=
"label
2
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Ftp server:
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
...
...
@@ -288,45 +341,56 @@
<object
class=
"GtkEntry"
id=
"ftp_server"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"invisible_char"
>
●
</property>
<property
name=
"invisible_char"
>
●
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkCheckButton"
id=
"check_update"
>
<property
name=
"label"
translatable=
"yes"
>
Check update after start
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"focus_on_click"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"draw_indicator"
>
True
</property>
<signal
name=
"toggled"
handler=
"on_check_update_toggled"
/>
<signal
name=
"toggled"
handler=
"on_check_update_toggled"
swapped=
"no"
/>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkCheckButton"
id=
"TLS"
>
<property
name=
"label"
translatable=
"yes"
>
Use TLS transport
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"focus_on_click"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"draw_indicator"
>
True
</property>
<signal
name=
"toggled"
handler=
"on_tls_toggled"
/>
<signal
name=
"toggled"
handler=
"on_tls_toggled"
swapped=
"no"
/>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
...
...
plugin_installer/plugin_installer.py
View file @
fa6fb9f0
...
...
@@ -62,7 +62,7 @@ class PluginInstaller(GajimPlugin):
@
log_calls
(
'PluginInstallerPlugin'
)
def
init
(
self
):
self
.
description
=
_
(
'Install and upgrade plugins from ftp'
)
#
self.config_dialog = PluginInstallerPluginConfigDialog(self)
self
.
config_dialog
=
PluginInstallerPluginConfigDialog
(
self
)
self
.
config_default_values
=
{
'ftp_server'
:
(
'ftp.gajim.org'
,
''
),
'check_update'
:
(
True
,
''
),
'TLS'
:
(
True
,
''
),}
...
...
@@ -193,13 +193,6 @@ class PluginInstaller(GajimPlugin):
for
widget_name
in
widgets_to_extract
:
setattr
(
self
,
widget_name
,
self
.
xml
.
get_object
(
widget_name
))
##attr_list = Pango.AttrList()
##attr_list.insert(Pango.AttrSize(Pango.Weight.BOLD))
#fd = Pango.FontDescription()
#fd.set_weight(Pango.Weight.BOLD)
#self.plugin_name_label1.modify_font(fd)
##self.plugin_name_label1.set_attributes(attr_list)
self
.
available_plugins_model
=
Gtk
.
ListStore
(
GdkPixbuf
.
Pixbuf
,
GObject
.
TYPE_PYOBJECT
,
GObject
.
TYPE_STRING
,
GObject
.
TYPE_STRING
,
GObject
.
TYPE_STRING
,
GObject
.
TYPE_BOOLEAN
,
GObject
.
TYPE_PYOBJECT
,
...
...
@@ -635,7 +628,7 @@ class PluginInstallerPluginConfigDialog(GajimPluginConfigDialog):
self
.
xml
.
set_translation_domain
(
'gajim_plugins'
)
self
.
xml
.
add_objects_from_file
(
self
.
Gtk_BUILDER_FILE_PATH
,
[
'hbox111'
])
hbox
=
self
.
xml
.
get_object
(
'hbox111'
)
self
.
child
.
pack_start
(
hbox
)
self
.
get_child
().
pack_start
(
hbox
,
True
,
True
,
0
)
self
.
xml
.
connect_signals
(
self
)
self
.
connect
(
'hide'
,
self
.
on_hide
)
...
...
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