! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfconf bindings fire property-changed too often
Status:
RESOLVED: FIXED
Priority:
Very High
Product:
Xfconf
Component:
Libxfconf

Comments

Description Brian J. Tarricone (not reading bugmail) 2008-06-21 22:22:01 CEST
Example: when using a slider widget bound to an xfconf property, the xfconf property is continuously updated as the slider is dragged.

Since the xfconf bindings work at the gobject property level, we can't do something specific for range widgets.  Options:

1.  Add a delay in the xfconf bindings so property updates are queued and processed every 100ms or so, and only the most recent update actually takes effect.

2.  Look into the update-policy property of all GtkRange widgets -- might be able to get it to stop changing its value property until the user releases the slider.  I seem to remember trying to get this to work right a long time ago in a different situation, without success, but maybe it can work for us.
Comment 1 Olivier Fourdan editbugs 2008-06-22 09:37:44 CEST
I do not think that option 1) would be a good approach, it looks like a hack and how to choose the right update interval (100ms might still be way too much for some needs).

The current implementation in xfwm4 wmtweaks plugin uses gtk_range_set_update_policy (GTK_RANGE (scale), GTK_UPDATE_DISCONTINUOUS) and that works just fine (ie this is exactly what is needed in my case ^_~ )


Comment 2 Brian J. Tarricone (not reading bugmail) 2008-06-22 18:42:16 CEST
Ok, cool.  Stephan, I'll leave you to update your dialogs, yeah?  Close the bug when you're done ^_^
Comment 3 Stephan Arts editbugs 2008-06-23 09:46:01 CEST
done. (Will add the patch to the other bug later, almost implemented the wm-settings dialog too)
Comment 4 Brian J. Tarricone (not reading bugmail) 2008-06-23 17:39:26 CEST
The only remaining issue we may want to revisit (or not?) is that of GtkSpinButtons.  There doesn't seem to be a similar property for those.  If you hold down the spinner button, you get a prop change for each increment until you stop.  We seem to have few of those, so...

Bug #4166

Reported by:
Brian J. Tarricone (not reading bugmail)
Reported on: 2008-06-21
Last modified on: 2015-02-16

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
1 user

Version

Version:
GIT Master

Attachments

Additional information