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.8 2006/01/02 21:44:59 marcus Exp $ + || $Id: support.c,v 1.9 2006/01/04 23:57:33 marcus Exp $   */      #include <version.h>   #include <bignum.h>   #include <stdarg.h>      #ifndef INIT_VARIABLES   extern struct program *image_color_program;   extern struct program *image_program;   #endif
pike.git/src/post_modules/GTK2/source/support.c:491:   static int pgtk_push_gdk_drag_context_param(GValue *a) {    push_gdkobject(g_value_get_pointer(a),drag_context);    return PUSHED_VALUE;   }      static int pgtk_push_gdk_event_param(GValue *a) {    push_gdk_event(g_value_get_boxed(a));    return NEED_RETURN;   }    + static int pgtk_push_gdk_rectangle_param(GValue *a) { +  GdkRectangle *r = (GdkRectangle *) g_value_get_boxed(a); +  push_text("x"); push_int(r->x); +  push_text("y"); push_int(r->y); +  push_text("width"); push_int(r->width); +  push_text("height"); push_int(r->height); +  f_aggregate_mapping(8); +  return PUSHED_VALUE; + } +    static int pgtk_push_int_param(GValue *a) {    LONGEST retval;    switch (G_VALUE_TYPE(a)) {    case G_TYPE_INT:    retval=(LONGEST)g_value_get_int(a);    break;    case G_TYPE_ENUM:    retval=(LONGEST)g_value_get_enum(a);    break;    case G_TYPE_FLAGS:
pike.git/src/post_modules/GTK2/source/support.c:592:    CB(GTK_TYPE_TREE_PATH, pgtk_push_object_param);    CB(PANGO_TYPE_FONT_DESCRIPTION, pgtk_push_object_param);    CB(PANGO_TYPE_CONTEXT, pgtk_push_object_param);    CB(PANGO_TYPE_LAYOUT, pgtk_push_object_param);       CB( GTK_TYPE_ACCEL_GROUP, pgtk_push_accel_group_param );    /*#ifndef HAS_GTK_20*/    CB( GDK_TYPE_DRAG_CONTEXT, pgtk_push_gdk_drag_context_param );    /*#endif*/    CB( GDK_TYPE_EVENT, pgtk_push_gdk_event_param ); +  CB( GDK_TYPE_RECTANGLE, pgtk_push_gdk_rectangle_param );       CB( GTK_TYPE_ACCEL_FLAGS, pgtk_push_int_param );    CB( GDK_TYPE_MODIFIER_TYPE,pgtk_push_int_param );       CB( G_TYPE_FLOAT, pgtk_push_float_param );    CB( G_TYPE_DOUBLE, pgtk_push_float_param );       CB( G_TYPE_STRING, pgtk_push_string_param );       CB( G_TYPE_INT, pgtk_push_int_param );