Re: Need some advice for GSettings

On Mon, May 14, 2012 at 12:55 PM, Robert Park <rbpark exolucere ca> wrote:
> On Mon, May 14, 2012 at 5:17 AM, John Stowers <john stowers lists gmail com> wrote:
>> You could fake it
> 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: (,,

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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]