Cronómetro simple pero útil,lo hice para controlar el tiempo mientras programo. Se le pueden añadir algunas funciones útiles, aquí les dejo el código para quien quiera hacerlo o usarlo.
include gtk/gtk.h
include time.h
include math.h
time_t seconds, start_seconds;
double isec, imin;
double frac, param;
void
update_text (GtkTextBuffer buffer)
{
gchar tiempo;
seconds = time(NULL);
isec = (double) (seconds-start_seconds);
frac = modf( isec/60, &imin);
isec = frac * 60;
tiempo = g_strdup_printf("%003u min : %02u sec", (unsigned int)imin, (unsigned int)isec );... read more
@4 sept. 2012.
Avanzando en el desarrollo del Editor de artículos integrando tinymce con customsite framework y con el componente del nucleo ImageUploader Widget.
https://sourceforge.net/p/customsite/screenshot/screenshot13.png
https://sourceforge.net/p/customsite/screenshot/screenshot12.png
last update 31-07-2012
I have been at the brink of abandon this project but I've retaked it.
New improvements are online as version pre-alpha 0.3.4
Framework is ready for other developers, there are many things to do and many improvements, please contact me for details lpgc.carlos@gmail.com