X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fremote%2Fremote.cpp;h=c53bddda1c2f08c4578b09cca3e05bf93c66ca5f;hb=b41c7409da959420aed91e8a2e1fdab95ef473c4;hp=a193b2bf599ef87507fa9aedc037c4572c7a3c10;hpb=9ddcd066e37e4c72685817c042c30897786ece05;p=r2c2.git diff --git a/source/remote/remote.cpp b/source/remote/remote.cpp index a193b2b..c53bddd 100644 --- a/source/remote/remote.cpp +++ b/source/remote/remote.cpp @@ -1,10 +1,11 @@ /* $Id$ -This file is part of the MSP Märklin suite +This file is part of R²C² Copyright © 2009-2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ +#include #include #include #include @@ -38,8 +39,12 @@ Remote::Remote(int argc, char **argv): window.set_default_size(300, 200); window.set_border_width(5); + Gtk::ScrolledWindow *scroll = new Gtk::ScrolledWindow; + window.add(*manage(scroll)); + scroll->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + train_box = new Gtk::VBox(false, 5); - window.add(*manage(train_box)); + scroll->add(*manage(train_box)); window.show_all(); } @@ -50,7 +55,7 @@ void Remote::tick() gtk.iteration(false); } -void Remote::train_added(Marklin::NetTrain &t) +void Remote::train_added(R2C2::NetTrain &t) { TrainPanel *panel = new TrainPanel(*this, client, t); if(!train_panels.empty())