diff --git a/Capture d’écran du 2024-06-19 11-38-58.png b/Capture d’écran du 2024-06-19 11-38-58.png new file mode 100644 index 0000000..71694d3 Binary files /dev/null and b/Capture d’écran du 2024-06-19 11-38-58.png differ diff --git a/Capture d’écran du 2024-06-19 11-46-39.png b/Capture d’écran du 2024-06-19 11-46-39.png new file mode 100644 index 0000000..594d0d0 Binary files /dev/null and b/Capture d’écran du 2024-06-19 11-46-39.png differ diff --git a/contain.c b/contain.c index 7d2f614..815b3c0 100644 --- a/contain.c +++ b/contain.c @@ -180,25 +180,24 @@ void window_header_bar (GtkWindow *main_window, char *title){ GtkWidget *switcher_SRD = gtk_stack_switcher_new (); GtkWidget *stack_SRD = gtk_stack_new (); gtk_stack_switcher_set_stack (GTK_STACK_SWITCHER (switcher_SRD), GTK_STACK (stack_SRD)); - -// GtkStackPage* page_child_space = gtk_stack_add_child (GTK_STACK (stack_SRD), GTK_WIDGET (get_STATE_VIEW_box())); -// GtkStackPage* page_child_rules = gtk_stack_add_child (GTK_STACK (stack_SRD), GTK_WIDGET (get_edit_rules_page_new())); -// GtkStackPage* page_child_data = gtk_stack_add_child (GTK_STACK (stack_SRD), GTK_WIDGET (get_measures_page_new())); - +/* + GtkStackPage* page_child_space = gtk_stack_add_child (GTK_STACK (stack_SRD), GTK_WIDGET (get_STATE_VIEW_box())); + GtkStackPage* page_child_rules = gtk_stack_add_child (GTK_STACK (stack_SRD), GTK_WIDGET (get_edit_rules_page_new())); + GtkStackPage* page_child_data = gtk_stack_add_child (GTK_STACK (stack_SRD), GTK_WIDGET (get_measures_page_new())); +*/ gtk_stack_add_titled (GTK_STACK (stack_SRD), GTK_WIDGET (get_STATE_VIEW_box()), "name_space", "space"); gtk_stack_add_titled (GTK_STACK (stack_SRD), GTK_WIDGET (get_edit_rules_page_new()), "name_rules", "rules"); gtk_stack_add_titled (GTK_STACK (stack_SRD), GTK_WIDGET (get_measures_page_new()), "name_data", "data analysis"); -// gtk_stack_page_set_visible (page_child_space, TRUE); -// gtk_widget_set_visible (GTK_WIDGET (page_child_rules), TRUE); -// gtk_stack_set_visible_child (GTK_STACK (stack_SRD), GTK_WIDGET (page_child_space)); -// gtk_stack_set_visible_child (GTK_STACK (stack_SRD), GTK_WIDGET (page_child_rules)); + // gtk_stack_set_visible_child (GTK_STACK (stack_SRD), GTK_STACK_PAGE (page_child_space)); + // printf("gtk_stack_get_child = %s\n", gtk_stack_page_get_name (GTK_STACK_PAGE (gtk_stack_get_visible_child (GTK_STACK (stack_SRD))))); + // gtk_stack_page_get_name (GTK_STACK_PAGE (gtk_stack_get_visible_child (GTK_STACK (stack_SRD))))); gtk_header_bar_pack_start (GTK_HEADER_BAR (header_bar), GTK_WIDGET (btt_XOR_EXEC_EDIT)); gtk_header_bar_pack_start (GTK_HEADER_BAR (header_bar), GTK_WIDGET (any_Label)); gtk_header_bar_pack_start (GTK_HEADER_BAR (header_bar), GTK_WIDGET (switcher_SRD)); - gtk_window_set_child (main_window, GTK_WIDGET (get_STATE_VIEW_box())); +// gtk_window_set_child (main_window, GTK_WIDGET (get_STATE_VIEW_box())); } void window_main_child (GtkWindow *main_window, int selected_page){