I need to make a window resizable, but without the top bar, in Gtk4. Is it possible?
(it is for a Guake-style terminal. I’ve been able to do it with Gtk3, but not with Gtk4).
I need to make a window resizable, but without the top bar, in Gtk4. Is it possible?
(it is for a Guake-style terminal. I’ve been able to do it with Gtk3, but not with Gtk4).
Hi,
Do you use libadwaita, or Gtk only?
If libadwaita, you can pack a Adw.ToolbarView in a Adw.Window , it has no top bar unless you add one.
If Gtk-only, I’m not sure how to do it… probably adding a GtkHeaderbar then call set_visible(False)
on it could do the trick?
I’m not using libadwaita, but the idea of putting a HeaderBar and making it invisible could work. I’ll try it. Thanks!
A trick I learned from Firefox is to just set an empty gtkfixed as titlebar. Tested now in python too and it seems to do what you want.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.