selected page name is [new name]

This commit is contained in:
Jean Sirmai 2024-04-26 22:17:40 +02:00
parent 0ab7a233db
commit d767873533
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 2 additions and 2 deletions

BIN
exec.o

Binary file not shown.

4
main.c
View File

@ -57,10 +57,10 @@ static void activate (GtkApplication *app, gpointer user_data) {
// gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), stack);
// gtk_stack_page_get_child (GTK_STACK_PAGE(page_1));
// gtk_stack_page_set_name (GTK_STACK_PAGE(page_1), "new name");
gtk_stack_page_set_name (GTK_STACK_PAGE(page_3), "new name");
GtkSelectionModel *stack_selection_model = gtk_stack_get_pages (stack);
gtk_selection_model_select_item (stack_selection_model, 0, 1);
gtk_selection_model_select_item (stack_selection_model, 2, 1);
// gtk_stack_set_visible_child_name (stack, "n°3");
printf("selected page name is [%s] (can't get its title !)\n",