I am currently experimenting using OCaml and GTK (using lablgtk bindings). However, the documentation is not the best, and although I can decide how to use most of the features, I am stuck with changing notebook pages (switching to another tab).
I found a function that I need to use , but I do not know how to use it. The documentation seems to suggest that it is in the GtkPackProps.Notebook submodule, but I don't know what to call it.
In addition, this function has a type signature different from the one I saw before.
val switch_page : ([> `notebook ], Gpointer.boxed option -> int -> unit) GtkSignal.t
I think it returns GtkSignal.t , but I donโt know how to pass the first parameter to the function (the whole part is in brackets).
Does anyone have a code example showing how to change a laptop page, or maybe give me some tips on how to do this?
a_m0d source share