pike.git / src / post_modules / GTK2 / source / global.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/global.pre:440:      void move_cursor_abs( GDK2.Window w, int dx, int dy )   //! Move the mouse-cursor to x,y, relative to the upper left corner of   //! the specified window. This will generate a normal motion event.   //!   //! Note that this is a low-level X11 function, and thus only works   //! when GDK uses X11.   {    INT_TYPE x, y;    struct object *o; -  GdkWindowPrivate *priv; +  GdkWindow *w;    get_all_args("move_cursor_abs",args,"%o%i%i",&o,&x,&y); -  priv = (GdkWindowPrivate *)get_gdkobject( o, window ); -  if( !priv ) +  w = GDK_WINDOW(get_gdkobject( o, window )); +  if( !w )    Pike_error("No window specified!\n"); -  XWarpPointer(GDK_DISPLAY(),None,priv->xwindow,0,0,0,0,x,y); +  XWarpPointer(GDK_DISPLAY(),None,GDK_WINDOW_XWINDOW(w),0,0,0,0,x,y);    pgtk2_pop_n_elems(args);   }      endrequire; /* x11 */      require gtk22;   array(mapping(string:mixed)) get_formats()   //! Get information about the image formats supported.   {    GSList *gsl,*gs2;