void warning_pimpl(string const & title, string const & message)
{
void warning_pimpl(string const & title, string const & message)
{
- Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
+ Gtk::MessageDialog dlg(Glib::Markup::escape_text(Glib::locale_to_utf8(message)),
true, Gtk::MESSAGE_WARNING,
Gtk::BUTTONS_CLOSE, true);
dlg.set_title(title);
true, Gtk::MESSAGE_WARNING,
Gtk::BUTTONS_CLOSE, true);
dlg.set_title(title);
void error_pimpl(string const & title, string const & message)
{
void error_pimpl(string const & title, string const & message)
{
- Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
+ Gtk::MessageDialog dlg(Glib::Markup::escape_text(Glib::locale_to_utf8(message)),
true, Gtk::MESSAGE_ERROR,
Gtk::BUTTONS_CLOSE, true);
dlg.set_title(title);
true, Gtk::MESSAGE_ERROR,
Gtk::BUTTONS_CLOSE, true);
dlg.set_title(title);
void information_pimpl(string const & title, string const & message)
{
void information_pimpl(string const & title, string const & message)
{
- Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
+ Gtk::MessageDialog dlg(Glib::Markup::escape_text(Glib::locale_to_utf8(message)),
true, Gtk::MESSAGE_INFO,
Gtk::BUTTONS_CLOSE, true);
dlg.set_title(title);
true, Gtk::MESSAGE_INFO,
Gtk::BUTTONS_CLOSE, true);
dlg.set_title(title);
Glib::ustring gb3;
if (!b3.empty())
gb3 = Glib::locale_to_utf8(translateShortcut(b3));
Glib::ustring gb3;
if (!b3.empty())
gb3 = Glib::locale_to_utf8(translateShortcut(b3));
- Gtk::MessageDialog dlg(Glib::locale_to_utf8(question),
+ Gtk::MessageDialog dlg(Glib::Markup::escape_text(Glib::locale_to_utf8(question)),
true, Gtk::MESSAGE_QUESTION,
Gtk::BUTTONS_NONE, true);
dlg.set_title(title);
true, Gtk::MESSAGE_QUESTION,
Gtk::BUTTONS_NONE, true);
dlg.set_title(title);
std::pair<bool, string> const askForText_pimpl(string const & msg,
string const & dflt)
{
std::pair<bool, string> const askForText_pimpl(string const & msg,
string const & dflt)
{
- Gtk::MessageDialog dlg(Glib::locale_to_utf8(msg),
+ Gtk::MessageDialog dlg(Glib::Markup::escape_text(Glib::locale_to_utf8(msg)),
true, Gtk::MESSAGE_QUESTION,
Gtk::BUTTONS_OK_CANCEL,
true);
true, Gtk::MESSAGE_QUESTION,
Gtk::BUTTONS_OK_CANCEL,
true);
+2006-06-06 John Spray <spray@lyx.org>
+ * Alert_pimpl.C: escape special characters in strings before
+ passing them to Gtk::Dialog as markup
+
2006-04-19 Bernhard Reiter <ockham@gmx.net>
* GExternal.[Ch], glade/external.glade: implement external dialog
2006-04-19 Bernhard Reiter <ockham@gmx.net>
* GExternal.[Ch], glade/external.glade: implement external dialog