Don't use global variables for the Ruby classes.
[ruby-ecore.git] / src / ecore_evas / rb_fb.c
index 86b12c24a3bedcd804ea1da6f599b0a438ed10c2..00635defd22d1f6071db46ddd317e814db4a0884 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id$
+ * $Id: rb_fb.c 25 2004-06-26 23:07:01Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -25,8 +25,6 @@
 #include "rb_ecore_evas_main.h"
 #include "rb_ecore_evas.h"
 
-VALUE cFb;
-
 static VALUE c_init (int argc, VALUE *argv, VALUE self)
 {
        VALUE disp, rot, w, h;
@@ -78,7 +76,7 @@ static VALUE c_new (int argc, VALUE *argv, VALUE klass)
 
 void Init_Fb (void)
 {
-       cFb = rb_define_class_under (mEvas, "Fb", cEcoreEvas);
+       VALUE cFb = rb_define_class_under (mEvas, "Fb", cEcoreEvas);
 
        rb_define_singleton_method (cFb, "new", c_new, -1);
        rb_define_method (cFb, "initialize", c_init, -1);