Re: Need some advice for GSettings
- From: Robert Park <rbpark exolucere ca>
- To: John Stowers <john stowers lists gmail com>
- Cc: python-hackers-list gnome org
- Subject: Re: Need some advice for GSettings
- Date: Mon, 14 May 2012 13:55:53 -0500
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
>>
>> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]