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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gdkdragcontext.pre:13:    pgtk2_pop_n_elems(args);    push_gobject(gtk_drag_get_source_widget((GdkDragContext *)THIS->obj));   }      void drag_finish(int success, int del)   //! If success is true, the drag succeded.   //! If del is true, the source should be deleted.   //! time is the current time.   {    INT_TYPE a,b,t; -  get_all_args("drag_finish",args,"%i%i",&a,&b); +  get_all_args(NULL,args,"%i%i",&a,&b);    gtk_drag_finish((GdkDragContext *)THIS->obj,a,b,time(NULL));    RETURN_THIS();   }      void drag_status(int action)   //! Setting action to -1 means use the suggested action   {    INT_TYPE o,t; -  get_all_args("status",args,"%i",&o); +  get_all_args(NULL,args,"%i",&o);    if (o==-1)    o=((GdkDragContext *)THIS->obj)->suggested_action;    gdk_drag_status((GdkDragContext *)THIS->obj,o,time(NULL));    RETURN_THIS();   }      void drag_drop(int time)   //! Drag drop.   {    INT_TYPE t; -  get_all_args("drop",args,"%i",&t); +  get_all_args(NULL,args,"%i",&t);    gdk_drag_drop((GdkDragContext *)THIS->obj,t);    RETURN_THIS();   }         void drag_abort(int time)   //! Abort the drag   {    INT_TYPE t; -  get_all_args("abort",args,"%i",&t); +  get_all_args(NULL,args,"%i",&t);    gdk_drag_abort((GdkDragContext *)THIS->obj,t);    RETURN_THIS();   }      void drop_reply(int ok)   //! Drop reply.   {    INT_TYPE t,o; -  get_all_args("reply",args,"%i",&o); +  get_all_args(NULL,args,"%i",&o);    gdk_drop_reply((GdkDragContext *)THIS->obj,o,time(NULL));    RETURN_THIS();   }      void drag_set_icon_widget(GTK2.Widget widget, int hot_x, int hot_y)   //! Set the drag widget. This is a widget that will be shown, and then   //! dragged around by the user during this drag.   {    struct object *_o;    INT_TYPE x,y; -  get_all_args("drag_set_icon_window",args,"%o%i%i", +  get_all_args(NULL,args,"%o%i%i",    &_o,&x,&y);    gtk_drag_set_icon_widget((GdkDragContext *)THIS->obj,    GTK_WIDGET(get_gobject(_o)),    x,y);    RETURN_THIS();   }      void drag_set_icon_default()   //! Use the default drag icon associated with the source widget.   {
pike.git/src/post_modules/GTK2/source/gdkdragcontext.pre:86:   }      void drag_set_icon_pixmap(GDK2.Pixmap p, GDK2.Bitmap b, int hot_x, int hot_y )   //! Set the drag pixmap, and optionally mask.<br />   //! The hot_x and hot_y coordinates will be the location of the mouse pointer,   //! relative to the upper left corner of the pixmap.   {    struct object *p=NULL,*m=NULL;    int x,y;    if (args!=4) -  SIMPLE_TOO_FEW_ARGS_ERROR("drag_set_icon_pixmap", 4); +  SIMPLE_WRONG_NUM_ARGS_ERROR("drag_set_icon_pixmap", 4);    if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT)    p=Pike_sp[-args].u.object;    if (TYPEOF(Pike_sp[-args+1]) == PIKE_T_OBJECT)    m=Pike_sp[-args+1].u.object;    x=Pike_sp[-args+2].u.integer;    y=Pike_sp[-args+3].u.integer;       gtk_drag_set_icon_pixmap((GdkDragContext *)THIS->obj,    gdk_colormap_get_system(),    get_gdkobject(p,pixmap),