break;
}
-#if USE_GTK
+#if defined(_WIN32) || defined(__WIN32__)
+
+ int iconType;
+ switch (type)
+ {
+ case WARNING:
+ iconType = MB_ICONWARNING;
+ break;
+ case CRITICAL:
+ iconType = MB_ICONERROR;
+ break;
+ default:
+ iconType = MB_ICONINFORMATION;
+ break;
+ }
+
+ MessageBox(0, (text1 + "\n" + text2).c_str(), title.c_str(),
+ MB_OK | iconType);
+
+#elif USE_GTK
int argc = 0;
char** argv;
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
// FIXME - this doesn't seem to actually remove the window from the
- // screen when it closes, not sure why...
+ // screen when it closes
#elif USE_QT4