Re: some g_time_val methods are unwrapped.



On Wed, 2009-05-06 at 22:28 +0200, Murray Cumming wrote:
> On Wed, 2009-05-06 at 18:32 +0200, Krzesimir Nowak wrote:
> > Hi.
> > 
> > I was using Glib::TimeVal and I wondered if is there a way to convert
> > this structure into Glib::ustring. Glib::TimeVal has no such methods,
> > but in Glib there is a function named g_time_val_to_iso8601, which
> > returns a string containing an iso8601 date.
> > 
> > Generally speaking two functions aren't wrapped:
> > g_time_val_to_iso8601
> > g_time_val_from_iso8601
> > 
> > Second one maybe could be wrapped as a constructor of Glib::TimeVal.
> > Should I file a bug in bugzilla? I could possibly provide a patch.
> 
> Yes, please.
> 
> In the meantime, you can use the C functions with gobj().
> 

Bug in bugzilla:
http://bugzilla.gnome.org/show_bug.cgi?id=581664

Also, a tiny correction - Glib::TimeVal is derived from GTimeVal [and
has no gobj() method], so I can use it directly with C functions.

Krzesimir Nowak



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]