mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Make GTK alert dialogs use the titles they're passed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10763 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9c477c6427
commit
8d74dd26d8
@ -43,34 +43,37 @@ string translateShortcut(string const & str)
|
||||
}
|
||||
|
||||
|
||||
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)
|
||||
{
|
||||
@ -82,6 +85,7 @@ int prompt_pimpl(string const &, string const & question,
|
||||
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())
|
||||
|
@ -4,6 +4,7 @@
|
||||
* 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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user