/*
- * $Id: rb_window.c 95 2004-08-23 11:05:15Z tilman $
+ * $Id: rb_window.c 97 2004-08-23 18:30:28Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
static VALUE c_title_get (VALUE self)
{
+ char *s;
+
GET_OBJ (self, RbWindow, win);
- return rb_str_new2 (ecore_x_window_prop_title_get (win->real));
+ s = ecore_x_window_prop_title_get (win->real);
+
+ return s ? rb_str_new2 (s) : Qnil;
}
static VALUE c_title_set (VALUE self, VALUE val)