Fwd: [FEATURE REQUEST] Auto pulse for GtkProgressBar and GtkEntry



Is fallible to implement a property to GtkProgressBar and GtkEntry to
pulse automatically the progress when it is in "Activity mode"? This
avoid to library user to the usual work to create a timeout for call
repeatedly to the "pulse" method.

I guess a possible implementation of this is by creating a property
called "pulse-interval" for GtkProgressBar and "progress-pulse-interval"
for GtkEntry. When user sets the property with a value greater than
zero, then Gtk+ creates a timeout (saving the timeout ID on a private
field of the widget). On the timeout callback, Gtk+ calls to the "pulse"
method or "progress_pulse" whatever the case. Then user can disable this
autopulse by setting the property to -1, removing the timeout.

What do you think about this feature?
Regards!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]