0

Is it possible to use GTK/GDK/X11 to write a function which on call, hides the min/max/close buttons, and on call again I can show them again?

I found way to disable them but not remove them. Any help would be awesome. Thanks

Noitidart
  • 35,443
  • 37
  • 154
  • 323

1 Answers1

1

Yes. Use gtk_window_set_titlebar() to create a custom titlebar to replace the default titlebar. Create your own minimize, maximize, and close buttons for the titlebar. Then you can hide and show them as needed.

You can't do that with the default titlebar, as it is not under GTK's control, nor that of X; it's controlled by the window manager.

ptomato
  • 56,175
  • 13
  • 112
  • 165