diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-02-25 05:05:15 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-02-25 17:13:09 +0300 |
commit | d0db3ee2940e2a206b31a6a321de084f28f8e406 (patch) | |
tree | f08a554a9093623dfd7503211ffbdfd38b214f00 | |
parent | ec332db512ca84f8dbaf20192a7ee1bfab4837a1 (diff) |
[plugin_installer] Move code into UI file
-rw-r--r-- | plugin_installer/config_dialog.ui | 4 | ||||
-rw-r--r-- | plugin_installer/plugin_installer.py | 5 |
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) |