a major first for me
cairo-clock is now officially included in the repositories for Ubuntu 6.10 (Edgy Eft) and upcoming Ubuntu 7.04 (Feisty Fawn). This is quite something for me, sending chills down my spine!
There is more to come on several fronts. You just wait, see and be delighted *g*
So far I only know of Ubuntu now offering cairo-clock in its repositories. I have not yet heard about other distributions including it in their repositories. There are more than enough packaging contributions from the community for the different flavours *hint.hint*.
December 13th, 2006 at 5:05 pm
Cairo clock is in Mandriva since 17 May : http://sophie.zarb.org/viewrpm/8241d1ba2a62e401ba87581a7229a472
And therefore, it is shipped in Mandriva 2006.0, in the contribs medias.
( but I guess no one took the time to write a newsletter about it )
December 13th, 2006 at 5:11 pm
0.3.2 had been added to Mandriva on May 17 and is in Mandriva 2007.0 which was released in September
ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/2007.0/i586/media/contrib/release/cairo-clock-0.3.2-4mdv2007.0.i586.rpm
December 13th, 2006 at 5:24 pm
Gentoo does, and has for a bit now.
http://packages.gentoo.org/search/?sstring=cairo-clock
December 13th, 2006 at 5:33 pm
http://frugalware.org/packages/10595
Frugalware Linux has had it for quite a few months now.
December 13th, 2006 at 5:48 pm
Oh, I had no idea. This is really nice to know! Thanks for the heads up, folks!
December 13th, 2006 at 6:15 pm
I don’t think you’re likely to ever get submissions for RHL; cairo didn’t even exist in Fedora 4, let alone RHL9.
December 19th, 2006 at 9:08 pm
when are we going to see the "day" in the "date" inside the cairo-clock?
December 20th, 2006 at 11:48 pm
like this http://home.comcast.net/~funtoos/cairo-clock-day.png
December 21st, 2006 at 12:40 am
I just wrote the patch, please include it in next patch:
$ diff -u cairo-clock.c~ cairo-clock.c
— cairo-clock.c~ 2006-04-01 10:37:38.000000000 -0800
+++ cairo-clock.c 2006-12-20 15:17:27.977303074 -0800
@@ -122,6 +122,7 @@
int g_iDay;
int g_iMonth;
char g_acDate[6];
+char g_acDay[4];
static time_t g_timeOfDay;
struct tm* g_pTime;
int g_i24 = 0; /* make/don’t make hour-hand use 24h-display */
@@ -362,6 +363,32 @@
g_iDay = g_pTime->tm_mday;
g_iMonth = g_pTime->tm_mon + 1;
sprintf (g_acDate, "%02d/%02d", g_iDay, g_iMonth);
+ switch(g_pTime->tm_wday)
+ {
+ case 0:
+ sprintf (g_acDay, "%03s", "SUN");
+ break;
+ case 1:
+ sprintf (g_acDay, "%03s", "MON");
+ break;
+ case 2:
+ sprintf (g_acDay, "%03s", "TUE");
+ break;
+ case 3:
+ sprintf (g_acDay, "%03s", "WED");
+ break;
+ case 4:
+ sprintf (g_acDay, "%03s", "THU");
+ break;
+ case 5:
+ sprintf (g_acDay, "%03s", "FRI");
+ break;
+ case 6:
+ sprintf (g_acDay, "%03s", "SAT");
+ break;
+ default:
+ break;
+ }
cairo_set_operator (g_pMainContext, CAIRO_OPERATOR_SOURCE);
@@ -384,10 +411,12 @@
cairo_set_line_width (g_pMainContext, 5.0f);
cairo_text_extents (g_pMainContext, g_acDate, &textExtents);
cairo_rotate (g_pMainContext, (M_PI/180.0f) * 90.0f);
- cairo_move_to (g_pMainContext,
- -textExtents.width / 2.0f,
+ cairo_move_to (g_pMainContext, -textExtents.width / 2.0f,
2.0f * textExtents.height);
cairo_show_text (g_pMainContext, g_acDate);
+ cairo_move_to (g_pMainContext, -textExtents.width / 2.0f+2.0f,
+ 2.0f * textExtents.height-25.0f);
+ cairo_show_text (g_pMainContext, g_acDay);
cairo_restore (g_pMainContext);
}
December 21st, 2006 at 8:00 am
After packaging the last version, I have been waiting for the smooooth version to include in openSUSE build-service repository.
Cheers
-J
December 26th, 2006 at 7:50 pm
works beautifully on Edgy