From fa6fb9f036e1199f5679a6218e25cbaabbae444b Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Mon, 28 Jan 2013 00:38:51 +0400 Subject: [PATCH] PluginInstallerPlugin.add config --- plugin_installer/config_dialog.ui | 92 +++++++++++++++++++++++----- plugin_installer/plugin_installer.py | 11 +--- 2 files changed, 80 insertions(+), 23 deletions(-) diff --git a/plugin_installer/config_dialog.ui b/plugin_installer/config_dialog.ui index fcc401d..5f1dc54 100644 --- a/plugin_installer/config_dialog.ui +++ b/plugin_installer/config_dialog.ui @@ -1,11 +1,11 @@ - + - - + Plug-in decription should be displayed here. This text will be erased during PluginsWindow initialization. + False 600 @@ -17,32 +17,41 @@ True - vertical + False True True 6 never - automatic True True 1 + + + + True + True 0 + False + 6 + 6 + True end False + True 1 @@ -55,12 +64,13 @@ True + False 5 - vertical 6 True + False 0 empty True @@ -71,26 +81,31 @@ False + True 0 True + False 6 True + False Authors: False + True 0 True + False 0 6 <empty> @@ -98,79 +113,97 @@ end + True + True 1 False + True 1 True + False True + False Homepage: False + True 0 button + False True True True + False none False 0 + True + True 1 False + True 2 True - vertical + False True + False True + False Description: False + True 0 True + False + True + True 1 False + True 0 @@ -183,52 +216,68 @@ 6 6 1 + True + True + True 1 + True + True 3 True + False True + False end + False True False False True - + False + True + False True + False gtk-refresh + True + True 0 True + False 0 Install/Upgrade + True + True 1 @@ -266,21 +315,25 @@ + False True - vertical + False - + True + False - + True + False 0 Ftp server: False + True 0 @@ -288,45 +341,56 @@ True True - + + True + True 1 False + True 0 Check update after start + False True False False + False False + 0 True - + False + True 1 Use TLS transport + False True False False + False False + 0 True - + False + True 2 diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index 1782bd4..2cc27e9 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -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)