Skip to content
Snippets Groups Projects
Commit 47955c4e authored by Nico's avatar Nico
Browse files

Make showing main window work

parent 474a57bf
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
<gresource prefix="/app/briar/gtk">
<file compressed="true">ui/application.css</file>
<file compressed="true" preprocess="xml-stripblanks">ui/login.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/main.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/setup.ui</file>
</gresource>
</gresources>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkGrid" id="main">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="margin_left">18</property>
<property name="margin_right">18</property>
<property name="margin_top">18</property>
<property name="margin_bottom">18</property>
<child>
<object class="GtkListBox" id="contacts_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
</child>
</object>
</interface>
......@@ -10,7 +10,6 @@ class MainContainer(Container):
def __init__(self):
super().__init__()
self.__setup_view()
self.__register_signals()
def __setup_view(self):
self.builder.add_from_resource("/app/briar/gtk/ui/main.ui")
......
......@@ -52,7 +52,6 @@ class StartupContainer(Container):
def _startup_finished(self, succeeded):
if succeeded:
print("Startup succeeded")
self.emit("briar_startup_completed", (succeeded,))
return
print("Startup failed")
......@@ -48,7 +48,8 @@ class Window(Gtk.ApplicationWindow):
self.__grid.add(self.__container)
def __on_startup_completed(self, inst, obj):
self.__grid = Gtk.Grid()
self.__grid.destroy()
self.__setup_grid()
self.__setup_main_container()
def __setup_main_container(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment