GNOME Bugzilla – Bug 622285
Allow building with Gtk+-3.0
Last modified: 2014-06-08 19:22:48 UTC
Add a configure switch to compile with Gtk+-3.0. Obviously depends on both bug 572332 and bug 612491.
Created attachment 164214 [details] [review] Allow building with Gtk+-3.0 Add a configure switch to select the Gtk+ version to build with. The default is to build against Gtk+-2.0 >= 2.20.0.
To compile with Gtk+3.0, GdkRegion needs to be removed. See bug 623445 from gnome-control-center for some info. (The attachments to bug 572332 and bug 612491 don't deal with GdkRegion)
(In reply to comment #2) > To compile with Gtk+3.0, GdkRegion needs to be removed. See bug 623445 from > gnome-control-center for some info. ... or better bug 587991 - I didn't try to apply the patch to metacity yet, but adapting it should be relatively painless (mutter is a friendly fork of metacity)
Is it necessary to maintain backwards compatibility with GdkRegion? mutter did, defining a new type MetaRegion.
(In reply to comment #4) > Is it necessary to maintain backwards compatibility with GdkRegion? mutter did, > defining a new type MetaRegion. This question is the main reason why I haven't adapted that patch yet :) For mutter it is a hard requirement - the same branch is used for both GNOME's unstable development and Meego's stable releases. It's definitively easier for metacity to bump version requirements - the GdkRegion/cairo_region_t change is Gtk+-3 only though, so this is a question for the maintainers. If depending on Gtk+-3 is OK, then there is a previous patch version using #ifdefs which could be adapted.
You will need to modify some more things other than just adding a configure switch and moving away from GdkRegion. There are some parts that are using the GTK_WIDGET macros which have been removed and also the GtkType which is gone for good.
(In reply to comment #6) > You will need to modify some more things other than just adding a configure > switch and moving away from GdkRegion. > > There are some parts that are using the GTK_WIDGET macros which have been > removed and also the GtkType which is gone for good. I know, that's why the bug depends on bug 572332 and bug 612491 - no need to duplicate the effort here :-)
Review of attachment 164214 [details] [review]: Makes sense. Committed.
[Removing GNOME3.0 target as decided in release-team meeting on March 03, 2011. "nice-to-have" categorisation for GNOME3.0]