Curiousity about GtkSpinButton
- From: Fabricio Rocha <rocha_fabricio yahoo com br>
- To: gtk-app-devel-list gnome org
- Subject: Curiousity about GtkSpinButton
- Date: Tue, 10 Oct 2006 00:28:42 -0300
Hi, folks,
I have browsed through the GTK Reference but did not find a clue
about a strange behaviour of GtkSpinButton which I could see using GDB
stepthrough. When I click ONCE one of its buttons (up or down), the
callback function (on_spinbutton_change(), for example) runs NOT once,
but two or three times! The output of all the operation is correct, but
why does the callback run so many times? While running the program in
GDB the thing is even more strange, because it looks like the program
"sees" one more button click, and then the value is stepped up or down
twice with only one mouse click!
Might I have one more question for you? Changing the
GtkSpinButton value directly in the entry field does nothing, even when
pressing TAB or ENTER. I can deduce that the entry field is treated just
like a GtkEntry, and it might need a callback for the "activate" or
"changed" signal. However, I would like that this action was "catched"
and processed by the same routine called as a callback for the
GtkSpinButtons up or down arrows. How is this done? I think I might
simply tell Glade to connect these signals to the same handler, but it
just doesn´t seem to be The Right Thing...
Thank you all and regards!
Fabricio Rocha
Brasilia, Brasil
_______________________________________________________
O Yahoo! está de cara nova. Venha conferir!
http://br.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]