Sha256: 49796bf2e265da922d3bdfdb02e57124981ad6e12a22d4a09289c00226ac4a6c
Contents?: true
Size: 1.14 KB
Versions: 12
Compression:
Stored size: 1.14 KB
Contents
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /************************************************ rbgtkwindowgroup.c - $Author: mutoh $ $Date: 2003/01/19 14:28:25 $ Copyright (C) 2002,2003 Masao Mutoh ************************************************/ #include "global.h" static VALUE rbgwingrp_initialize(VALUE self) { G_INITIALIZE(self, gtk_window_group_new()); return Qnil; } static VALUE rbgwingrp_add_window(VALUE self, VALUE window) { gtk_window_group_add_window(GTK_WINDOW_GROUP(RVAL2GOBJ(self)), GTK_WINDOW(RVAL2GOBJ(window))); return self; } static VALUE rbgwingrp_remove_window(VALUE self, VALUE window) { gtk_window_group_remove_window(GTK_WINDOW_GROUP(RVAL2GOBJ(self)), GTK_WINDOW(RVAL2GOBJ(window))); return self; } void Init_gtk_windowgroup() { VALUE gWindowGroup = G_DEF_CLASS(GTK_TYPE_WINDOW_GROUP, "WindowGroup", mGtk); rb_define_method(gWindowGroup, "initialize", rbgwingrp_initialize, 0); rb_define_method(gWindowGroup, "add", rbgwingrp_add_window, 1); rb_define_method(gWindowGroup, "remove", rbgwingrp_remove_window, 1); }
Version data entries
12 entries across 12 versions & 1 rubygems