compile with gtkmm 2.4
authorladanyi
Sun, 07 Aug 2005 16:35:15 +0000
changeset 1615b42385baaf3a
parent 1614 350c1d8bb7cc
child 1616 78704393218d
compile with gtkmm 2.4
gui/main_win.cc
     1.1 --- a/gui/main_win.cc	Sun Aug 07 14:17:11 2005 +0000
     1.2 +++ b/gui/main_win.cc	Sun Aug 07 16:35:15 2005 +0000
     1.3 @@ -137,9 +137,8 @@
     1.4  {
     1.5    if (mapstorage.modified)
     1.6    {
     1.7 -    Gtk::MessageDialog mdialog("", false, Gtk::MESSAGE_WARNING,
     1.8 -        Gtk::BUTTONS_NONE);
     1.9 -    mdialog.set_message("<b>Save changes before closing?</b>", true);
    1.10 +    Gtk::MessageDialog mdialog("<b>Save changes before closing?</b>", true,
    1.11 +        Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    1.12      mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
    1.13      mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    1.14      mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
    1.15 @@ -163,9 +162,8 @@
    1.16  {
    1.17    if (mapstorage.modified)
    1.18    {
    1.19 -    Gtk::MessageDialog mdialog("", false, Gtk::MESSAGE_WARNING,
    1.20 -        Gtk::BUTTONS_NONE);
    1.21 -    mdialog.set_message("<b>Save changes before closing?</b>", true);
    1.22 +    Gtk::MessageDialog mdialog("<b>Save changes before closing?</b>", true, 
    1.23 +        Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    1.24      mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
    1.25      mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    1.26      mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
    1.27 @@ -226,9 +224,8 @@
    1.28  {
    1.29    if (mapstorage.modified)
    1.30    {
    1.31 -    Gtk::MessageDialog mdialog("", false, Gtk::MESSAGE_WARNING,
    1.32 -        Gtk::BUTTONS_NONE);
    1.33 -    mdialog.set_message("<b>Save changes before closing?</b>", true);
    1.34 +    Gtk::MessageDialog mdialog("<b>Save changes before closing?</b>", true,
    1.35 +        Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    1.36      mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
    1.37      mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    1.38      mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);