pike.git / src / post_modules / GTK2 / source / support.c

version» Context lines:

pike.git/src/post_modules/GTK2/source/support.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: support.c,v 1.2 2005/11/03 13:49:47 ldillon Exp $ + || $Id: support.c,v 1.3 2005/11/04 19:07:34 grubba Exp $   */      #include <version.h>   #include <bignum.h>   #include <stdarg.h>      void pgtk_encode_grey(struct image *i, unsigned char *dest, int bpp, int bpl);      void pgtk_verify_setup() {    if (!pigtk_is_setup)
pike.git/src/post_modules/GTK2/source/support.c:1041:    g_free(sd);   }      void pgtk_set_gvalue(GValue *gv, GType gt, struct svalue *sv) {    g_value_init(gv,gt);    if (G_TYPE_IS_ENUM(gt)) {    g_value_set_enum(gv,(gint)PGTK_GETINT(sv));    return;    }   /* if (G_TYPE_IS_OBJECT(gt)) { */ -  if (G_TYPE_IS_OBJECT(gt) || gt==GDK_TYPE_DISPLAY || +  if (G_TYPE_IS_OBJECT(gt) || + #ifdef HAVE_GTK22 +  gt==GDK_TYPE_DISPLAY || gt==GDK_TYPE_SCREEN || + #endif    gt==GDK_TYPE_PIXBUF || gt==GDK_TYPE_PIXMAP || gt==GDK_TYPE_IMAGE || -  gt==GDK_TYPE_WINDOW || gt==GDK_TYPE_VISUAL || gt==GDK_TYPE_SCREEN || +  gt==GDK_TYPE_WINDOW || gt==GDK_TYPE_VISUAL ||    gt==GDK_TYPE_DRAWABLE || gt==GDK_TYPE_GC) {    if (sv->type==PIKE_T_OBJECT && get_gobject(sv->u.object) &&    G_IS_OBJECT(get_gobject(sv->u.object)))    g_value_set_object(gv,get_gobject(sv->u.object));    return;    }    if (gt==GDK_TYPE_COLOR) {    if (sv->type==PIKE_T_OBJECT && get_gdkobject(sv->u.object,color))    g_value_set_boxed(gv,get_gdkobject(sv->u.object,color));    return;