summaryrefslogtreecommitdiff
path: root/src/gui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.c')
-rw-r--r--src/gui/window.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/gui/window.c b/src/gui/window.c
index 24716ed..432a8a1 100644
--- a/src/gui/window.c
+++ b/src/gui/window.c
@@ -207,7 +207,7 @@ bool gtk_framework_window_create(GtkFrameworkWindow *window, GtkApplication *app
item = find_item_panel_by_type(G_TYPE_WELCOME_PANEL);
panel = g_panel_item_get_panel(item);
- gtk_stack_add_child(window->grid, GTK_WIDGET(panel));
+ gtk_framework_window_add(window, panel);
unref_object(item);
@@ -236,3 +236,25 @@ bool gtk_framework_window_create(GtkFrameworkWindow *window, GtkApplication *app
return result;
}
+
+
+/******************************************************************************
+* *
+* Paramètres : window = instance de fenêtre principale à remplir. *
+* panel = nouveau panneau à afficher. *
+* *
+* Description : Ajoute un panneau à la fenêtre principale de Chrysalide. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void gtk_framework_window_add(GtkFrameworkWindow *window, /* __steal */GtkTiledPanel *panel)
+{
+ gtk_stack_add_child(window->grid, GTK_WIDGET(panel));
+
+ gtk_stack_set_visible_child(window->grid, GTK_WIDGET(panel));
+
+}