main_win.cc
branchgui
changeset 90 e9f8f44f12a3
parent 87 b44281e4cca7
child 94 adfdc2f70548
     1.1 --- a/main_win.cc	Mon Nov 21 12:07:05 2005 +0000
     1.2 +++ b/main_win.cc	Mon Nov 21 18:03:20 2005 +0000
     1.3 @@ -2,8 +2,7 @@
     1.4  #include "icons/guipixbufs.h"
     1.5  
     1.6  MainWin::MainWin() :
     1.7 -  newmapwin("Creating new map", gd_canvas),
     1.8 -  mapwin("Map Setup", mapstorage, gd_canvas, newmapwin),
     1.9 +  mapwin("Map Setup", mapstorage, gd_canvas),
    1.10    gd_canvas(mapstorage, mapwin, (Gtk::Window *)this)
    1.11  {
    1.12    set_title ("unsaved file - " + prog_name);
    1.13 @@ -121,7 +120,7 @@
    1.14        sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
    1.15  
    1.16    ag->add( Gtk::Action::create("AddMap", Gtk::StockID("gd-newmap")),
    1.17 -      sigc::mem_fun ( this->newmapwin, &NewMapWin::show ) );
    1.18 +      sigc::mem_fun (new NewMapWin("NewMapWin", gd_canvas), &NewMapWin::show ) );
    1.19  
    1.20    uim=Gtk::UIManager::create();
    1.21    uim->insert_action_group(ag);