Re: HScale on_button_press_event blocking
- From: Patrick Schweiger <pschweiger symmetricom com>
- To: Jeremy Harmon <intrathink gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: HScale on_button_press_event blocking
- Date: Wed, 09 May 2007 13:17:16 -0600
On Tue, 2007-05-08 at 20:43 -0400, Jeremy Harmon wrote:
> bool seekBar::on_button_press_event(GdkEventButton *event)
> {
> m_isSeeking = true;
> return false;
> }
>
instead of returning false, try calling the super class' implementations
to get the behavior they implement:
bool seekBar::on_button_press_event(GdkEventButton *event)
{
m_isSeeking = true;
return Gtk::HScale::on_button_press_event(event);
}
bool seekBar::on_button_release_event(GdkEventButton *event)
{
m_isSeeking = false;
return Gtk::HScale::on_button_release_event(event);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]