Re: GtkWindow



On Wed, 2004-06-16 at 10:52, Johnny wrote:
Hi, can I create a window without the buttons on the title border? I have tried
creating the window with   
 gtk_window_new(GTK_WINDOW_DIALOG)
but there is the close button(the button whit x).
If is impossible to create a window without button I want that when the user
click on close button of the window nothing happens.
There is gtk_window_set_decorated , and depending on what sort of
window you create, you could change it's type with
gtk_window_set_type_hint as well.

If you want clicking the close button to do nothing,
You install a handler for the "delete-event" on the
window, and return TRUE. (or pop up a dialog and ask
the user if he really wants to quit and act accordingly)





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