Destroying window


I have the main application window and then I create another window
(toplevel).In this window I have some widgets - labels, entries and buttons.
I need to use one of these buttons as a "cancel" button, so it destroys
the window and all widgets in it.
I tried:

g_signal_connect(G_OBJECT(cancel_button), "clicked", gtk_widget_destroy,
but it always destroys only that button :-(

Can you help me please ?


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