Re: Destroying window
- From: Vincent Torri <torri math u-strasbg fr>
- To: gtk-ml brazina net
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Destroying window
- Date: Tue, 20 Apr 2004 17:11:06 +0200 (MEST)
On Tue, 20 Apr 2004 gtk-ml brazina net wrote:
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 :-(
g_signal_connect gives as first arg for gtk_widget_destroy cancel_button
(look at the api)
you have to use g_signal_connect_swapped
regards
Vincent TORRI
Can you help me please ?
thx
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]