X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fesmart_trans_x11%2Frb_esmart_trans_x11.c;h=d4a75d55591eb3d98ff97d16f43f851338f933ac;hb=1969f6740e354d24f5a05436d0d3ffa63f9dbae9;hp=a06f168b4d7e66b4e6260effc5e7375327b50439;hpb=f48bba2d3cf64903ab176f6f957589a0a9ffa660;p=ruby-esmart.git diff --git a/src/esmart_trans_x11/rb_esmart_trans_x11.c b/src/esmart_trans_x11/rb_esmart_trans_x11.c index a06f168..d4a75d5 100644 --- a/src/esmart_trans_x11/rb_esmart_trans_x11.c +++ b/src/esmart_trans_x11/rb_esmart_trans_x11.c @@ -1,6 +1,4 @@ /* - * $Id: rb_esmart_trans_x11.c 356 2006-02-10 18:27:31Z tilman $ - * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * * This library is free software; you can redistribute it and/or @@ -27,6 +25,8 @@ #include "../rb_esmart.h" +static VALUE cWindow; + static VALUE c_init (VALUE self, VALUE evas) { CHECK_CLASS (evas, cEvas); @@ -87,11 +87,15 @@ static VALUE c_freshen (VALUE self, VALUE x, VALUE y, VALUE w, VALUE h) void Init_esmart_trans_x11 (void) { - VALUE c; + VALUE m, c; rb_require ("esmart"); rb_require ("ecore_x"); + m = rb_const_get (rb_cModule, rb_intern ("Ecore")); + m = rb_const_get (m, rb_intern ("X")); + cWindow = rb_const_get (m, rb_intern ("Window")); + c = rb_define_class_under (mEsmart, "TransX11", cEvasObject); rb_define_method (c, "initialize", c_init, 1);