I am wondering how to edit the "close" button (or the minimize/maximize buttons) in the top right corner of a window that was created with the GTK library. I am trying to remove the user's ability to destroy this window and only allow the top level window to destroy it so I want the X button (close window) in the top right corner to only hide the window instead of close it - still allowing it to run in the background.
I am somewhat new to gtk and I have gone through a few beginner tutorials in terms of creating windows and adding buttons but nothing very advanced.
I am assuming this can be accomplished by using a gtk_window_hide call on the window in place of the current functionality of the X button but I am not sure where to use it because the functions for the default buttons dont appear to be easily accessible.