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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcellview.pre:9:   //! GDK2.Color background-gdk   //! int background-set      void create(string|GDK2.Pixbuf|mapping(string:mixed)|void text, ?int markup)   //! Create a new W(CellView) widget.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args==1) {    GtkWidget *gcv; -  if (Pike_sp[-args].type==PIKE_T_OBJECT) { +  if (TYPEOF(Pike_sp[-args]) == 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) { +  } else if (TYPEOF(Pike_sp[-args]) == 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(CGSTR0(Pike_sp[-1].u.string));    pop_stack();    THIS->obj=G_OBJECT(gcv);    } else {    INIT_WITH_PROPS(GTK_TYPE_CELL_VIEW);    }