X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flist.cpp;h=ac8b48cb77432dfb5069bf038c1a705510cd2684;hb=2bdaf4955fdb94e73704adcdcf0adc2b353f0ff0;hp=672cf4911bbf028e4e3850579959794e9c4f11f2;hpb=1c5148b7b63e1ba84073355702972caf6fe83b7e;p=libs%2Fgltk.git diff --git a/source/list.cpp b/source/list.cpp index 672cf49..ac8b48c 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