Sha256: 2d9c2aaba9785323c9e3223a64df4c99cefc68ad3833c91fa989e89bcd2d184f

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

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

  rbgtkhandlebox.c -

  $Author: ggc $
  $Date: 2007/07/13 14:27:09 $

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

#include "global.h"

static VALUE
hb_initialize(VALUE self)
{
    RBGTK_INITIALIZE(self, gtk_handle_box_new());
    return Qnil;
}

static VALUE
hb_child_detached(VALUE self)
{
    return CBOOL2RVAL(GTK_HANDLE_BOX(RVAL2GOBJ(self))->child_detached);
}

void 
Init_gtk_handle_box()
{
    VALUE gHandleBox = G_DEF_CLASS(GTK_TYPE_HANDLE_BOX, "HandleBox", mGtk);

    rb_define_method(gHandleBox, "initialize", hb_initialize, 0);
    rb_define_method(gHandleBox, "child_detached?", hb_child_detached, 0);
    rb_undef_method(gHandleBox, "shadow");
    rb_undef_method(gHandleBox, "shadow=");
    rb_undef_method(gHandleBox, "set_shadow");
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gtk2-1.0.0-x86-mingw32 ext/gtk2/rbgtkhandlebox.c
gtk2-1.0.0 ext/gtk2/rbgtkhandlebox.c
gtk2-0.90.9 ext/gtk2/rbgtkhandlebox.c
gtk2-0.90.9-x86-mingw32 ext/gtk2/rbgtkhandlebox.c
gtk2-0.90.8-x86-mingw32 ext/gtk2/rbgtkhandlebox.c
gtk2-0.90.8 ext/gtk2/rbgtkhandlebox.c