/**
- * \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.
*
*/
#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;
+
namespace {
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();
}
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();
}
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();
}
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())
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);