Sha256: 0c12e9c254b2dcc8202a6b5f494f2f83ad4b9a1bba7276c3f8667d79432fb6c8
Contents?: true
Size: 869 Bytes
Versions: 12
Compression:
Stored size: 869 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(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
12 entries across 12 versions & 1 rubygems