GNOME Bugzilla – Bug 587150
Error auto-marshalling time_t
Last modified: 2009-09-03 18:16:43 UTC
Please describe the problem: I can't use time_t as a property type because of the following error: time_t.vala.c: In function ‘foo_class_init’: time_t.vala.c:69: error: ‘TYPE_TIME_T’ undeclared (first use in this function) Steps to reproduce: I've provided a small example program that shows this error as time_t.vala. Run: valac time_t.vala Actual results: g_object_class_install_property (G_OBJECT_CLASS (klass), FOO_TIME, g_param_spec_boxed ("time", "time", "time", TYPE_TIME_T, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); Expected results: Treat time_t as an integer type? Does this happen every time? Other information:
Created attachment 137476 [details] An example file showing the problem.
Created attachment 142078 [details] [review] glib-2.0: time_t does not have a type_id
commit 4e84348aaf487f1cf66decf129190cf5d70f24cd Author: Evan Nemerson <evan@polussystems.com> Date: Sun Aug 30 09:47:48 2009 -0700 glib-2.0: time_t does not have a type_id Fixes bug 587150.