# HG changeset patch
# User ladanyi
# Date 1123432515 0
# Node ID b42385baaf3aaaae740df8b9b94818397f78abba
# Parent 350c1d8bb7cc78c4dfe1f58e6453ba3166170c68
compile with gtkmm 2.4
diff -r 350c1d8bb7cc -r b42385baaf3a gui/main_win.cc
--- a/gui/main_win.cc Sun Aug 07 14:17:11 2005 +0000
+++ b/gui/main_win.cc Sun Aug 07 16:35:15 2005 +0000
@@ -137,9 +137,8 @@
{
if (mapstorage.modified)
{
- Gtk::MessageDialog mdialog("", false, Gtk::MESSAGE_WARNING,
- Gtk::BUTTONS_NONE);
- mdialog.set_message("Save changes before closing?", true);
+ Gtk::MessageDialog mdialog("Save changes before closing?", true,
+ Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
@@ -163,9 +162,8 @@
{
if (mapstorage.modified)
{
- Gtk::MessageDialog mdialog("", false, Gtk::MESSAGE_WARNING,
- Gtk::BUTTONS_NONE);
- mdialog.set_message("Save changes before closing?", true);
+ Gtk::MessageDialog mdialog("Save changes before closing?", true,
+ Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
@@ -226,9 +224,8 @@
{
if (mapstorage.modified)
{
- Gtk::MessageDialog mdialog("", false, Gtk::MESSAGE_WARNING,
- Gtk::BUTTONS_NONE);
- mdialog.set_message("Save changes before closing?", true);
+ Gtk::MessageDialog mdialog("Save changes before closing?", true,
+ Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);