Sha256: d7aea7de5b5fac8487b2054d5d50364de1e1ac0001aa17ac677d3b9134d133bd

Contents?: true

Size: 899 Bytes

Versions: 15

Compression:

Stored size: 899 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(argc, argv, self)
    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

15 entries across 15 versions & 1 rubygems

Version Path
gtk2-0.90.7-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.90.7 ext/gtk2/rbgtkhbox.c
gtk2-0.90.6 ext/gtk2/rbgtkhbox.c
gtk2-0.90.6-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.90.5 ext/gtk2/rbgtkhbox.c
gtk2-0.90.5-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.90.4 ext/gtk2/rbgtkhbox.c
gtk2-0.90.4-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.90.3 ext/gtk2/rbgtkhbox.c
gtk2-0.90.3-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.90.2 ext/gtk2/rbgtkhbox.c
gtk2-0.90.2-x86-mingw32 ext/gtk2/rbgtkhbox.c
gtk2-0.20.1 src/rbgtkhbox.c
gtk2-0.20.0.1 src/rbgtkhbox.c
gtk2-0.20.0 src/rbgtkhbox.c