COIN-OR::LEMON - Graph Library

Changeset 1823:cb082cdf3667 in lemon-0.x for gui/main_win.cc


Ignore:
Timestamp:
11/21/05 19:03:20 (14 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2373
Message:

NewMapWin? has become Dialog instead of Window. Therefore it is created dynamically, when there is need for it, instead of keeping one instance in memory. This solution is slower, but more correct than before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/main_win.cc

    r1777 r1823  
    33
    44MainWin::MainWin() :
    5   newmapwin("Creating new map", gd_canvas),
    6   mapwin("Map Setup", mapstorage, gd_canvas, newmapwin),
     5  mapwin("Map Setup", mapstorage, gd_canvas),
    76  gd_canvas(mapstorage, mapwin, (Gtk::Window *)this)
    87{
     
    122121
    123122  ag->add( Gtk::Action::create("AddMap", Gtk::StockID("gd-newmap")),
    124       sigc::mem_fun ( this->newmapwin, &NewMapWin::show ) );
     123      sigc::mem_fun (new NewMapWin("NewMapWin", gd_canvas), &NewMapWin::show ) );
    125124
    126125  uim=Gtk::UIManager::create();
Note: See TracChangeset for help on using the changeset viewer.