libccc

CCC in a geometry application

Canek Peláez Valdés is creating a nice geometry application (english) based upon the CCC canvas library. There's even a really interesting flash demo (english) that demonstrates some of the ideas for the application.

He's blogging a lot right now, which might be a pretty nice addition for Planet GNOME Hispano.

Testing the Limits

This started as something really easy, but very quickly became really complex. Alex suggested to take a look at the camera concept of piccolo. Yesterday late I started to create something like this:

[A minimap in CCC]

Testing and Hacking…

Having tests for your projects is nice (others consider it as necessary, but that's not part of this post). Well, as with many brand new projects, people get suggested to use the trunk version as in subversion. This brought me to a really annoying problem: People were complaining about a missing macro (which was AM_PATH_CHECK). Of couse, I could argue now whether a developer should have this installed, but I came to the conclusion that I shouldn't imply any piece of installed software that's not absolutely necessary to build.

Fortunately the people are Ubuntu users, so the solution for them was quite easy (apt-get install check). But I was thinking about doing this a bit more cleverly. Ubuntu currently delivers check 0.9.3, version 0.9.4 includes check.pc, which is nice but unusable for me (Ubuntu Edgy, Feisty already has this). So, finally I started to improve my m4 skills and provide some code (that you're free to copy) that works as it should:

PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[
ifdef([AM_PATH_CHECK],
[AM_PATH_CHECK],
[AC_MSG_RESULT([no, testing is disabled])])
])

AM_CONDITIONAL([HAVE_CHECK],[test "x$CHECK_CFLAGS" != "x"])

You might want to replace the second AM_PATH_CHECK with AM_PATH_CHECK([0.8.2]) or your required version.

ImendioConf and LWE

So, I haven't been blogging for quite some time. And I actually have to good excuses for that: I have been really busy during the last weeks (ImendioConf took place in the beginning of November; Linux World Expo in Cologne the week after) and my server has been down for 2 weeks (I'm sorry).

But now things are getting back up again (at least most of the SVN trees and web sites are) and I can catch up with some things.

libccc update

Editable Text

I just finished the text editing part of libccc (which is mostly a port of the GnomeCanvasTextEditable that I wrote for criawips). Check out libccc from subversion (new URL) and play around with it.

libccc download

So, now you can download a tarball of libccc (criawips' cairo based canvas).

Canvas Sweetness

I'm almost finished with my current project. A GTK+ and cairo based canvas.

It's pretty nice as it has got several nice features like:

  • Model/View split
  • API similar to GNOME canvas (easy to learn)
  • Cairo rendered Sweetness
  • GObject based API
  • Finer grained signal handling
  • Choose whether or not to have pixel-aligned objects
  • Small demo application showing some of its features

Syndicate content