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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gladexml.pre:85:   //! If xml description is in a string buffer instead, specify the size (or -1   //! to auto-calculate). If size is 0, then it will assume a file with root   //! and/or domain specified.   {    pgtk_verify_not_inited();    pgtk_verify_setup();    {    GladeXML *gl;    char *fname,*root=NULL,*dom=NULL;    INT_TYPE size=0; -  if (args==1) -  get_all_args("create",args,"%s",&fname); -  else if (args==2) -  get_all_args("create",args,"%s%i",&fname,&size); -  else if (args==3) -  get_all_args("create",args,"%s%i%s",&fname,&size,&root); -  else -  get_all_args("create",args,"%s%i%s%s",&fname,&size,&root,&dom); +  get_all_args("create",args,"%s.%i%s%s",&fname,&size,&root,&dom);    if (size==0)    gl=glade_xml_new(fname,root,dom);    else if (size==-1)    gl=glade_xml_new_from_buffer(fname,strlen(fname),root,dom);    else    gl=glade_xml_new_from_buffer(fname,size,root,dom);    THIS->obj=G_OBJECT(gl);    }    my_pop_n_elems(args);    pgtk__init_this_object();