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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gladexml.pre:83:   //! GladeXML object from the same file. The third optional argument is used to   //! specify a different translation domain from the default to be used.   //! 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.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    {    GladeXML *gl; -  char *fname,*root=NULL,*dom=NULL; +  struct pike_string *fname; +  char *root=NULL,*dom=NULL;    INT_TYPE size=0; -  get_all_args("create",args,"%s.%i%s%s",&fname,&size,&root,&dom); +  get_all_args("create",args,"%t.%i%s%s",&fname,&size,&root,&dom);    if (size==0) -  gl=glade_xml_new(fname,root,dom); +  gl=glade_xml_new(fname->str,root,dom);    else if (size==-1) -  gl=glade_xml_new_from_buffer(fname,strlen(fname),root,dom); +  gl=glade_xml_new_from_buffer(fname->str,fname->len,root,dom);    else -  gl=glade_xml_new_from_buffer(fname,size,root,dom); +  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)   //! This function is used to get the widget corresponding to name in the   //! interface description. You would use this if you have to do anything to   //! the widget after loading.