Re: Disable delete event




Anders Melchiorsen <and@kampsax.dtu.dk> writes:

> I have a window that I would like to not react to user requests for
> closing the window. Right now I am ignoring the delete event which
> works fine - but how do I tell the window manager that it should not
> make a close button (xdvi does this, for example) ?
> 
> I could not find any gtk+ function to do this; will I have to make X
> calls to do it?

You can (sort of) do this with MWM hints. Whether the hints will
be obeyed or not depends on the window manager.

 gdk_window_set_decorations()
 gdk_window_set_functions()

Are the functions that control this. See gtk/testgtk.c for an example.

                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]