Re: gtk message dialog doesn't close
- From: Santhosh <santhoshmani gmail com>
- To: Alexandre <alpebu yahoo com br>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk message dialog doesn't close
- Date: Thu, 23 Feb 2006 12:57:53 +0530
>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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]