Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-02-25 05:05:15 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-02-25 17:13:09 +0300
commitd0db3ee2940e2a206b31a6a321de084f28f8e406 (patch)
treef08a554a9093623dfd7503211ffbdfd38b214f00 /plugin_installer
parentec332db512ca84f8dbaf20192a7ee1bfab4837a1 (diff)
[plugin_installer] Move code into UI file
Diffstat (limited to 'plugin_installer')
-rw-r--r--plugin_installer/config_dialog.ui4
-rw-r--r--plugin_installer/plugin_installer.py5
2 files changed, 3 insertions, 6 deletions
diff --git a/plugin_installer/config_dialog.ui b/plugin_installer/config_dialog.ui
index 790ce49..33077dc 100644
--- a/plugin_installer/config_dialog.ui
+++ b/plugin_installer/config_dialog.ui
@@ -94,7 +94,9 @@
<property name="headers_clickable">False</property>
<property name="search_column">1</property>
<child internal-child="selection">
- <object class="GtkTreeSelection"/>
+ <object class="GtkTreeSelection">
+ <signal name="changed" handler="available_plugins_treeview_selection_changed" swapped="no"/>
+ </object>
</child>
<child>
<object class="GtkTreeViewColumn">
diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py
index b266e93..c437be7 100644
--- a/plugin_installer/plugin_installer.py
+++ b/plugin_installer/plugin_installer.py
@@ -169,11 +169,6 @@ class PluginInstaller(GajimPlugin):
self.available_plugins_model.set_sort_column_id(
2, Gtk.SortType.ASCENDING)
- selection = self.available_treeview.get_selection()
- selection.connect(
- 'changed', self.available_plugins_treeview_selection_changed)
- selection.set_mode(Gtk.SelectionMode.SINGLE)
-
self.description_textview = HtmlTextView()
self.description_textview.set_wrap_mode(Gtk.WrapMode.WORD)
self.scrolled_description_window.add(self.description_textview)