Sha256: 4130ad24222a4819e9be287ffc5c29eed5a30a75f783f1bf15ffa624ea1562d9

Contents?: true

Size: 869 Bytes

Versions: 12

Compression:

Stored size: 869 Bytes

Contents

/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/************************************************

  rbgtkhbox.c -

  $Author: ggc $
  $Date: 2007/07/13 16:07:31 $

  Copyright (C) 2002,2003 Ruby-GNOME2 Project Team
  Copyright (C) 1998-2000 Yukihiro Matsumoto,
                          Daisuke Kanda,
                          Hiroshi Igarashi
************************************************/

#include "global.h"

static VALUE
hbox_initialize(int argc, VALUE *argv, VALUE self)
{
    VALUE homogeneous, spacing;

    rb_scan_args(argc, argv, "02", &homogeneous, &spacing);

    RBGTK_INITIALIZE(self, gtk_hbox_new(RVAL2CBOOL(homogeneous),
				  (NIL_P(spacing)?0:NUM2INT(spacing))));
    return Qnil;
}

void 
Init_gtk_hbox()
{
    VALUE gHBox = G_DEF_CLASS(GTK_TYPE_HBOX, "HBox", mGtk);

    rb_define_method(gHBox, "initialize", hbox_initialize, -1);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gtk2-1.0.3-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-1.0.3 ext/gtk2/rbgtkhbox.c
gtk2-1.0.2-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-1.0.2 ext/gtk2/rbgtkhbox.c
gtk2-1.0.1 ext/gtk2/rbgtkhbox.c
gtk2-1.0.1-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-1.0.0-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-1.0.0 ext/gtk2/rbgtkhbox.c
gtk2-0.90.9 ext/gtk2/rbgtkhbox.c
gtk2-0.90.9-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.90.8-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.90.8 ext/gtk2/rbgtkhbox.c