Page 1 of 1

SetGadgetItemData() with -1

Posted: Sun Jun 24, 2007 10:38 pm
by Trond
When SetGadgetItemData() is used with item -1 it should set the data for the last item. Currently it sets the data for _all_ items, which doesn't make sense in my opinion.

Posted: Sun Jun 24, 2007 10:42 pm
by Joakim Christiansen
I agree, not long since I needed this...

Posted: Sun Jun 24, 2007 10:57 pm
by Trond
Joakim Christiansen wrote:I agree, not long since I needed this...
I know, I was working with your code. :wink:

Posted: Sun Jun 24, 2007 11:18 pm
by Joakim Christiansen
Trond wrote:
Joakim Christiansen wrote:I agree, not long since I needed this...
I know, I was working with your code. :wink:
Do you hack into my computer and steal my sources or what? :P

Posted: Mon Jun 25, 2007 2:18 am
by Dare
:lol:

Posted: Mon Jun 25, 2007 7:57 am
by Kaeru Gaman
the problem maybe that -1 is #PB_Default and #PB_Any

perhaps this is a default behaviour of the gadget according to the OS...