Disabled Ecore::X.default_root_window.
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 7 May 2007 18:37:25 +0000 (20:37 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 7 May 2007 18:37:25 +0000 (20:37 +0200)
src/ecore_x/rb_ecore_x.c

index d309abcb09d94ffb78329032453d62fab23cecc5..c0c358fd65ff6701f0579c3044416cd6a33c2873 100644 (file)
@@ -28,7 +28,9 @@
 #include "rb_window.h"
 #include "rb_cursor.h"
 
+#if 0
 static VALUE default_root;
+#endif
 
 static void at_exit ()
 {
@@ -36,10 +38,12 @@ static void at_exit ()
        ecore_shutdown ();
 }
 
+#if 0
 static VALUE m_default_root_window_get (VALUE self)
 {
        return default_root;
 }
+#endif
 
 static VALUE c_ev_key_down_init (VALUE self, VALUE event)
 {
@@ -384,16 +388,21 @@ void Init_ecore_x (void)
        atexit (at_exit);
 
        mX = rb_define_module_under (mEcore, "X");
+
+#if 0
        rb_define_module_function (mX, "default_root_window",
                                   m_default_root_window_get, 0);
+#endif
 
        Init_Window ();
        Init_Cursor ();
 
+#if 0
        /* now create the default root window object */
        w = DefaultRootWindow (ecore_x_display_get ());
        default_root = TO_ECORE_X_WINDOW (Qnil, w);
        rb_global_variable (&default_root);
+#endif
 
        /* event mask values */
        c = rb_define_class_under (mX, "EventMask", rb_cObject);