gtk_multi_selection_new < this one works fine too: use ctrl (& see line 60 in the sand_box)

This commit is contained in:
Jean Sirmai 2024-01-22 00:53:47 +01:00
parent aff067662d
commit 56b592e075
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ static void and_now_let_s_climb_that_tree (GtkWidget *in_that_box)
if (1) printf("The item n°%d of my array is the string \"%s\"\n",\ if (1) printf("The item n°%d of my array is the string \"%s\"\n",\
selected, gtk_string_list_get_string (my_string_list, selected)); selected, gtk_string_list_get_string (my_string_list, selected));
GtkNoSelection *my_selection = gtk_single_selection_new (G_LIST_MODEL (my_string_list)); GtkNoSelection *my_selection = gtk_multi_selection_new (G_LIST_MODEL (my_string_list));
GtkListItemFactory *my_factory = gtk_signal_list_item_factory_new (); GtkListItemFactory *my_factory = gtk_signal_list_item_factory_new ();
g_signal_connect (my_factory, "setup", G_CALLBACK (setup_cb), NULL); g_signal_connect (my_factory, "setup", G_CALLBACK (setup_cb), NULL);