Re: Handle SpinButton Signals
- From: Xavier Larrode <Xavier Larrode irisa fr>
- Cc: gtkmm-list gnome org
- Subject: Re: Handle SpinButton Signals
- Date: Fri, 16 Feb 2007 14:30:04 +0100
Murray Cumming a écrit :
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;
...
}
Ok i was thinking there were something on gtk to handle that.
Thanks anyway
begin:vcard
fn;quoted-printable:Xavier Larrod=C3=A9
n;quoted-printable:Larrod=C3=A9;Xavier
org:IRISA ;E119 Orange
title:Projet GVT
tel;work:73 28
version:2.1
end:vcard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]