The problem is that you connect the button_press_event to two different
callbacks. I've changed your code in order make things work as you have
described.
It's quite alright to connect more than one callback to the same signal --
but you have to be careful about ordering and the return
Thanks for clarifying this.
It's quite alright to connect more than one callback to the same
signal -- but you have to be careful about ordering and the return
value. If you return true from an event signal, that means i handled
the event, stop propagating it, so no more handler callbacks
Hi All,
Was wondering if I could get some help. I am currently trying to
change the mouse cursor to a hand on a 'button_press_event'. I was
hoping to change it to a hand for future grabbing and dragging of a
canvas but can't even get the cursor to change so the dragging
question will have to
The problem is that you connect the button_press_event to two different
callbacks. I've changed your code in order make things work as you have
described.
sub connect_signals
{
# Respond to mouse button presses
$scrwin-signal_connect(button_press_event = \button_press_event);
Thanks very much Mario.
I was sure I had seen in a tutorial somewhere that it is possible to
connect an event to two different callbacks but I must be mistaken.
On 5 November 2010 21:08, Mario Kemper mario.kem...@googlemail.com wrote:
The problem is that you connect the button_press_event to
Thanks Mario.
On Fri, Nov 5, 2010 at 9:08 PM, Mario Kemper
mario.kem...@googlemail.com wrote:
The problem is that you connect the button_press_event to two different
callbacks. I've changed your code in order make things work as you have
described.
sub connect_signals
{
# Respond to
Zettai Muri zettaim...@gmail.com writes:
I am currently trying to
change the mouse cursor to a hand on a 'button_press_event'.
As a bit of shameless self-promotion, my Gtk2::Ex::WidgetCursor is a bit
of oop-ery which can help making temporary cursor settings. It may be
more than you need
On Nov 5, 2010, at 6:08 AM, Mario Kemper wrote:
The problem is that you connect the button_press_event to two different
callbacks. I've changed your code in order make things work as you have
described.
It's quite alright to connect more than one callback to the same signal -- but
you have