Commit b1189947 authored by Philipp Hörist's avatar Philipp Hörist

[plugin_installer] Use get_notebook() to access notebook

parent 1cb65063
...@@ -244,7 +244,7 @@ class PluginInstaller(GajimPlugin): ...@@ -244,7 +244,7 @@ class PluginInstaller(GajimPlugin):
def _on_connect_plugin_window(self, plugin_window): def _on_connect_plugin_window(self, plugin_window):
self._available_page = AvailablePage( self._available_page = AvailablePage(
self.local_file_path('installer.ui'), plugin_window) self.local_file_path('installer.ui'), plugin_window.get_notebook())
self._available_page.set_download_in_progress( self._available_page.set_download_in_progress(
self._download_in_progress) self._download_in_progress)
self._available_page.connect('download-plugins', self._available_page.connect('download-plugins',
......
...@@ -31,11 +31,11 @@ class Column(IntEnum): ...@@ -31,11 +31,11 @@ class Column(IntEnum):
class AvailablePage(Observable): class AvailablePage(Observable):
def __init__(self, builder_path, plugin_window): def __init__(self, builder_path, notebook):
Observable.__init__(self) Observable.__init__(self)
self._ui = get_builder(builder_path) self._ui = get_builder(builder_path)
self._notebook = plugin_window.plugins_notebook self._notebook = notebook
self._page_num = self._notebook.append_page( self._page_num = self._notebook.append_page(
self._ui.available_plugins_box, self._ui.available_plugins_box,
Gtk.Label.new(_('Available'))) Gtk.Label.new(_('Available')))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment