RE: Display date and time using gtkmm2.4

2006-12-14 Thread SIRISHA MUPPAVARAPU
Thanks Madhusudan... Your pointers were great for me to start off. I was looking for the corresponding method in gtkmm. For those new like me out there... this is what I did: Called: Glib::signal_timeout().connect(sigc::mem_fun(*this,&className::periodicTask),1000); bool className :: periodicT

RE: Display date and time using gtkmm2.4

2006-12-14 Thread SIRISHA MUPPAVARAPU
Thanks for the inputs Madhusudan. I'll definitely try this out and will let you know. Thanks Sirisha On Thu, 2006-12-14 at 10:39 +0530, Madhusudan E wrote: > Hi, > You may use > > For ex: > > g_timeout_add_full(G_PRIORITY_DEFAULT,1000, periodicTask, NULL, > (GDestroyNotify)go_to_timeout); > >

RE: Display date and time using gtkmm2.4

2006-12-13 Thread Madhusudan E
Hi, You may use For ex: g_timeout_add_full(G_PRIORITY_DEFAULT,1000, periodicTask, NULL, (GDestroyNotify)go_to_timeout); Where in , the 'periodicTask' callback will be called every 1 sec (1000 msec), Within this callback you can use, time_t to get the time current time. Update your window and d