X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpanel.cpp;h=529ec199183d20e1b31cdb3675b3025450fb4ca5;hb=c2635c5a3dca6a6cea5562fd387beb0662b18cf0;hp=c763e6e811afa5cd63926fb1971f047fb37e5c70;hpb=a38c924ff32081f5cd67c2b0e2d5ca61f0e99de2;p=libs%2Fgltk.git diff --git a/source/panel.cpp b/source/panel.cpp index c763e6e..529ec19 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgltk +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include "button.h" #include "label.h" @@ -24,6 +31,11 @@ Panel::~Panel() delete *i; } +void Panel::add(Widget &wdg) +{ + children.push_back(&wdg); +} + void Panel::button_press(int x, int y, unsigned btn) { if(pointer_grab>0) @@ -89,11 +101,6 @@ void Panel::focus_out() set_input_focus(0); } -void Panel::add(Widget &wdg) -{ - children.push_back(&wdg); -} - void Panel::render_part(const Part &part) const { if(part.get_name()=="children")