Mercurial > dwindows
comparison gtk3/dw.c @ 2744:608796a91527
GTK3/4: Committing a fix from Mark Hessling for dw_listbox_set_text().
Not sure how this worked in the past, but hopefully this fixes it!
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 20 Dec 2021 14:23:24 +0000 |
parents | 3b3be9f7f452 |
children | 1f2c4f7aca4b |
comparison
equal
deleted
inserted
replaced
2743:a31c2e3a781e | 2744:608796a91527 |
---|---|
10826 | 10826 |
10827 /* Get the nth child at the top level */ | 10827 /* Get the nth child at the top level */ |
10828 if (gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(store), &iter, NULL, index)) | 10828 if (gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(store), &iter, NULL, index)) |
10829 { | 10829 { |
10830 /* Update the text */ | 10830 /* Update the text */ |
10831 gtk_list_store_set(store, &iter, buffer); | 10831 gtk_list_store_set(store, &iter, 0, buffer, -1); |
10832 } | 10832 } |
10833 } | 10833 } |
10834 } | 10834 } |
10835 DW_MUTEX_UNLOCK; | 10835 DW_MUTEX_UNLOCK; |
10836 } | 10836 } |