4.6.0

Jannis Pohlmann jannis at xfce.org
Thu Feb 19 20:02:53 CET 2009


On Thu, 19 Feb 2009 10:27:41 -0800
"Brian J. Tarricone" <bjt23 at cornell.edu> wrote:

> Jannis Pohlmann wrote:
> > Am Thu, 19 Feb 2009 09:00:57 +0100
> > schrieb Mike Massonnet <mmassonnet at gmail.com>:
> > 
> >> Le Thu, 19 Feb 2009 08:27:36 +0100,
> >> Nick Schermer <nickschermer at gmail.com> a écrit :
> >>
> >>> Please drop:
> >>> +    xfconf_g_property_bind (xsettings_channel,
> >>> "/Xfce/UseCustomDPI", G_TYPE_BOOLEAN, custom_dpi_check, "active");
> >>> +    xfconf_g_property_bind (xsettings_channel,
> >>> "/Xfce/UseCustomDPI", G_TYPE_BOOLEAN, custom_dpi_spin,
> >>> "sensitive");
> >>>
> >>> And use the toggled signal. Also do a gtk_widget_set_sensitive for
> >>> the custom_dpi_spin. Those are property bindings and not set when
> >>> the value in xfconf does not exist (ie. they do not behave as an
> >>> exo binding).
> >> Other way of fixing this will be to set the "default" value inside
> >> the galde file, thus set the spin button insensitive.  The bind
> >> can be kept and will act as if the initial value is correct.
> > 
> > No, that's not enough. This doesn't work when the user resets the
> > value using "xfconf-query -c xsettings -p /Xfce/UseCustomDPI -r".
> > In that case the sensitivity and checked state of the two widgets
> > will be out of sync.
> 
> Yeah, I wonder if there's a decent way to 'fix' this in xfconf...
> kinda a 'do what I mean' sort of thing.  The idea of the binding api
> is to make things simpler for developers.  It's annoying to have
> stupid limitations like this.

Yeah. All it needs is an agreement on what the default should be if a
property of a certain type does not exist. Unfortunately that's
something xfconf cannot decide. What to use as a default for integers
or for strings? For booleans, FALSE may be ok, but 0 for integers or
NULL for strings? Hmmm ... 

  - Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20090219/a641e945/attachment.pgp>


More information about the Xfce4-dev mailing list