gui/nbtab.cc
changeset 1876 5ad84ad1b68f
parent 1849 a4d1362397fe
child 1878 409a31271efd
equal deleted inserted replaced
0:874ff77727e2 1:e369120067cd
    28 {
    28 {
    29   if (mapstorage.modified)
    29   if (mapstorage.modified)
    30   {
    30   {
    31     Gtk::MessageDialog mdialog("<b>Save changes before closing?</b>", true,
    31     Gtk::MessageDialog mdialog("<b>Save changes before closing?</b>", true,
    32         Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    32         Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    33     mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
    33     mdialog.add_button("Close file _without Saving", Gtk::RESPONSE_REJECT);
    34     mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    34     mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    35     mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
    35     mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
    36     switch (mdialog.run())
    36     switch (mdialog.run())
    37     {
    37     {
    38       case Gtk::RESPONSE_CANCEL:
    38       case Gtk::RESPONSE_CANCEL:
    57 {
    57 {
    58   if (mapstorage.modified)
    58   if (mapstorage.modified)
    59   {
    59   {
    60     Gtk::MessageDialog mdialog("<b>Save changes before closing?</b>", true, 
    60     Gtk::MessageDialog mdialog("<b>Save changes before closing?</b>", true, 
    61         Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    61         Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE);
    62     mdialog.add_button("Close _without Saving", Gtk::RESPONSE_REJECT);
    62     mdialog.add_button("Close file _without Saving", Gtk::RESPONSE_REJECT);
    63     mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    63     mdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    64     mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
    64     mdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
    65     switch (mdialog.run())
    65     switch (mdialog.run())
    66     {
    66     {
    67       case Gtk::RESPONSE_CANCEL:
    67       case Gtk::RESPONSE_CANCEL: