X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flist.cpp;h=65d2d6309d24cb612bb3b108fcd67533d20e8d25;hb=73afd124ab87e8bace98db55517a56c797a9b8c7;hp=672cf4911bbf028e4e3850579959794e9c4f11f2;hpb=91997dd3189b93a67179822ec2fed5f2a7bddb74;p=libs%2Fgltk.git diff --git a/source/list.cpp b/source/list.cpp index 672cf49..65d2d63 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgltk -Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -114,24 +114,6 @@ const string &List::get_selected() const return items[sel_index]; } -void List::button_press(int x, int y, unsigned btn) -{ - Container::button_press(x, y, btn); - if(!click_focus && btn==1) - { - if(items_part) - y += items_part->get_margin().top; - - unsigned i = (geom.h-1-y)/row_height; - if(iget_margin().top; + + unsigned i = (geom.h-1-y)/row_height; + if(i(wdg).append(v); + dynamic_cast(obj).append(v); } } // namespace GLtk