gtk_message_dialog problem

From: "Jordan Walsh" <jordanwalsh gmail com>

To: gtk-app-devel-list gnome org

Subject: gtk_message_dialog problem

Date: Sun, 4 Nov 2007 01:28:51 -0400

Hi all, whenever I create a gtk_message_dialog and run it, it locks my
entire application requiring a kill. This is the code I am using which
basically mimics the example in the api documentation.
void error_dialog(gpointer info)
{
GtkWidget* dialog;
dialog = gtk_message_dialog_new (GTK_WINDOW(window),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
"Error: %s",info
);
g_message("destroying");
gtk_widget_destroy(dialog);
}
The "destroying" message was a test to see where it was locking. It does
print the message when the button is clicked but the window does not
destroy.
--
Jordan Walsh
(910) 639-0111