After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 587150 - Error auto-marshalling time_t
Error auto-marshalling time_t
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: general
0.7.x
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-27 20:22 UTC by Diego Ongaro
Modified: 2009-09-03 18:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
An example file showing the problem. (146 bytes, text/x-vala)
2009-06-27 20:22 UTC, Diego Ongaro
  Details
glib-2.0: time_t does not have a type_id (675 bytes, patch)
2009-08-30 16:51 UTC, Evan Nemerson
none Details | Review

Description Diego Ongaro 2009-06-27 20:22:23 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:
Comment 1 Diego Ongaro 2009-06-27 20:22:58 UTC
Created attachment 137476 [details]
An example file showing the problem.
Comment 2 Evan Nemerson 2009-08-30 16:51:21 UTC
Created attachment 142078 [details] [review]
glib-2.0: time_t does not have a type_id
Comment 3 Jürg Billeter 2009-09-03 18:16:43 UTC
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.