# HG changeset patch
# User ladanyi
# Date 1123432515 0
# Node ID 7a9a55a2f45d0ad1963ee2d951698b214d35f012
# Parent e4ee805ca5fc8a637363f6959581428bd4a4e670
compile with gtkmm 2.4
diff -r e4ee805ca5fc -r 7a9a55a2f45d main_win.cc
--- a/main_win.cc Sun Aug 07 14:17:11 2005 +0000
+++ b/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);