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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkfilechooserdialog.pre:116:    (gchar *)g_ptr_array_index(gpa,2),*(int *)g_ptr_array_index(gpa,3),    (gchar *)g_ptr_array_index(gpa,4),*(int *)g_ptr_array_index(gpa,5),    (gchar *)g_ptr_array_index(gpa,6),*(int *)g_ptr_array_index(gpa,7),    (gchar *)g_ptr_array_index(gpa,8),*(int *)g_ptr_array_index(gpa,9),    NULL);    break;    default:    Pike_error("Invalid number of buttons.\n");    }    g_ptr_array_free(gpa,1); -  my_pop_n_elems(args); +  pgtk2_pop_n_elems(args);   }   */      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(); +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup();    {    struct pike_string *title;    INT_TYPE mode;    struct object *o1;    struct array *a;    int i;    GtkWidget *gf;       get_all_args("create",args,"%t%O%i%A",&title,&o1,&mode,&a);    ref_push_string(title);
pike.git/src/post_modules/GTK2/source/gtkfilechooserdialog.pre:162:    m=(ITEM(a)+i)->u.mapping;    sv=low_mapping_string_lookup(m,_STR("text"));    if (sv==NULL)    continue;    text=(char *)STR0(sv->u.string);    sv=low_mapping_string_lookup(m,_STR("id"));    response_id=PGTK_GETINT(sv);    gtk_dialog_add_button(GTK_DIALOG(THIS->obj),text,response_id);    }    } -  my_pop_n_elems(args); +  pgtk2_pop_n_elems(args);    } -  pgtk__init_this_object(); +  pgtk2__init_this_object();   }      endrequire;