Sha256: c6090e5486b355964f45aa58af41cb65bb56bb5c56d17dff237978fda9917365

Contents?: true

Size: 1.17 KB

Versions: 15

Compression:

Stored size: 1.17 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(self)
	VALUE self;
{
	G_INITIALIZE(self, gtk_window_group_new());
	return Qnil;
}

static VALUE
rbgwingrp_add_window(self, window)
	VALUE self, window;
{
	gtk_window_group_add_window(GTK_WINDOW_GROUP(RVAL2GOBJ(self)), 
                                    GTK_WINDOW(RVAL2GOBJ(window)));
	return self;
}

static VALUE
rbgwingrp_remove_window(self, window)
	VALUE self, 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

15 entries across 15 versions & 1 rubygems

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