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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkfilechooserdialog.pre:130:   void create(string title, GTK2.Window parent, int mode,    array(mapping(string:int)) buttons)   //! Creates a new file selection dialog box. By default it will list   //! the files in the current working directory. Operation buttons   //! allowing the user to create a directory, delete files, and rename   //! files will also be present by default.   {    pgtk_verify_not_inited();    pgtk_verify_setup();    { -  char *title; +  struct pike_string *title;    INT_TYPE mode;    struct object *o1;    struct array *a;    int i;    GtkWidget *gf;    -  get_all_args("create",args,"%s%O%i%A",&title,&o1,&mode,&a); -  gf=gtk_file_chooser_dialog_new(title, +  get_all_args("create",args,"%t%O%i%A",&title,&o1,&mode,&a); +  ref_push_string(title); +  f_string_to_utf8(1); +  gf=gtk_file_chooser_dialog_new(STR0(Pike_sp[-1].u.string),    GTK_WINDOW(get_gobject(o1)),mode,NULL); -  +  pop_stack();    THIS->obj=G_OBJECT(gf);    if (a) {    for (i=0; i<a->size; i++) {    char *text;    int response_id;    struct svalue *sv;    struct mapping *m;    if ((ITEM(a)+i)->type!=PIKE_T_MAPPING)    continue;    m=(ITEM(a)+i)->u.mapping;