[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Button destroys itself
- From: "Scott." <scottf scs unr edu>
- To: gtk-app-devel-list redhat com
- Subject: Button destroys itself
- Date: Tue, 10 Nov 1998 18:24:28 -0800 (PST)
i have a dialog named (of all things) "dialog" which has several radio
buttons, sliders, and text entries... at the bottom of this dialog, in the
action area, there are 2 buttons: save and cancel
when trying to get the cancel button to destroy the current dialog with
the following code:
dialog = gtk_dialog_new();
gtk_widget_show(dialog);
button = gtk_button_new_with_label("Cancel");
gtk_widget_show(button);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC(gtk_widget_destroy),
GTK_OBJECT(dialog));
the cancel button itself is what gets destroyed, not the dialog (kinda
weird)... after this statement, i proceed to fill the vbox with the other
widgets (this is just for info)..
why is the cancel button being destroyed and not the dialog?
thanx..:)
-=Scott
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]