/*
- * $Id: rb_window.c 85 2004-08-22 11:53:57Z tilman $
+ * $Id: rb_window.c 87 2004-08-22 14:52:05Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
return Qnil;
}
+static VALUE c_focus (VALUE self)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_focus (win->real);
+
+ return Qnil;
+}
+
static VALUE c_move (VALUE self, VALUE x, VALUE y)
{
GET_OBJ (self, RbWindow, win);
rb_define_method (cWindow, "raise", c_raise, 0);
rb_define_method (cWindow, "lower", c_lower, 0);
rb_define_method (cWindow, "reparent", c_reparent, 3);
+ rb_define_method (cWindow, "focus", c_focus, 0);
rb_define_method (cWindow, "move", c_move, 2);
rb_define_method (cWindow, "resize", c_resize, 2);
rb_define_method (cWindow, "size", c_size_get, 0);