I have emailed Damon some new Windows packages. The pkg-config file I posted on this email list had some problems with it which I have fixed in the new packages (that will teach me for posting something without testing it!). Instructions for using the new packages on Windows:

These instructions assume that you have downloaded the latest GTK+ files from http://www.gtk.org/download-windows.html and that you are using the MinGW distribution of gcc with MinSYS (http://www.mingw.org/) and pkg-config.

1. Unzip the files into the same directory as the other GTK+ files . Maintain the directory structure within the .zip files by extracting them with 'folder names'.
2. Write a test program for GooCanvas. I have included a simple test program below for reference.
3. Compile the test program using the following commands:
gcc -o test.exe `pkg-config --cflags gtk+-2.0` `pkg-config --cflags goocanvas ` test.c `pkg-config --libs gtk+-2.0` `pkg-config --libs goocanvas`

******************************* test.c*************************************
#include <gtk/gtk.h>
#include <goocanvas/goocanvas.h>

static gboolean on_delete_event(GtkWidget* window,GdkEvent* event,gpointer unused_data)
    return(FALSE); //do not prevent window from being closed (destroyed)

static void on_destroy_event(GtkWidget* window,GdkEvent* event,gpointer unused_data)

int main(int argc,char* argv[])
    GtkWidget* window;
    GtkWidget* canvas;
    GooCanvasItemModel* root;
    GooCanvasItemModel* rectangle;

    //Initialize GTK+
    gtk_init(&argc, &argv);

    //Create GTK+ the window
    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

    //Create canvas
    canvas = goo_canvas_new();

    root = goo_canvas_group_model_new(NULL,NULL);
    rectangle = goo_canvas_rect_model_new(root,
                                          75.0, //x
                                          75.0, //y
                                          50.0,  //width,
                                          50.0,  //height
                                          "line-width", 5.0,

    //Connect signals

    //Pass control to the GTK+ main event loop.

    return 0;


That is it!


Murray Cumming wrote:
On Fri, 2008-06-13 at 11:16 +0100, Damon Chaplin wrote:
On Fri, 2008-06-13 at 11:10 +0100, Damon Chaplin wrote:
On Tue, 2008-06-10 at 20:22 +1000, Richard Gipps wrote:
Hi Jamie,
                I have attached the goocanvas.pc file. I did not
realise it had been created as part of the make process. If it works I
will craete a new Windows package with it included.
If you do create a new package, can you put all the library/devel files
together in one zip file, and call it something like
goocanvas-0.10-win32.zip so it is obviously for Windows.
Actually having looked at http://www.gtk.org/download-windows.html we
should probably keep the binary/devel files split.

So goocanvas-0.10-win32.zip and goocanvas-dev-0.10-win32.zip would be

And we could distribute this on ftp.gnome.org, along with the gtk+ win32
stuff. Ask me if you need help with that.