From 91658927ef6aa68a93c42ef538cfd508d6a0b9aa Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 19 Aug 2004 21:02:11 +0000 Subject: [PATCH] API tweaks. --- src/ecore_x/rb_window.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ecore_x/rb_window.c b/src/ecore_x/rb_window.c index 04bb116..525281a 100644 --- a/src/ecore_x/rb_window.c +++ b/src/ecore_x/rb_window.c @@ -1,5 +1,5 @@ /* - * $Id: rb_window.c 77 2004-08-19 17:39:29Z tilman $ + * $Id: rb_window.c 78 2004-08-19 21:02:11Z tilman $ * * Copyright (C) 2004 ruby-ecore team (see AUTHORS) * @@ -177,18 +177,18 @@ static VALUE c_resize (VALUE self, VALUE w, VALUE h) return Qnil; } -static VALUE c_get_size (VALUE self) +static VALUE c_size_get (VALUE self) { - int x = 0, y = 0; + int w = 0, h = 0; GET_OBJ (self, RbWindow, win); - ecore_x_window_size_get (win->real, &x, &y); + ecore_x_window_size_get (win->real, &w, &h); - return rb_ary_new3 (2, INT2FIX (x), INT2FIX (y)); + return rb_ary_new3 (2, INT2FIX (w), INT2FIX (h)); } -static VALUE c_get_geometry (VALUE self) +static VALUE c_geometry_get (VALUE self) { int x = 0, y = 0, w = 0, h = 0; @@ -248,8 +248,8 @@ void Init_Window (void) rb_define_method (cWindow, "lower", c_lower, 0); rb_define_method (cWindow, "move", c_move, 2); rb_define_method (cWindow, "resize", c_resize, 2); - rb_define_method (cWindow, "get_size", c_get_size, 0); - rb_define_method (cWindow, "get_geometry", c_get_geometry, 0); + rb_define_method (cWindow, "size", c_size_get, 0); + rb_define_method (cWindow, "geometry", c_geometry_get, 0); rb_define_method (cWindow, "set_event_mask", c_set_event_mask, 1); rb_define_method (cWindow, "unset_event_mask", c_unset_event_mask, 1); -- 2.30.2