summaryrefslogtreecommitdiff
path: root/src/gui/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r--src/gui/editor.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index 1665ff4..c7c2d37 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -1030,11 +1030,22 @@ static void on_editor_content_available(GStudyProject *project, GLoadedContent *
static void on_editor_loaded_content_added(GStudyProject *project, GLoadedContent *content, void *unused)
{
GPanelItem *panel; /* Nouveau panneau à integrer */
+ GPanelItemClass *class; /* Classe associée au panneau */
+#ifndef NDEBUG
+ bool status; /* Bilan de mise en place */
+#endif
GtkWidget *selected; /* Interface de prédilection */
panel = g_view_panel_new(G_NAMED_WIDGET(content));
- register_panel_item(G_TYPE_VIEW_PANEL, get_main_configuration());
+ class = G_PANEL_ITEM_GET_CLASS(panel);
+
+#ifndef NDEBUG
+ status = gtk_panel_item_class_setup_configuration(class, get_main_configuration());
+ assert(status);
+#else
+ gtk_panel_item_class_setup_configuration(class, get_main_configuration());
+#endif
selected = g_editor_item_get_widget(G_EDITOR_ITEM(panel));