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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gdkpixmap.pre:42:   //! Create a new GDK2.Pixmap object.   //! Argument is a GDK2.Image object or a Image.Image object   {    GdkImage *i;    int f=0;    struct object *o;    GdkPixmap *gp;    pgtk2_verify_setup();    pgtk2_verify_not_inited();    -  if (Pike_sp[-args].type==PIKE_T_OBJECT) { +  if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    get_all_args("create",args,"%o",&o);    i=pgtk2_pixmap_setup(o,&f);       gp=gdk_pixmap_new(0,i->width,i->height,i->depth);    THIS->obj=G_OBJECT(gp);    if (!THIS->obj) {    if (f)    g_object_unref(i);    Pike_error("Failed to create pixmap.\n");    }    pgtk2__pixmap_draw(i);    if (f)    g_object_unref(i); -  } else if (args && Pike_sp[-1].type==PIKE_T_INT) { +  } else if (args && TYPEOF(Pike_sp[-1]) == PIKE_T_INT) {    gp=gdk_pixmap_foreign_new(Pike_sp[-1].u.integer);    THIS->obj=G_OBJECT(gp);    if (!THIS->obj)    Pike_error("Failed to find remote pixmap\n");    }    pgtk2_pop_n_elems(args);    pgtk2__init_this_object();   }      void set(GDK2.Image|Image.Image image)