how do I get the original object's details from get_arenaitem(desktop->dkey)

I'm working on https://bugs.launchpad.net/inkscape/+bug/816496 and I have managed to narrow down the offending lines (1113-1114) in sp-item.cpp arenaitem = SP_ITEM(l->data)->get_arenaitem(desktop->dkey); arenaitem->setOpacity(1.0);
but I dont know how to go from the arenaitem to the original item to get the correct opacity it should be set to (instead of triggering a full redraw.. not that I would know how to do that either)
any help would be greatly appreciated.
-- View this message in context: http://inkscape.13.n6.nabble.com/how-do-I-get-the-original-object-s-details-... Sent from the Inkscape - Dev mailing list archive at Nabble.com.

this bug is marked as Fix Committed, are you sure this is the right bug number?
Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/how-do-I-get-the-original-object-s-details-... Sent from the Inkscape - Dev mailing list archive at Nabble.com.

agh, youre right, sorry about that.. they're related, but that's indeed not the right bug. This is the bug I meant:
https://bugs.launchpad.net/inkscape/+bug/1092374
and here is the original commit that added the code: http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/9976
thanks again
-- View this message in context: http://inkscape.13.x6.nabble.com/how-do-I-get-the-original-object-s-details-... Sent from the Inkscape - Dev mailing list archive at Nabble.com.

ok, some further poking allowed me to find how. for the edification of other devs trying to figure stuff out, heres how i did it: arenaitem->setOpacity(SP_SCALE24_TO_FLOAT(SP_ITEM(l->data)->style->opacity.value));
and heres how i set the focus to the canvas:
gtk_widget_grab_focus (GTK_WIDGET(desktop->canvas));
-- View this message in context: http://inkscape.13.x6.nabble.com/how-do-I-get-the-original-object-s-details-... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
participants (2)
-
alvinpenner
-
insaner