Re: Destroying a Dialog Box....
- From: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-list gnome org
- Subject: Re: Destroying a Dialog Box....
- Date: Mon, 01 Dec 2003 14:00:58 +1100
Hari Prasad Nadig wrote:
within a dialog box called 'popup',
I've this cancel button in the action area..
button = gtk_button_new_with_label ("Cancel");
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (close_dialog), (gpointer) popup);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (popup)->action_area),
button, TRUE, TRUE, 0);
gtk_widget_show (button);
and in the callback, I'm doing this..
static void close_dialog( GtkWidget *widget,
GtkWidget *parent ){
gtk_widget_destroy(parent);
}
Basically, I'm trying to put a cancel button which closes the dialog..
Is this a proper method or is there any 'proper' way of doing this?
It depends if you want it to be modal or non-modal, and if you
want to extract any user-entered data from the popup.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]