GTK+3.x and menus

So, having got kludge3d to the “starts, but doesn’t work” stage, I need to start implementing all the bits that got commented out along the way. For example, there are no menus because the method that was being used (GtkItemFactory) is deprecated (and so is a pain to compile) – time to move to the current methods.

Which would be great if the docs were clear for my use case.

See, I don’t want to just move the whole application over to a Glade designed interface, or use GtkApplication. The sane choice (I thought) was bring things over in a working, if minimal state.

So, I can use glade to build a menubar, save the result to xml. Then I’m failing to add the GObject I load out of the GtkBuilder to the application window I’ve created manually. And every tutorial assumes that I plan to just move everything to glade.

Frustrated, and considering my options…

Porting to GTK+3

For a long time I’ve used kludge3d as the basis for a geometry editing front end to my DPS program. kludge3d is a GTK+2.x app using gtkglext for OpenGL access and I regularly used it under windows and Linux.

Now, kludge3d hasn’t had much upstream development (last release 22/8/2004). That said, I’ve been able to keep it useful against the GTK+2.x series. However recently, getting a GTK+2.x bundle and adding gtkglext to is under windows has become too hard.

Its time to move to GTK+3.0.

First up, oh no, GTK has picked gtkglarea instead of gtkglext. More code churn.

However, though there is lots of code just stubbed out, I at least have a kludge3d binary launching under Linux: