>> iconbeingset = false
>> client.connect_signal("new",
>> function(c)
>> c:connect_signal("property::icon",
>> function()
>> if iconbeingset then return end
>> icon = c:client_get_icon()
>
> Uhm, shouldn't this cause errors? There is no client_get_icon.
It did, "methods are nil"... Thanks a bunch, I got them both working!
If I set the grayscale like so: c.icon = ...create_from_png("foo")._native
I guess I need to worry about the ImageSurface getting destroyed as well? And
if so, would a local variable inside that function there be enough to be safe?
(and I guess I would lose a little memory everytime an application is started,
since I don't keep track of the recolored images...)
--
To unsubscribe, send mail to [email protected].