#ifndef __gtkmmext_idle_adjustment_h__
#define __gtkmmext_idle_adjustment_h__

#include <sys/time.h>
#include <gtk--/adjustment.h>

namespace Gtkmmext {

class IdleAdjustment : public SigC::Object
{
  public:
	IdleAdjustment (Gtk::Adjustment& adj);
	~IdleAdjustment ();

	SigC::Signal0<void> value_changed;

  private:
	void underlying_adjustment_value_changed();
	struct timeval last_vc;
	gint timeout_handler();
	bool timeout_queued;
};

}

#endif /* __gtkmmext_idle_adjustment_h__ */
