ToshioCP / Gtk4-tutorial

GTK 4 tutorial for beginners
https://toshiocp.github.io/Gtk4-tutorial/
572 stars 50 forks source link

Fullscreen signal #54

Open rigault opened 3 months ago

rigault commented 3 months ago

Hello I am loooking for the signal associated to fullscreen end back fullscreen. I imagine something like : g_signal_connect(window, "????", G_CALLBACK(on_fullscreen_notify), NULL);

In order to make some update in "on_fullscreen_notify" callback function.

Thanks René rene.rigault@wanadoo.fr

ToshioCP commented 3 months ago

Hello, Rene.

Since GtkWindow has fullscreened property, which tells the window is fullscreen or not, you can get the change of the property value through notify signal. Notify signal is defined on GObject, which is the ancester of GtkWindow. See GObject notify signal for further information. GObject tutorial is also useful to know notify signal.

Toshio Sekiya