pointer ungrab



Hello,

        I'm trying to use this function that is a port from C but I
        allways get an error:

sub button_released
{
        my ($widget,$event)= _;

        Gtk::Gdk->pointer_ungrab($widget,GDK_CURRENT_TIME);
        Gtk::Gdk->flush();
        $moveable=0;
        $widget->grab_remove();
        Gtk::Gdk->pointer_ungrab($widget,0);
        return 1;
}


        And the error message:

Usage: Gtk::Gdk::pointer_ungrab(Class, time=GDK_CURRENT_TIME)



        Anybody can say me what is the correct way to call to this
function? Thanks you.
                                                        

Greetings!

                Sergio Rua <srua debian org>

-- Key fingerprint = 4B4B 1ED6 8F17 0E2B 0DA3  5978 BFB6 6565 1768 44B7




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]