[plugin_installer] Move code into UI file

This commit is contained in:
Philipp Hörist
2017-02-25 03:05:15 +01:00
parent ec332db512
commit d0db3ee294
2 changed files with 3 additions and 6 deletions

View File

@@ -94,7 +94,9 @@
<property name="headers_clickable">False</property> <property name="headers_clickable">False</property>
<property name="search_column">1</property> <property name="search_column">1</property>
<child internal-child="selection"> <child internal-child="selection">
<object class="GtkTreeSelection"/> <object class="GtkTreeSelection">
<signal name="changed" handler="available_plugins_treeview_selection_changed" swapped="no"/>
</object>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">

View File

@@ -169,11 +169,6 @@ class PluginInstaller(GajimPlugin):
self.available_plugins_model.set_sort_column_id( self.available_plugins_model.set_sort_column_id(
2, Gtk.SortType.ASCENDING) 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 = HtmlTextView()
self.description_textview.set_wrap_mode(Gtk.WrapMode.WORD) self.description_textview.set_wrap_mode(Gtk.WrapMode.WORD)
self.scrolled_description_window.add(self.description_textview) self.scrolled_description_window.add(self.description_textview)