}
-void warning_pimpl(string const &, string const & message)
+void warning_pimpl(string const & title, string const & message)
{
Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
true, Gtk::MESSAGE_WARNING,
Gtk::BUTTONS_CLOSE, true);
+ dlg.set_title(title);
dlg.run();
}
-void error_pimpl(string const &, string const & message)
+void error_pimpl(string const & title, string const & message)
{
Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
true, Gtk::MESSAGE_ERROR,
Gtk::BUTTONS_CLOSE, true);
+ dlg.set_title(title);
dlg.run();
}
-void information_pimpl(string const &, string const & message)
+void information_pimpl(string const & title, string const & message)
{
Gtk::MessageDialog dlg(Glib::locale_to_utf8(message),
true, Gtk::MESSAGE_INFO,
Gtk::BUTTONS_CLOSE, true);
+ dlg.set_title(title);
dlg.run();
}
-int prompt_pimpl(string const &, string const & question,
+int prompt_pimpl(string const & title, string const & question,
int defaultButton, int /*escapeButton*/,
string const & b1, string const & b2, string const & b3)
{
Gtk::MessageDialog dlg(Glib::locale_to_utf8(question),
true, Gtk::MESSAGE_QUESTION,
Gtk::BUTTONS_NONE, true);
+ dlg.set_title(title);
dlg.add_button(gb1, 0);
dlg.add_button(gb2, 1);
if (!b3.empty())
* Dialogs.C, Makefile.am, glade/Makefile.am: Use GBibItem
* GDocument.[Ch], glade/document.glade: Add more functionality
to the still-incomplete document dialog.
+ * Alert_pimpl.C: Make generic dialogs use the titles LyX gives them
2006-01-20 Bernhard Reiter <ockham@gmx.net>