GtkWidget *window, *text, *ok;  window = gtk_dialog_new(); text = gtk_label_new(msg); gtk_misc_set_alignment(GTK_MISC(text), 0.0, 0.0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox), text, FALSE, FALSE, 0); gtk_widget_show(text); gtk_label_set_line_wrap(GTK_LABEL(text), TRUE); ok = gtk_button_new_with_label("OK"); gtk_box_pack_end(GTK_BOX(GTK_DIALOG(window)->action_area), ok, FALSE, FALSE, 0); gtk_widget_show(ok); GTK_WIDGET_SET_FLAGS(ok, GTK_CAN_DEFAULT); gtk_window_set_default(GTK_WINDOW(window), ok); gtk_signal_connect(GTK_OBJECT(ok), "clicked", GTK_SIGNAL_FUNC(errmsg_button_clicked), window); gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(window_destroy), NULL); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_widget_show(window); gtk_main();
void dlg_error_msg(void *dlg, char *msg){    struct dlgparam *dp = (struct dlgparam *)dlg;    /* FIXME */}