Re: pointer ungrab



Sergio Rua <srua esware com> writes:

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)

What gives "$widget->pointer_ungrab()" ?


-- 
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/



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