Older blog entries for lgs (starting at number 1)

25 Jan 2004 (updated 27 Jan 2004 at 17:50 UTC) »

Some progress with the GtkGrid. After trying to get my expose method called without success I realized I have to add the GDK_EXPOSURE_MASK to the main gdk window of the widget.

Then I played with some gtk_paint_* functions and this is what I got. It starts looking like a real Grid :)

This is my tentative Roadmap for the Grid:

  1. Create a GtkGridColumn class that will hold the renderer for that column
  2. Add GtkGridColumns to the GtkGrid and modify the expose event to use the renderers instead of hardcoded drawing stuff.
  3. Add a model property to the GtkGrid and make sure it is a GtkListStore
  4. Work on some key events to navigate through the grid
  5. Add scrolling support
  6. Add more gdk windows for the header and the left sidebar
  7. Make the header and sidebar functional by letting to select whole rows and columns
  8. Gettext support for properties
  9. Drag and drop of columns and rows

You don't see dates on that roadmap, that's right because I don't know how long will it takes me to write each step as this is the first widget I write.

23 Jan 2004 (updated 23 Jan 2004 at 11:58 UTC) »

Yesterday I started to work on a GTK+ widget. After trying the GtkTreeView extensively and talking with some GTK+ gurus (Owen and Kris) I decided to write a Grid Widget from scratch.

I also tryed GtkSheet from the library gtkextra and it is pretty good. But the code is too big and I doubt it will ever get into the gtk library.

So my main goals are (order is significant):

  1. To get a Grid widget for easily edition of big amount of tabular data (think about databases).
  2. To learn how to create a gtk widget
  3. To learn how to create python bindings from a gtk widget
  4. Ideally, to get my code into the gtk library :). There is a bug in bugzilla.gnome.org asking for this widget so if my code is not too bad I may be lucky

So far I have read Havoc's book, gtktreeview.c and the GLib Object System tutorial. I also have the autotools working for this project and already typed some boilerplate code

Let's see what happens....

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!