Stop gtk_dialog from auto-closing
- From: Russell Shaw <rjshaw iprimus com au>
- To: gtk-app-devel-list gnome org
- Subject: Stop gtk_dialog from auto-closing
- Date: Wed, 22 Oct 2003 14:17:06 +1000
Hi,
I made a dialog with OK, Apply, and Cancel buttons:
void
dialog_bg(ObjClass *obj)
{
GtkWidget* dialog=gtk_dialog_new_with_buttons("Grid Settings",NULL,
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK,GTK_RESPONSE_OK,
GTK_STOCK_APPLY,GTK_RESPONSE_APPLY,
GTK_STOCK_CANCEL,GTK_RESPONSE_CANCEL,
NULL);
gtk_widget_show_all(dialog);
g_signal_connect(G_OBJECT(grid),"expose_event",G_CALLBACK(expose_event_callback),(gpointer)obj);
g_signal_connect(G_OBJECT(dialog),"response",G_CALLBACK(resp_cb),NULL);
gint resp=gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
}
When i click the Apply button, how do you stop the dialog from closing?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]