/*
- * $Id: rb_window.c 93 2004-08-23 08:57:10Z tilman $
+ * $Id: rb_window.c 95 2004-08-23 11:05:15Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
{
GET_OBJ (self, RbWindow, win);
- if (win->real) {
- ecore_x_window_del (win->real);
- win->real = 0;
- }
+ ecore_x_window_del (win->real);
+
+ return Qnil;
+}
+
+static VALUE c_send_delete_request (VALUE self)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_delete_request_send (win->real);
return Qnil;
}
rb_define_method (cWindow, "hide", c_hide, 0);
rb_define_method (cWindow, "visible?", c_visible_get, 0);
rb_define_method (cWindow, "delete", c_delete, 0);
+ rb_define_method (cWindow, "send_delete_request",
+ c_send_delete_request, 0);
rb_define_method (cWindow, "raise", c_raise, 0);
rb_define_method (cWindow, "lower", c_lower, 0);
rb_define_method (cWindow, "reparent", c_reparent, 3);