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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcellview.pre:18:    if (Pike_sp[-args].type==PIKE_T_OBJECT) {    struct object *o1;    get_all_args("create",args,"%o",&o1);    gcv=gtk_cell_view_new_with_pixbuf(GDK_PIXBUF(get_gobject(o1)));    THIS->obj=G_OBJECT(gcv);    } else if (Pike_sp[-args].type==PIKE_T_STRING) {    struct pike_string *str;    get_all_args("create",args,"%t",&str);    ref_push_string(str);    f_string_to_utf8(1); -  gcv=gtk_cell_view_new_with_text(STR0(Pike_sp[-1].u.string)); +  gcv=gtk_cell_view_new_with_text(CGSTR0(Pike_sp[-1].u.string));    pop_stack();    THIS->obj=G_OBJECT(gcv);    } else {    INIT_WITH_PROPS(GTK_TYPE_CELL_VIEW);    }    } else if (args==2) {    struct pike_string *str;    INT_TYPE mark;    GtkWidget *gcv;    get_all_args("create",args,"%t%i",&str,&mark);    ref_push_string(str);    f_string_to_utf8(1);    if (mark) -  gcv=gtk_cell_view_new_with_markup(STR0(Pike_sp[-1].u.string)); +  gcv=gtk_cell_view_new_with_markup(CGSTR0(Pike_sp[-1].u.string));    else -  gcv=gtk_cell_view_new_with_text(STR0(Pike_sp[-1].u.string)); +  gcv=gtk_cell_view_new_with_text(CGSTR0(Pike_sp[-1].u.string));    pop_stack();    THIS->obj=G_OBJECT(gcv);    } else {    GtkWidget *gcv;    gcv=gtk_cell_view_new();    THIS->obj=G_OBJECT(gcv);    }    my_pop_n_elems(args);    pgtk__init_this_object();   }