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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkprintsettings.pre:129:    }   }      void set_paper_size(GTK2.PaperSize paper_size)   //! Sets the paper size.   {    pgtk2_verify_inited();    {    struct object *o1;    -  get_all_args("set_paper_size",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtk_print_settings_set_paper_size((GtkPaperSize *)(get_pg2object(o1,pgtk2_paper_size_program)));    }    RETURN_THIS();   }      float get_paper_width(int unit);   //! Gets the paper width, converted to unit.      void set_paper_width(float width, int unit);   //! Sets the paper width.
pike.git/src/post_modules/GTK2/source/gtkprintsettings.pre:238:   void set_page_ranges(array(array) page_ranges)   //! Sets the page ranges to print.   {    pgtk2_verify_inited();    {    ONERROR err;    struct array *a;    int num_ranges,i;    GtkPageRange *gpr;    -  get_all_args("set_page_ranges",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL)    Pike_error("Invalid array.\n");       gpr=xalloc(sizeof(GtkPageRange)*a->size+1);    SET_ONERROR(err,xfree,gpr);    for (i=num_ranges=0; i<a->size; i++) {    if (TYPEOF(ITEM(a)[i]) != PIKE_T_ARRAY)    continue;    if (ITEM(a)[i].u.array.size!=2)    continue;