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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkrecentchooserdialog.pre:6:      void create(mapping(string:mixed)|string title, GTK2.Window|int|void parent,    array(mapping(string:int)) buttons,    GTK2.RecentManager|void manager)   //! Creates a new RecentChooserDialog. Analogous to   //! GTK2.Dialog->create().   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) { -  if (Pike_sp[-args].type==PIKE_T_MAPPING) { +  if (TYPEOF(Pike_sp[-args]) == PIKE_T_MAPPING) {    INIT_WITH_PROPS(GTK_TYPE_RECENT_CHOOSER_DIALOG);    } else {    struct pike_string *title;    struct object *o1,*o2=NULL;    struct array *a;    GtkWidget *gr;    int i;       get_all_args("create",args,"%t%O%A.%O",&title,&o1,&a,&o2);    if (a==NULL)
pike.git/src/post_modules/GTK2/source/gtkrecentchooserdialog.pre:36:    GTK_WINDOW(get_gobject(o1)),NULL,NULL);    pop_stack();    THIS->obj=G_OBJECT(gr);    if (a) {    for (i=0; i<a->size; i++) {    struct pike_string *text;    int response_id = 0;    struct svalue *sv;    struct mapping *m;    -  if (ITEM(a)[i].type!=PIKE_T_MAPPING) +  if (TYPEOF(ITEM(a)[i]) != PIKE_T_MAPPING)    continue;    m=ITEM(a)[i].u.mapping;    sv=low_mapping_string_lookup(m,_STR("text"));    if (sv==NULL)    continue;    ref_push_string(sv->u.string);    f_string_to_utf8(1);    sv=low_mapping_string_lookup(m,_STR("id"));    if (sv)    response_id=PGTK_GETINT(sv);