Operators '==' and '===' are aliases for 'eql?' now.
[ruby-ecore.git] / src / ecore_x / rb_window.c
index 429559a5e3f760dbf646d23f8a5b99637d912988..9d6d4e09d4d825255157f26fb7e2afe5e8db89cf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_window.c 102 2004-08-28 10:00:03Z tilman $
+ * $Id: rb_window.c 108 2004-08-31 18:44:44Z tilman $
  *
  * Copyright (C) 2004 ruby-ecore team (see AUTHORS)
  *
@@ -269,7 +269,7 @@ static VALUE c_resize (VALUE self, VALUE w, VALUE h)
        Check_Type (w, T_FIXNUM);
        Check_Type (h, T_FIXNUM);
 
-       ecore_x_window_move (win->real, FIX2INT (w), FIX2INT (h));
+       ecore_x_window_resize (win->real, FIX2INT (w), FIX2INT (h));
 
        return Qnil;
 }
@@ -486,7 +486,9 @@ void Init_Window (void)
        rb_define_singleton_method (cWindow, "new", c_new, -1);
        rb_define_method (cWindow, "initialize", c_init, -1);
        rb_define_method (cWindow, "inspect", c_inspect, 0);
+       rb_define_method (cWindow, "eql?", c_equal_value, 1);
        rb_define_method (cWindow, "==", c_equal_value, 1);
+       rb_define_method (cWindow, "===", c_equal_value, 1);
        rb_define_method (cWindow, "configure", c_configure, -1);
        rb_define_method (cWindow, "show", c_show, 0);
        rb_define_method (cWindow, "hide", c_hide, 0);