Sha256: 1d90aca31140a8b97e5292211dac007093942a4043f4dea9c3c95c8b47d1f1d9
Contents?: true
Size: 899 Bytes
Versions: 15
Compression:
Stored size: 899 Bytes
Contents
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /************************************************ rbgtkvbox.c - $Author: ggc $ $Date: 2007/07/13 16:07:32 $ Copyright (C) 2002,2003 Ruby-GNOME2 Project Team Copyright (C) 1998-2000 Yukihiro Matsumoto, Daisuke Kanda, Hiroshi Igarashi ************************************************/ #include "global.h" static VALUE vbox_initialize(argc, argv, self) int argc; VALUE *argv; VALUE self; { VALUE homogeneous, spacing; rb_scan_args(argc, argv, "02", &homogeneous, &spacing); RBGTK_INITIALIZE(self, gtk_vbox_new(RVAL2CBOOL(homogeneous), (NIL_P(spacing)?0:NUM2INT(spacing)))); return Qnil; } void Init_gtk_vbox() { VALUE gVBox = G_DEF_CLASS(GTK_TYPE_VBOX, "VBox", mGtk); rb_define_method(gVBox, "initialize", vbox_initialize, -1); }
Version data entries
15 entries across 15 versions & 1 rubygems