selected page name is [new name]
This commit is contained in:
parent
0ab7a233db
commit
d767873533
4
main.c
4
main.c
|
@ -57,10 +57,10 @@ static void activate (GtkApplication *app, gpointer user_data) {
|
||||||
// gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), stack);
|
// gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), stack);
|
||||||
|
|
||||||
// gtk_stack_page_get_child (GTK_STACK_PAGE(page_1));
|
// 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);
|
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");
|
// gtk_stack_set_visible_child_name (stack, "n°3");
|
||||||
|
|
||||||
printf("selected page name is [%s] (can't get its title !)\n",
|
printf("selected page name is [%s] (can't get its title !)\n",
|
||||||
|
|
Loading…
Reference in New Issue