From bb8fa442a79f876f244fed0061df8c511e9bab36 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Sun, 28 Apr 2024 09:14:08 +0200 Subject: [PATCH] about the GtkStackPage enigma --- cold.c | 4 ---- cold.h | 1 - exec.o | Bin 27920 -> 27776 bytes hot.h | 37 +++++++++++++++++-------------------- 4 files changed, 17 insertions(+), 25 deletions(-) diff --git a/cold.c b/cold.c index 0ccb968..d3d05ca 100644 --- a/cold.c +++ b/cold.c @@ -18,10 +18,6 @@ void window_bar(GtkWindow *window, char *title){ gtk_window_set_titlebar (window, titlebar); // header_bar } -void window_grid(GtkWindow *window){ - GtkWidget *grid = gtk_grid_new(); - gtk_window_set_child (window, grid); -} /*----------------------------------------------------------------------------*/ diff --git a/cold.h b/cold.h index 99bb475..89737f9 100644 --- a/cold.h +++ b/cold.h @@ -5,5 +5,4 @@ void print_text(GtkWidget *widget, gpointer data); void click_print_do (GtkWindow *window, GtkWidget *grid, char *label, char *text, int x, int y, int w, int h); void window_bar(GtkWindow *window, char *title); -void window_grid(GtkWindow *window); diff --git a/exec.o b/exec.o index d40bad1e0ba497086c3bbd903dd3a799ff7042cf..b1ef0dadb82bb64bcc691feac5870dcb480cf16c 100755 GIT binary patch delta 7129 zcmZ8m2UHV5w@wIzD!mu!(k1jr@4bTxD82VCMIrPK0s*85(iD(RK#FwfAXPd96jY*g zkX~M*|Nq`OZ<5(N_xrxNcXoEq?wQ%tC1BVhFqIn!NaI-}xW)neE!Q}3a^QV@X{>*) zG(rQY2E^C?=K-`4IarQZaBf^$xIUN`Zh}h-)PMtVXn>F5);NMdx4-Q`%n{y=V+HJo zvw{VI^>72Q8gK?KghuPY5ICtTHhdGT44-tthGXMU!sXG?QWde`qUg34?jYP0j{)1! z$Jq`J#G{1k;Ss=}X^_Bg)bZeKYMdYs`vADN#$9|zKUYgHYY%%n_5ZmS_fm zL4EzKZ84mqy``_cpQVSjyFFZ5jSWtV4@G$6htaYaLgWEP>XF-cTM9R~w<ctYyKSw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jEGLyOrPCMDU@rUEsZ?SN06v`a~eDHzL81`J9|3*z|+U|4cyT6u8iYmTWk|Ub36uPfS^WrZ5J%hz&_DeI+sje6&~5^lllvmM;SbOLMbR6&uO5! z{cTmqgHVb%;9yt_BRA^*p>1`p6(%{RlssM znHVjTwn~BT^#NpDQI2|ISRu{eRLK3!r)@{sHcpp*FZP#I7$`2xi>FRUZL;^{wdba` zUt)xzp@dX}m^jG`=IQ>bUYiNE$K{jjf$sa10uy<(ScCCQxCtau;=zvW`eWxmwQ4VX zbPhLk*3+J`vqAha)U2;P&@bMVuhTlwL}o<3APCk(vQk>T}F3OlYH@SJ*NGnqS{!U-Jw6~ z?&a5~uyb)ufmJ1ORNbYw1g=3dCF^}NlKfMLE-UG-kAo4@B<<$*@5#S1OX5KfkOQMpYDg;e+O=a+uP!Uk(fe9QBo)${I3M~8(_{c z7Wa>zlPC=c_Rk4|{f&W~8w;JJ@E|0b|EMWu#YGBY`#<&w!{sUkp23*8DnOP^|0&2Z z_gy(KU9L>vL(HtJ0=N#t?4|&bw*41=21^$i6c2fg;VOHFvAX%#aB5oKicPTs; KJB+zI-~R!(20oww diff --git a/hot.h b/hot.h index 8bdd178..a36a9c4 100644 --- a/hot.h +++ b/hot.h @@ -5,44 +5,41 @@ 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,2); - + 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,2); GtkWidget *switcher = gtk_stack_switcher_new(); // GtkWidget *sidebar = gtk_stack_sidebar_new(); - GtkStack *stack = GTK_STACK (gtk_stack_new()); + gtk_grid_attach (GTK_GRID (grid), switcher, 0, 2, 2, 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 *page_0 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); GtkWidget *page_1 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); - GtkWidget *box_1 = gtk_box_new (0, 6); // 6 = spacing - - window_bar (window, "window"); - gtk_window_set_child (window, grid); - gtk_stack_add_titled (stack, page_0, "n°0", "A"); gtk_stack_add_titled (stack, page_1, "n°1", "B"); + + GtkWidget *box_1 = gtk_box_new (0, 6); // 6 = spacing + GtkStackPage *page_2 = gtk_stack_add_titled (stack, box_1, "any name", "C"); gtk_stack_page_set_name (page_2, "n°2"); -// gtk_grid_attach (GTK_GRID (grid_1), button_5, 0, 0, 1, 1); - - gtk_orientable_set_orientation (GTK_ORIENTABLE (switcher), GTK_ORIENTATION_VERTICAL); - gtk_orientable_set_orientation (GTK_ORIENTABLE (switcher), GTK_ORIENTATION_HORIZONTAL); - - gtk_stack_switcher_set_stack (GTK_STACK_SWITCHER (switcher), stack); -// gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), stack); + printf("selected page name is [%s] (how do I get its title ?)\n", + gtk_stack_get_visible_child_name (stack)); GtkSelectionModel *stack_selection_model = gtk_stack_get_pages (stack); gtk_selection_model_select_item (stack_selection_model, 2, 1); - printf("selected page name is [%s] (how do I get its title ?)\n", - gtk_stack_get_visible_child_name (stack)); // gtk_stack_set_transition_type (GTK_STACK (stack), GTK_STACK_TRANSITION_TYPE_CROSSFADE); - gtk_grid_attach (GTK_GRID (grid), switcher, 0, 2, 2, 1); gtk_window_present (GTK_WINDOW (window)); }