[java-gnome-hackers] Backporting
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2011-04-12 03:08:29
|
Over the past few days I have (for lack of a better word) backported a number of APIs from java-gnome 4.1 to java-gnome 4.0 These are just simulations, but so far so good - where GTK 3 has hung us out to dry I've been able to wrap the old GTK 2 calls in things that look suspiciously like what the GTK 3 APIs. Currently 'mainline' has, as 4.0.20-dev, Widget.Draw signal wraps Widget.ExposeEvent void overrideFont() wraps modifyFont() void overrideColor() wraps modifyText(), etc ComboBoxText wraps our TextComboBox StateFlags wraps StateType RGBA wraps Color I have no idea if we can keep this up, but I'm trying. With any luck, I'm hoping to reach the point where code that compiles against 4.0.20 can be recompiled against 4.1.1, which would make porting/upgrading a hell of a lot easier. There's no behaviour consistency guarantee, of course - Widget.ExposeEvent and Widget.Draw are not the same thing. And since my code worked with ExposeEvent before, of course it works with "Draw" now. We'll see what happens when we all finally get desktops with a GTK 3 packages on them. Simultaneously I've been merging the 4.0 'mainline' into the 4.1.1-dev branch and reverting all the adaptor cruft that I'm introducing in 4.0.20-dev. AfC Sydney |