Branch: Tag:

2006-01-04

2006-01-04 23:57:33 by Marcus Comstedt <marcus@mc.pp.se>

Support pushing of GDK_RECTANGLE params to signal handlers.

Rev: src/post_modules/GTK2/source/support.c:1.9

2:   || 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>
498:    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)) {
599:    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 );