Re: Handle SpinButton Signals
- From: Murray Cumming <murrayc murrayc com>
- To: Xavier Larrode <Xavier Larrode irisa fr>
- Cc: gtkmm-list gnome org
- Subject: Re: Handle SpinButton Signals
- Date: Fri, 16 Feb 2007 12:49:37 +0100
On Fri, 2007-02-16 at 11:58 +0100, Xavier Larrode wrote:
> Hi all,
> I have made a dialog with several spinButton, and i have a callback with
> the value_changed signal.
> My problem is that i only want that callback, when the user is using the
> spinButton and not when i set the value with set_value...
> Any idea how i can handle that ?
In these situations, I use a boolean. For instance:
...
m_dont_handle_spinbutton_signal = true;
spin_button_set_value(...)
m_dont_handle_spinbutton_signal = false;
...
void on_spinbutton_value_changed(...)
{
if(m_dont_handle_spinbutton_signal)
return;
...
}
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]