COIN-OR::LEMON - Graph Library

Changeset 90:e9f8f44f12a3 in glemon-0.x for main_win.cc


Ignore:
Timestamp:
11/21/05 19:03:20 (19 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@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
  • main_win.cc

    r87 r90  
    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.