>gtk_dialog_run(GTK_DIALOG(gtk_message_dialog_new(GTK_WINDOW(configure_window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "Message"))); > > It's ok, but the when the button is clicked, the window doesn't closes. >
You have to destroy the widget explicitly (after getting the response).... you can do like this: widget = create_message_box () gtk_dialod_run (widget) gtk_widget_destroy (widget) ///// See http://developer.gnome.org/doc/API/2.0/gtk/GtkDialog.html#gtk-dialog-run for more details.. Regards, Santhosh. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list