Destroying window



Hello,

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,
another_window);
but it always destroys only that button :-(

Can you help me please ?

thx





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