From 92cc46c9ac860fc5936e570022f5c7046b9e1582 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Mon, 29 Apr 2024 06:03:00 +0200 Subject: [PATCH] problem solved using gtk_notebook --- cold.c | 2 ++ exec.o | Bin 28552 -> 27864 bytes hot.h | 51 +-------------------------- warm.c | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 109 insertions(+), 50 deletions(-) diff --git a/cold.c b/cold.c index f3b765d..4562d78 100644 --- a/cold.c +++ b/cold.c @@ -68,3 +68,5 @@ void window_bar(GtkWindow *window, char *title){ // how do I attach a widget to a page ? +// https://stackoverflow.com/questions/20122232/gtklistc-code-how-to-get-the-selection-of-a-gtklist < TO CHECK + diff --git a/exec.o b/exec.o index 839a8ee576a21419314fedc16e271c18ec1b6545..9a451356f0a55eb5d0ac92e29ae23f8a7a6c1100 100755 GIT binary patch delta 9738 zcmZvC2|SeF_y3H2?E98wtR*FrkbU0?k!0WZ>`Ou;L}TX>iBzbp*&<6amQZACA!N_K zWr>9OJfXP=7f&Pgl86O<53iZPYdrDgNBHtAR0a%4 zS>g70ITUZx!{>YW+#IjJh%am6%NzK-0k3%pm4W+UeJi{y4CRPmu=mga6#+OI5?IyX z0*1+Wl|8-u9qqil+^szwgJ917?$*w}t`63={{FW1E_m6)*3Qx6uk|n7*4x|B)4|%? z)){!O$w2|twDYc}+Pe_h+bu2Bvuj>yK!H6u1eecnNUjJBh~k|EiLS(iJ6RsN1abd;2)t8=|9b zYJnXZ2A{;dBfh(HnwWNQB=b85IGh{&Xl!n9P0SbyS4RQXsHX$7`2}#s;jN&-4UWPo z)q)CG9TNmN0RcKeSu?T?2|7UIF}j#JrCR8L*C9c>8@&D`1j_|s^DAIeTA22EHIOUS zL5@%ZP^6B0LhB9KCoRm|`IjJ|=?qk_9vpx!=BF-ZO%u~HzYj`H7a)BESV9fp)$Q}& zA+?++8q~Xk#bej+PyYk^*%rldjP*bO(-sxIVR;D1W; z|MXQCvwGZDXnfGK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-k8}$`a;sfaiC6MEjyz52;5Mm`2-@l=xg|c3@B`-@jJ_eW z>YMdof~)GSZ%t+F6i}R$LiK2M@)5>uJHm9l-i~Yvuh8IepRKY(*0fdpb=A-g&OR+< zd-Sd2%<#1ztv!KrJiJrryJ`|tfK)O)6XnzJ07h}r$L_T)_g!1>aw?U7V?sH$FhNW#vGVHdxxyeG zjkhZ6Q6<)QUTt1F%QU-Wd?IR(HSD=APrlmdyU+k157&^TB3MZ?+>Kkk8PV2pd6j&a zHz^eQ>W7qYKM#I62z|W+Q5GrqaZb%==NE7w$8`ce0z|sWAdc>Ri-2l36~?1m-mb%& zP$Obs$4#2?=rWl8aOVauf7Maa4B)*k!EwOhXN3kpBua*%{!m(fD3t{oP%@ObLn(MO zyoOT#=faqsj^F|OKnzfKk0qif0vg?=8INvUWd#qkB&5KOyENs|H7a;zE$?9fuK*%F zWDx&+Qwdais4#3F-sEmW-vNMRRP) #include +#include "cold.h" +void activate (GtkApplication *app, gpointer user_data) { + GtkWindow *window = GTK_WINDOW (gtk_application_window_new (app)); + window_bar (window, "window"); + GtkWidget *grid = gtk_grid_new(); + gtk_window_set_child (window, grid); + + click_print_do (NULL, grid, "(I)", "n°1\n", 0,0,1,1); + click_print_do (NULL, grid, "(II)", "n°2\n", 1,0,1,1); + click_print_do (window, grid, "Quit", "bye !\n", 2,0,1,1); + + GtkWidget *grid_2 = gtk_grid_new(); + GtkWidget* notebook = gtk_notebook_new (); + gtk_grid_attach (GTK_GRID (grid), notebook, 0, 3, 1, 1); + gtk_notebook_append_page (GTK_NOTEBOOK(notebook), grid_2, gtk_label_new ("hello !")); + gtk_notebook_append_page (GTK_NOTEBOOK(notebook), gtk_button_new_with_label ("me too !"), NULL); + gtk_grid_attach (GTK_GRID (grid_2), gtk_button_new_with_label ("here am I !"), 0, 0, 1, 1); + + GtkWidget *box_3 = gtk_box_new (0, 0); + gtk_box_append (GTK_BOX (box_3), gtk_button_new_with_label ("30")); + gtk_box_append (GTK_BOX (box_3), gtk_button_new_with_label ("31")); + gtk_grid_attach (GTK_GRID (grid), box_3, 0, 2, 1, 1); + + GtkWidget *grid_3 = gtk_grid_new(); + GtkWidget *hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); + GtkWidget *frame1 = gtk_frame_new ("hello ?"); + GtkWidget *frame2 = gtk_frame_new ("it's me !"); + gtk_frame_set_child ( GTK_FRAME(frame2), grid_3); + gtk_paned_set_start_child (GTK_PANED(hpaned), GTK_WIDGET (frame1)); + gtk_paned_set_end_child (GTK_PANED(hpaned), GTK_WIDGET (frame2)); + gtk_widget_set_size_request (hpaned, 400, 200); +// gtk_widget_set_size_request (frame1, 50, 100); < utile seulement pour la largeur min/max +// gtk_widget_set_size_request (frame2, 50, 100); + gtk_grid_attach (GTK_GRID (grid), hpaned, 0, 4, 3, 1); + gtk_grid_attach (GTK_GRID (grid_3), gtk_button_new_with_label ("in the right pane"), 0, 0, 1, 1); + + gtk_window_present (GTK_WINDOW (window)); +} + + + + + + + + + + + + +/* +static void activate_old (GtkApplication *app, gpointer user_data) { + GtkWindow *window = GTK_WINDOW (gtk_application_window_new (app)); + window_bar (window, "window"); + GtkWidget *grid = gtk_grid_new(); + gtk_window_set_child (window, grid); + + click_print_do (NULL, grid, "(I)", "n°1\n", 0,0,1,1); + click_print_do (NULL, grid, "(II)", "n°2\n", 1,0,1,1); + click_print_do (window, grid, "Quit", "bye !\n", 2,0,1,1); + + GtkWidget *switcher = gtk_stack_switcher_new(); +// GtkWidget *sidebar = gtk_stack_sidebar_new(); + gtk_grid_attach (GTK_GRID (grid), switcher, 0, 1, 3, 1); + gtk_orientable_set_orientation (GTK_ORIENTABLE (switcher), GTK_ORIENTATION_VERTICAL); + gtk_orientable_set_orientation (GTK_ORIENTABLE (switcher), GTK_ORIENTATION_HORIZONTAL); + GtkStack *stack = GTK_STACK (gtk_stack_new()); + gtk_stack_switcher_set_stack (GTK_STACK_SWITCHER (switcher), stack); +// gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), stack); + + GtkWidget *box_0 = gtk_box_new (0, 0); + GtkWidget *box_1 = gtk_box_new (0, 0); + GtkWidget *box_2 = gtk_box_new (0, 0); + gtk_stack_add_titled (stack, box_0, "n°0", "A"); + gtk_stack_add_titled (stack, box_1, "n°1", "B"); + gtk_stack_add_titled (stack, box_2, "n°2", "C"); + GtkSelectionModel *stack_selection_model = gtk_stack_get_pages (stack); + gtk_selection_model_select_item (stack_selection_model, 1, 1); + printf("selected page name is [%s] \n", gtk_stack_get_visible_child_name (stack)); + GtkWidget *grid_3 = gtk_grid_new(); + gtk_grid_attach (GTK_GRID (grid_3), gtk_button_new_with_label ("0,0 1,1"), 0, 0, 1, 1); + gtk_stack_add_child (stack, grid_3); +// gtk_stack_page_set_visible (GTK_STACK_PAGE(stack_selection_model_get_item()), TRUE); + + + GtkWidget *box_3 = gtk_box_new (0, 0); + gtk_box_append (GTK_BOX (box_3), gtk_button_new_with_label ("30")); + gtk_box_append (GTK_BOX (box_3), gtk_button_new_with_label ("31")); + gtk_grid_attach (GTK_GRID (grid), box_3, 0, 2, 1, 1); + + GtkWidget *grid_2 = gtk_grid_new(); + GtkWidget *hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); + GtkWidget *frame1 = gtk_frame_new ("hello ?"); + GtkWidget *frame2 = gtk_frame_new ("it's me !"); + gtk_frame_set_child ( GTK_FRAME(frame2), grid_2); + gtk_paned_set_start_child (GTK_PANED(hpaned), GTK_WIDGET (frame1)); + gtk_paned_set_end_child (GTK_PANED(hpaned), GTK_WIDGET (frame2)); + gtk_widget_set_size_request (hpaned, 400, 200); +// gtk_widget_set_size_request (frame1, 50, 100); < utile seulement pour la largeur min/max +// gtk_widget_set_size_request (frame2, 50, 100); + gtk_grid_attach (GTK_GRID (grid), hpaned, 0, 3, 3, 1); + gtk_grid_attach (GTK_GRID (grid_2), gtk_button_new_with_label ("in the right pane"), 0, 0, 1, 1); + + gtk_window_present (GTK_WINDOW (window)); +} +*/