On Mon, May 14, 2012 at 12:55 PM, Robert Park <[email protected]> wrote:
> On Mon, May 14, 2012 at 5:17 AM, John Stowers <[email protected]> 
> wrote:
>> You could fake it
>>
>> https://github.com/luv/gnome-tweak-tool/commit/c559171c385513cb72d2c3d998494077de732c1e
>
> You are my hero.

Oh, and just for reference, the conversion between GdkColor and (iii)
is so stupid simple that I did it with lambdas:

        bind_with_convert("track-color", self.colorpicker, "current-color",
            lambda x: Gdk.Color(*x), lambda x: (x.red, x.green, x.blue))

I think we have a pretty strong case here for bind_with_mapping to be
part of the standard API so that every single app doesn't have to
reinvent it each time.

-- 
http://exolucere.ca
_______________________________________________
python-hackers-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/python-hackers-list

Reply via email to