From ab7b3b89f6a3a3069871ca5f59722a3f23e2f631 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Mon, 7 May 2007 20:37:25 +0200 Subject: [PATCH] Disabled Ecore::X.default_root_window. --- src/ecore_x/rb_ecore_x.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ecore_x/rb_ecore_x.c b/src/ecore_x/rb_ecore_x.c index d309abc..c0c358f 100644 --- a/src/ecore_x/rb_ecore_x.c +++ b/src/ecore_x/rb_ecore_x.c @@ -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); -- 2.30.2