Implement GtkSelectionModel for GtkNotebookPages
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 16 May 2023 17:51:07 +0000 (18:51 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 16 May 2023 20:59:05 +0000 (16:59 -0400)
commit0bbe68db0be9228ba996906e9d746488231cb1d2
treedf69b1d0207cb3ac23de96879807c7fae1dbffca
parentb2a3a5e226fa45d176d364f2f5bd4902709db037
Implement GtkSelectionModel for GtkNotebookPages

The documentation says that the model returned by
gtk_notebook_get_pages() implements the GtkSelectionModel interface, but
checking the history confirms this is a lie.

Instead of fixing the documentation, we can easily make it true, and
reduce the differences between GtkNotebook and GtkStack.

Fixes: #5837
gtk/gtknotebook.c