View Single Post
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#202
Originally Posted by rm_you View Post
Yeah... As you saw, I am doing a really ugly workaround/hack to make it only beep once every second or so (instead of just spamming beeps) but it would be awesome if you could figure that out. I used to use a HildonControlbar, which let me set its update method such that it didn't throw value-changed events until the user stopped moving it for some period of time (ie, got the bar to where they wanted it after dragging). I've thought about looking at how that was done, but the GTK+ codebase is way over my head at the moment.

Edit: As it turns out, the volumebar does support that, it's just buried in the GtkAdjustment bits... We'll have it done soon.
GtkAdjustment mostly just mimics the signals from its source widget. Regardless, I had perfect luck with HildonHVolumebar's "private" children. It's a very clean, if not naughty, solution, but it now works exactly like the sound applet. It's so simple you might sh*t yourself. If need be I can give an explanation later, for the time being I'll let the code I included speak for me (I'm burnt). I haven't hooked the beep to the mute button yet, but here's a demo; It's working very well.

Even though nothing bad is likely to happen, please don't use the following unless you know how to fix your tablet software when things go wrong
Attached Files
File Type: deb advanced-backlight_0.11-7_armel.deb (197.3 KB, 114 views)
File Type: gz advanced-backlight_0.11-7_new.tar.gz (12.2 KB, 110 views)

Last edited by daperl; 2008-07-14 at 23:42.
 

The Following User Says Thank You to daperl For This Useful Post: