[Gtk-sharp-list] Gtk.Application patch
Gonzalo Paniagua Javier
gonzalo@ximian.com
13 Apr 2003 15:22:33 +0200
El dom, 13 de 04 de 2003 a las 14:05, Lee Mallabone escribió:
> On Sat, 2003-04-12 at 19:11, Gonzalo Paniagua Javier wrote:
> > >
> > > There's a patch to Gtk.Application from Mathias Hasselmann attached to
> > > bug #40169 (and this mail).
>
> > I think it would be nice to return that value as a DateTime.
>
> How does the attached patch look? It tries to deal with GDK_CURRENT_TIME too...
Oh, sorry, I meant TimeSpan (gtk_get_current_event_time () returns the
number of milliseconds elapsed since the computer is on)... So:
uint millis = gtk_get_current_event_time ();
---
if (millis == 0)
return TimeSpan.Zero;
return new TimeSpan (0, 0, 0, 0, (int) millis);
---
-Gonzalo