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

version» Context lines:

pike.git/src/post_modules/GTK2/source/support.c:581:    if (g_type_is_a(G_VALUE_TYPE(a),G_TYPE_BOXED)) {    gp=g_value_get_boxed(a);    if (G_VALUE_HOLDS(a,g_type_from_name("GdkColor"))) {    push_gdkobject(gp,color,0);    } else if (G_VALUE_HOLDS(a,g_type_from_name("GtkTreePath"))) {    push_pgdk2object(gp,pgtk2_tree_path_program,0);    } else if (G_VALUE_HOLDS(a,g_type_from_name("GdkRectangle"))) {    push_gdkobject(gp,rectangle,0);    } else if (G_VALUE_HOLDS(a,g_type_from_name("GdkRegion"))) {    push_gdkobject(gp,region,0); +  } else { +  /* Don't know how to push this sort of object, so push its name */ +  PGTK_PUSH_GCHAR(G_VALUE_TYPE_NAME(a));    }    } else {    obj=g_value_get_object(a);    if (obj)    push_gobject(obj);    }    return PUSHED_VALUE;   }      static int pgtk2_push_pike_object_param(const GValue *a) {