GNOME Bugzilla – Bug 588591
Should build with -DGSEAL_ENABLE
Last modified: 2009-09-10 23:01:07 UTC
To be ready for GNOME 3 gcalctool should be able to build with -DGSEAL_ENABLE See http://live.gnome.org/GnomeGoals/UseGseal
Created attachment 138419 [details] [review] Partial fix The patch fixes all issues except those with pending sealings: - GtkObject flags - GtkWidget allocation The patch requires GTK 2.14.0 but that is already the requirement in gcalctool. Should be safe to apply the partial fix now if you wish.
Thanks Thomas! http://git.gnome.org/cgit/gcalctool/commit/?id=70e970cec32e15748be3195c2224358a43be04e0
Re-opening pending GtkObject flags and GtkWidget allocation sealing
Created attachment 142578 [details] [review] Use accessor functions instead direct acces Patch with the remaining functions to compile with -DGSEAL_ENABLED I've used #if GTK_CHECK_VERSION (2,17,7) so is not necessary to bump the required GTK+ version in configure.in
Thanks, please apply
Could someone commit this? (I don't have commit permissions) Thank you!
Comment on attachment 142578 [details] [review] Use accessor functions instead direct acces Committed per Javier request. Thanks
Wouldn't it have been better to make this a macro or something and place it in one header file instead of littering the code with #if #else #endif? Make the macro check the gtk version and use either variant depending on that?
We do something like that in gnome-games: http://git.gnome.org/cgit/gnome-games/tree/libgames-support/games-gtk-compat.h More stuff will be added to that file when I commit my fixes (after 2.28) from bug #586731
I wouldn't worry about it for gcalctool - this branch will soon become 2.28 and be stable. For the 2.29 branch I'll just remove the ifdefs and require the latest GTK.