projects
/
ruby-esmart.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't depend on header files for class information.
[ruby-esmart.git]
/
src
/
esmart_trans_x11
/
rb_esmart_trans_x11.c
diff --git
a/src/esmart_trans_x11/rb_esmart_trans_x11.c
b/src/esmart_trans_x11/rb_esmart_trans_x11.c
index 6f50866cdc595393df975df3103f17f3d26b5933..fa2983698d9e47f9c08f4025350996a6021f4730 100644
(file)
--- a/
src/esmart_trans_x11/rb_esmart_trans_x11.c
+++ b/
src/esmart_trans_x11/rb_esmart_trans_x11.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_esmart_trans_x11.c
36 2004-07-25 10:45:47
Z tilman $
+ * $Id: rb_esmart_trans_x11.c
41 2004-07-25 13:15:54
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-23,7
+23,6
@@
#include <Esmart/Esmart_Trans_X11.h>
#include <rb_evas.h>
#include <rb_evas_object.h>
#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"
#include "../rb_esmart.h"
@@
-65,9
+64,14
@@
static VALUE c_type_set (VALUE self, VALUE val)
static VALUE c_window_set (VALUE self, VALUE window)
{
static VALUE c_window_set (VALUE self, VALUE window)
{
+ static VALUE c;
+
GET_OBJ (self, Evas_Object *, e);
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);
GET_OBJ (window, Ecore_X_Window, w);
esmart_trans_x11_window_set (*e, *w);