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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkrecentchooserdialog.pre:21:    struct array *a;    GtkWidget *gr;    int i;       get_all_args("create",args,"%t%O%A.%O",&title,&o1,&a,&o2);    ref_push_string(title);    f_string_to_utf8(1);    if (o2)    gr=gtk_recent_chooser_dialog_new_for_manager(CGSTR0(Pike_sp[-1].u.string),    GTK_WINDOW(get_gobject(o1)), -  GTK_RECENT_MANAGER(get_gobject(o2)),NULL) +  GTK_RECENT_MANAGER(get_gobject(o2)),NULL);    else    gr=gtk_recent_chooser_dialog_new(CGSTR0(Pike_sp[-1].u.string),    GTK_WINDOW(get_gobject(o1)),NULL);    pop_stack(); -  THIS->obj=G_OBJECT(gf); +  THIS->obj=G_OBJECT(gr);    if (a) {    for (i=0; i<a->size; i++) {    struct pike_string *text;    int response_id;    struct svalue *sv;    struct mapping *m;    -  if (ITEM(a)[i]->type!=PIKE_T_MAPPING) +  if (ITEM(a)[i].type!=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(CGSTR0(sv->u.string));    f_string_to_utf8(1);    sv=low_mapping_string_lookup(m,_STR("id"));    response_id=PGTK_GETINT(sv);    gtk_dialog_add_button(GTK_DIALOG(THIS->obj),CGSTR0(Pike_sp[-1].u.string),response_id);