/*
- * $Id: rb_esmart_trans_x11.c 36 2004-07-25 10:45:47Z tilman $
+ * $Id: rb_esmart_trans_x11.c 41 2004-07-25 13:15:54Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
#include <Esmart/Esmart_Trans_X11.h>
#include <rb_evas.h>
#include <rb_evas_object.h>
-#include <rb_ecore_x_window.h>
#include "../rb_esmart.h"
static VALUE c_window_set (VALUE self, VALUE window)
{
+ static VALUE c;
+
GET_OBJ (self, Evas_Object *, e);
- CHECK_CLASS (window, cEcoreXWindow);
+ if (!c)
+ c = rb_eval_string ("Ecore::X::Window");
+
+ CHECK_CLASS (window, c);
GET_OBJ (window, Ecore_X_Window, w);
esmart_trans_x11_window_set (*e, *w);