Commit caf8d79f authored by Nico's avatar Nico
Browse files

Move open_about_page into MainWindowController

parent e38b0b2b
......@@ -81,7 +81,7 @@ class WindowActions(Actions):
# pylint: disable=unused-argument
def _open_about_page(self, action, parameter):
self.widget.current_container.open_about_page()
self.widget.current_controller.open_about_page()
# pylint: disable=unused-argument
def _open_add_contact(self, action, parameter):
......
......@@ -12,6 +12,7 @@ from briar_gtk.define import APP
from briar_gtk.views.main_menu import MainMenuView
from briar_gtk.views.private_chat import PrivateChatView
from briar_gtk.views.sidebar import SidebarView
from briar_gtk.widgets.about_dialog import AboutDialogWidget
class MainWindowController():
......@@ -25,6 +26,11 @@ class MainWindowController():
self._load_content()
self._setup_destroy_listener()
@staticmethod
def open_about_page():
about_dialog = AboutDialogWidget()
about_dialog.show()
def open_private_chat(self, contact_id):
contact_name = self._get_contact_name(contact_id)
self._prepare_chat_view(contact_name)
......
......@@ -20,7 +20,6 @@ from briar_gtk.define import NOTIFICATION_PRIVATE_MESSAGE
from briar_gtk.views.main_menu import MainMenuView
from briar_gtk.views.private_chat import PrivateChatView
from briar_gtk.views.sidebar import SidebarView
from briar_gtk.widgets.about_dialog import AboutDialogWidget
from briar_gtk.widgets.contact_row import ContactRowWidget
from briar_gtk.widgets.edit_dialog import EditDialog
......@@ -72,11 +71,6 @@ class MainWindowView(Gtk.Overlay):
def chat_entry(self):
return self._builder.get_object("chat_entry")
@staticmethod
def open_about_page():
about_dialog = AboutDialogWidget()
about_dialog.show()
def show_sidebar(self):
self.main_window_leaflet.set_visible_child(
self._builder.get_object("sidebar_box"))
......
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