How to minimize window in Gtk3

How do you minimize an open window programmatically in Gtk3? I mean the effect of clicking the - button. Something similar to maximize and unmaximize/unfullscreen. I don’t see minimize in the docs. I am using GJS.

In GTK3, you have Gtk.Window.iconify(). It was renamed to Gtk.Window.minimize() in GTK4.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.