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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gladexml.pre:86:   //! to auto-calculate). If size is 0, then it will assume a file with root   //! and/or domain specified.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    {    GladeXML *gl;    struct pike_string *fname;    char *root=NULL,*dom=NULL;    INT_TYPE size=0; -  get_all_args("create",args,"%t.%i%s%s",&fname,&size,&root,&dom); +  get_all_args("create",args,"%n.%i%s%s",&fname,&size,&root,&dom);    if (size==0)    gl=glade_xml_new(fname->str,root,dom); -  else if (size==-1) +  else if ((size < 0) || (size > fname->len))    gl=glade_xml_new_from_buffer(fname->str,fname->len,root,dom);    else    gl=glade_xml_new_from_buffer(fname->str,size,root,dom);    THIS->obj=G_OBJECT(gl);    }    pgtk2_pop_n_elems(args);    pgtk2__init_this_object();   }      GTK2.Widget get_widget(string name)