]> git.lyx.org Git - features.git/commitdiff
Make GTK alert dialogs use the titles they're passed
authorJohn Spray <spray@lyx.org>
Sat, 21 Jan 2006 20:43:07 +0000 (20:43 +0000)
committerJohn Spray <spray@lyx.org>
Sat, 21 Jan 2006 20:43:07 +0000 (20:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10763 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/Alert_pimpl.C
src/frontends/gtk/ChangeLog

index dba5fbe7a8f88af7f2fc86070d16b223c5d079a9..3233be9c9b5e38d7e3118028ae9280acc3347d50 100644 (file)
@@ -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())
index 092567ab951014b195c249314bd3eb5691060ebf..52c558f66f68e3d9057d15ca308deeae153e253a 100644 (file)
@@ -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>