WIP: pas mieux...
This commit is contained in:
parent
5c5bd709d9
commit
e93358f6dc
Binary file not shown.
After Width: | Height: | Size: 130 KiB |
Binary file not shown.
After Width: | Height: | Size: 551 KiB |
19
contain.c
19
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){
|
||||
|
|
Loading…
Reference in New Issue