Sha256: 235e45c35cc675f03e6cc26b404dd749c96362399ddf6d398a27e7a4b5c656c6
Contents?: true
Size: 883 Bytes
Versions: 15
Compression:
Stored size: 883 Bytes
Contents
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /************************************************ rbgtkviewport.c - $Author: mutoh $ $Date: 2003/02/01 16:46:24 $ Copyright (C) 2002,2003 Ruby-GNOME2 Project Team Copyright (C) 1998-2000 Yukihiro Matsumoto, Daisuke Kanda, Hiroshi Igarashi ************************************************/ #include "global.h" static VALUE vport_initialize(self, hadj, vadj) VALUE self, hadj, vadj; { GtkAdjustment *h_adj = GTK_ADJUSTMENT(RVAL2GOBJ(hadj)); GtkAdjustment *v_adj = GTK_ADJUSTMENT(RVAL2GOBJ(vadj)); RBGTK_INITIALIZE(self, gtk_viewport_new(h_adj, v_adj)); return Qnil; } void Init_gtk_viewport() { VALUE gViewport = G_DEF_CLASS(GTK_TYPE_VIEWPORT, "Viewport", mGtk); rb_define_method(gViewport, "initialize", vport_initialize, 2); }
Version data entries
15 entries across 15 versions & 1 rubygems