]> Dogcows Code - chaz/yoink/blobdiff - src/moof/modal_dialog.hh
pkg-config libs parsing bugfix
[chaz/yoink] / src / moof / modal_dialog.hh
index 65bc61f79e54b286c3a511899888adaaa3ef2469..c5139f27e06bb7dd95ae9c9a2915adcd5a897180 100644 (file)
  * supported, but only one can be used as determined at build time.
  */
 
-#include <string>
+#include "../config.h"
 
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include <string>
 
 #if defined(_WIN32)
 #include <windows.h>
@@ -143,7 +141,7 @@ struct modal_dialog
                gtk_window_set_title(GTK_WINDOW(dialog), title.c_str());
 
                std::string icon_path(PACKAGE".png");
-               if (resource::find_path(icon_path))
+               if (resource::find(icon_path))
                {
                        GdkPixbuf* iconPixbuf = gdk_pixbuf_new_from_file(icon_path.c_str(),
                                                                                                                         NULL);
@@ -183,7 +181,7 @@ struct modal_dialog
                dialog.setStandardButtons(QMessageBox::Close);
 
                std::string icon_path(PACKAGE".png");
-               if (resource::find_path(icon_path))
+               if (resource::find(icon_path))
                {
                        QIcon icon(icon_path.c_str());
                        dialog.setWindowIcon(icon);
This page took 0.017996 seconds and 4 git commands to generate.