Introducing: Clutter-vala!

Matthew Allum asked me to maintain the Clutter Vala bindings on the clutter repository and today we just moved the code and I added the test case for the actors to the source tree. You can read the announcement on the clutter blog.

OGG / YouTube

Now you can grab them from the official clutter repository:

$ svn co http://svn.o-hand.com/repos/clutter/trunk/bindings/clutter-vala/clutter

Or browse as well. I would like to thank Matthew and Juerg for being both very supportive maintainers of both Clutter and Vala.

Timeline Widget

I’ve been working on a generic time group selector widget, a similar widget to the one used on F-Spot. I’m implementing it in Vala so it can be reused for other languages/apps/libraries.

So far, it takes a data model that may contain a GDate field, and it generates bars with the amount of items of each month:

Obviously it needs some work, but it’s going pretty straightforward and it can be used as an example on how to create widgets with the Cairo bindings.

I’ve uploaded the code to a public git repository:

$ git clone http://www.gnome.org/~aruiz/vala/time-select.git

To test it, you only need to have vala installed (get the latest release) and just run make.

Advertisements

4 thoughts on “Introducing: Clutter-vala!

  1. quim@ubuntu:~/time-select$ make
    valac -g –pkg gtk+-2.0 –pkg cairo –pkg gdk-2.0 –pkg math -o time-select time-select.vala
    error: math not found in specified Vala API directories
    Compilation failed: 1 error(s), 0 warning(s)
    make: *** [all] Error 1
    I’m using vala 0.1.3
    Any hints???
    Thanks
    Quim

    Like

  2. There were some changes in the vala apis in the latest vala.
    I updated the changes to the repository (basically, remove –pkg math from the Makefile and “using Math;” from the vala source.

    Like

  3. Yeah, I thought the same but still with no luck:
    quim@ubuntu:~/time-select$ valac -g –pkg gtk+-2.0 –pkg cairo –pkg gdk-2.0 -o time-select time-select.vala
    time-select.c: In function ‘gtk_time_select_models_set_model’:
    time-select.c:105: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:105: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:105: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:105: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:117: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:117: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:117: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:117: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c:121: error: ‘GtkTimeSelectModels’ has no member named ‘priv’
    time-select.c: In function ‘gtk_time_select_models_constructor’:
    time-select.c:302: error: ‘GtkTimeSelectModelsClass’ undeclared (first use in this function)
    time-select.c:302: error: (Each undeclared identifier is reported only once
    time-select.c:302: error: for each function it appears in.)
    time-select.c:302: error: ‘klass’ undeclared (first use in this function)
    time-select.c:305: error: ‘GTK_TYPE_TIME_SELECT_MODELS’ undeclared (first use in this function)
    time-select.c:308: warning: assignment makes pointer from integer without a cast
    error: cc exited with status 256
    Compilation failed: 1 error(s), 0 warning(s)
    Now I think it’s a gcc error!!!
    Thanks
    Quim

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s