Establishing GTK3 port "rules" (and some q.s)
Matthew Brush
mbrush at codebrainz.ca
Sat Feb 21 02:24:49 CET 2015
On 15-02-20 04:13 PM, mike wrote:
> We've got a GTK3 port of some of exo in SpaceFM [1] (with compatibility
> back down to GTK 2.16, and I can probably handle porting the rest
> without too much issue if that's desired. It's pretty clean with not too
> many #ifdefs and a lot of the compatibility code to handle the different
> versions is centralized here [2]. It's been working well for years.
>
> [1] https://github.com/BwackNinja/spacefm/tree/master/src/exo
>
> [2] https://github.com/BwackNinja/spacefm/blob/master/src/gtk2-compat.h
>
This is basically what I did with Mousepad too:
http://git.xfce.org/apps/mousepad/tree/mousepad/mousepad-gtkcompat.h
It's nice to have a shim because it allows to "revert" all the
stupid/pointless API breaks without having to re-write entire program
using worse and slower new APIs and widgets.
Cheers,
Matthew Brush
More information about the Xfce4-dev
mailing list