* supported, but only one can be used as determined at build time.
*/
-#include "../config.h"
+#include "config.h"
#include <string>
#if defined(_WIN32)
#include <windows.h>
-#elif USE_GTK
+#elif WITH_GTK
#include <gtk/gtk.h>
-#elif USE_QT4
+#elif WITH_QT4
#include <QApplication>
#include <QIcon>
#include <QMessageBox>
MessageBox(0, (text1 + "\n" + text2).c_str(), title.c_str(),
MB_OK | icon_type);
-#elif USE_GTK
+#elif WITH_GTK
int argc = 0;
char** argv;
"%s", text2.c_str());
gtk_window_set_title(GTK_WINDOW(dialog), title.c_str());
- std::string icon_path(PACKAGE".png");
- if (resource::find(icon_path))
+ std::string icon_path = resource::find_file(PACKAGE".png");
+ if (!icon_path.empty())
{
GdkPixbuf* iconPixbuf = gdk_pixbuf_new_from_file(icon_path.c_str(),
NULL);
// FIXME - this doesn't seem to actually remove the window from the
// screen when it closes
-#elif USE_QT4
+#elif WITH_QT4
int argc = 0;
char** argv;
dialog.setInformativeText(text2.c_str());
dialog.setStandardButtons(QMessageBox::Close);
- std::string icon_path(PACKAGE".png");
- if (resource::find(icon_path))
+ std::string icon_path = resource::find_file(PACKAGE".png");
+ if (!icon_path.empty())
{
QIcon icon(icon_path.c_str());
dialog.setWindowIcon(icon);