Re: HScale on_button_press_event blocking



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]