In message <[EMAIL PROTECTED]>you write:
>Paul Barton-Davis wrote:
>
>> In message <000701bfbb97$fa709040$[EMAIL PROTECTED]>you write:
>> >Hello,
>> >I've written a little calculator with a numeric pad. I've bound keys to the
>> >buttons signals, I mean that when i press '7' on the keyboard, the button
>> >labeled '7' emits the "clicked" signal, doing the appropriate stuff.
>> >But I expected that the button would really looks like if 'clicked'. I mean
>> >getting the focus, being depressed, changing its color, etc...
>> >I can see that the signal is really emitted, but the look of the button
>> >doesn't change. I've tried to emit all of the possible signals for the
>> >button, added delays to see better, but nothing happened.
>> >
>> >Does anyone has an idea ?
>>
>> my guess it that you're using regular buttons, whose appearance
>> doesn't really change except between a button press and a button
>> release. if you are using the clicked signal, then unless you use a
>> toggle button, i wouldn't expect to see very much.
>>
>> --p
>>
>> --
>> To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
>
>This is a "bug" in GTK, because regular buttons only get visually pressed or
>depressed when you use mouse. When you use the keyboard, or the "pressed"
>signals, nothing (visually speaking) will happen. Anybody can change this? I
>tried to solve it for a long time, but my understanding of the GTK internals i
>s
>very basic.
>However I can say that the problem is the following:
I don't entirely agree. It depends on what you think the semantics ofa
keyboard activated "press" are. I don't think that its obvious that
they should be identical to the button case. The button press is a
single event in time; the accelerator may consist of several keys. At
what point do you consider the "press" to have taken place versus the
"release" ?
I'm not saying that it wouldn't sometimes be nice to see a brief flash
of visual activity in response to a keyboard-driven button press, but
at the same time, I'm not sure its totally correct to do this either.
Still if GTK+ could do both, all the better.
--p
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null