4.6.0

Jannis Pohlmann jannis at xfce.org
Thu Feb 19 11:25:50 CET 2009


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. 

  - 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/c1a32bbe/attachment.pgp>


More information about the Xfce4-dev mailing list