summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-09-09 08:41:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-09-09 08:41:59 (GMT)
commitec71086f6dcf69241b586f1e48e7d656dda11a6c (patch)
tree4a5cfbbe76d9407997b6b6e8f4b8e0893ddb259d /src/gui
parente3ce461fec70fd638b415edef4ce3aa9d939d772 (diff)
Restore the status bar at the bottom of the main window.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/window.c3
-rw-r--r--src/gui/window.ui13
2 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/window.c b/src/gui/window.c
index 1f10a15..193f1bf 100644
--- a/src/gui/window.c
+++ b/src/gui/window.c
@@ -30,6 +30,7 @@
#include "dialogs/about.h"
#include "panels/welcome.h"
#include "../gtkext/helpers.h"
+#include "../gtkext/statusstack.h"
@@ -78,6 +79,8 @@ static void gtk_framework_window_class_init(GtkFrameworkWindowClass *class)
widget = GTK_WIDGET_CLASS(class);
+ g_type_ensure(GTK_TYPE_STATUS_STACK);
+
gtk_widget_class_set_template_from_resource(widget, "/re/chrysalide/framework/gui/window.ui");
gtk_widget_class_bind_template_child(widget, GtkFrameworkWindow, grid);
diff --git a/src/gui/window.ui b/src/gui/window.ui
index 7055695..59b8b2c 100644
--- a/src/gui/window.ui
+++ b/src/gui/window.ui
@@ -34,11 +34,24 @@
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
+
<child>
<object class="GtkStack" id="grid">
<property name="vexpand">TRUE</property>
</object>
</child>
+
+ <child>
+ <object class="GtkSeparator">
+ <property name="orientation">horizontal</property>
+ </object>
+ </child>
+
+ <child>
+ <object class="GtkStatusStack" id="status">
+ </object>
+ </child>
+
</object>
</child>