]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/Alert_pimpl.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / Alert_pimpl.C
index dfec643dd6f0bb710d2d761bb0d6a62b9b5977ec..00f9c433e2c63d3e4329387ce590f8312b235149 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file Alert_pimpl.C
+ * \file gtk/Alert_pimpl.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -9,11 +9,17 @@
  */
 
 #include <config.h>
-#include <gtkmm.h>
+
+// Too hard to make concept checks work with this file
+#ifdef _GLIBCPP_CONCEPT_CHECKS
+#undef _GLIBCPP_CONCEPT_CHECKS
+#endif
 
 #include "frontends/Alert.h"
 #include "frontends/Alert_pimpl.h"
 
+#include <gtkmm.h>
+
 using std::string;
 
 
@@ -37,8 +43,8 @@ string translateShortcut(string const & str)
 void warning_pimpl(string const &, string const & message)
 {
        Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
-                              Gtk::MESSAGE_WARNING,
-                              Gtk::BUTTONS_CLOSE, true, true);
+                              true, Gtk::MESSAGE_WARNING,
+                              Gtk::BUTTONS_CLOSE, true);
        dlg.run();
 }
 
@@ -46,8 +52,8 @@ void warning_pimpl(string const &, string const & message)
 void error_pimpl(string const &, string const & message)
 {
        Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
-                              Gtk::MESSAGE_ERROR,
-                              Gtk::BUTTONS_CLOSE, true, true);
+                              true, Gtk::MESSAGE_ERROR,
+                              Gtk::BUTTONS_CLOSE, true);
        dlg.run();
 }
 
@@ -55,8 +61,8 @@ void error_pimpl(string const &, string const & message)
 void information_pimpl(string const &, string const & message)
 {
        Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
-                              Gtk::MESSAGE_INFO,
-                              Gtk::BUTTONS_CLOSE, true, true);
+                              true, Gtk::MESSAGE_INFO,
+                              Gtk::BUTTONS_CLOSE, true);
        dlg.run();
 }
 
@@ -71,8 +77,8 @@ int prompt_pimpl(string const &, string const & question,
        if (!b3.empty())
                gb3 = Glib::locale_to_utf8(translateShortcut(b3));
        Gtk::MessageDialog dlg(Glib::locale_to_utf8(question),
-                              Gtk::MESSAGE_QUESTION,
-                              Gtk::BUTTONS_NONE, true, true);
+                              true, Gtk::MESSAGE_QUESTION,
+                              Gtk::BUTTONS_NONE, true);
        dlg.add_button(gb1, 0);
        dlg.add_button(gb2, 1);
        if (!b3.empty())
@@ -86,9 +92,9 @@ std::pair<bool, string> const askForText_pimpl(string const & msg,
                                               string const & dflt)
 {
        Gtk::MessageDialog dlg(Glib::locale_to_utf8(msg),
-                              Gtk::MESSAGE_QUESTION,
+                              true, Gtk::MESSAGE_QUESTION,
                               Gtk::BUTTONS_OK_CANCEL,
-                              true, true);
+                              true);
        Gtk::Entry entry;
        entry.set_text(Glib::locale_to_utf8(dflt));
        entry.set_position(-1);