diff --git a/data/gui/plugins_window.ui b/data/gui/plugins_window.ui index 16342ab77..2562cf9e6 100644 --- a/data/gui/plugins_window.ui +++ b/data/gui/plugins_window.ui @@ -45,14 +45,16 @@ 250 + 150 True False + 6 vertical + 6 True True - 6 never @@ -71,34 +73,25 @@ - + + Install from zip True - False - 0 - none - 0 - - - Install from zip - True - True - True - image1 - - - + True + True + start + image1 + False - True - 5 + False 1 False - True + False @@ -112,9 +105,9 @@ True False - 0 &lt;empty&gt; True + 0 @@ -146,9 +139,9 @@ True False - 0 <empty> True + 0 True @@ -172,8 +165,8 @@ True False - 0 Authors: + 0 False @@ -185,12 +178,12 @@ True False - 0 - 0 <empty> word-char True end + 0 + 0 True diff --git a/src/dialogs.py b/src/dialogs.py index 3d349a25b..48be5643f 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -4875,7 +4875,8 @@ class AvatarChooserDialog(ImageChooserDialog): class ArchiveChooserDialog(FileChooserDialog): - def __init__(self, on_response_ok=None, on_response_cancel=None): + def __init__(self, on_response_ok=None, on_response_cancel=None, + transient_for=None): def on_ok(widget, callback): '''check if file exists and call callback''' @@ -4899,7 +4900,8 @@ class ArchiveChooserDialog(FileChooserDialog): default_response=Gtk.ResponseType.OK, current_folder=path, on_response_ok=(on_ok, on_response_ok), - on_response_cancel=on_response_cancel) + on_response_cancel=on_response_cancel, + transient_for=transient_for) if on_response_cancel: self.connect('destroy', on_response_cancel) diff --git a/src/plugins/gui.py b/src/plugins/gui.py index 612704a40..b9382f6f8 100644 --- a/src/plugins/gui.py +++ b/src/plugins/gui.py @@ -69,6 +69,7 @@ class PluginsWindow(object): setattr(self, widget_name, self.xml.get_object(widget_name)) self.plugin_description_textview = HtmlTextView() + self.plugin_description_textview.set_wrap_mode(Gtk.WrapMode.WORD) sw = self.xml.get_object('scrolledwindow2') sw.add(self.plugin_description_textview) self.installed_plugins_model = Gtk.ListStore(object, str, bool, bool, @@ -303,7 +304,8 @@ class PluginsWindow(object): sel = self.installed_plugins_treeview.get_selection() sel.select_iter(iter_) - self.dialog = ArchiveChooserDialog(on_response_ok=_try_install) + self.dialog = ArchiveChooserDialog( + on_response_ok=_try_install, transient_for=self.window) class GajimPluginConfigDialog(Gtk.Dialog): diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index d2c334855..49b9a94ad 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -447,7 +447,7 @@ class PluginManager(metaclass=Singleton): # read metadata from manifest.ini conf.remove_section('info') - conf_file = open(manifest_path) + conf_file = open(manifest_path, encoding='utf-8') conf.read_file(conf_file) conf_file.close()