X-Git-Url: http://git.code-monkey.de/?p=ruby-ecore.git;a=blobdiff_plain;f=src%2Fecore_x%2Frb_window.c;fp=src%2Fecore_x%2Frb_window.c;h=f5af7c78d9a168fc17db7e565b846624866db2ba;hp=5c688f767c079fa63f669a9fe8cab5c67f5a1340;hb=ddaa53d3761be0e96352e75e2002072d92389d10;hpb=d19a73b80336ad559df7ee7f9fe7f0529b816316 diff --git a/src/ecore_x/rb_window.c b/src/ecore_x/rb_window.c index 5c688f7..f5af7c7 100644 --- a/src/ecore_x/rb_window.c +++ b/src/ecore_x/rb_window.c @@ -1,5 +1,5 @@ /* - * $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) * @@ -272,9 +272,13 @@ static VALUE c_parent_get (VALUE self) 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)