Re: More Gtk2 -> Gtk3 Notes
- From: Terence Ferraro <terencejferraro gmail com>
- To: GTK-Perl List <gtk-perl-list gnome org>
- Subject: Re: More Gtk2 -> Gtk3 Notes
- Date: Sun, 27 Apr 2014 03:05:28 -0400
Oops, I actually meant to include additional explanation.
A helpful individual in the perl IRC channel provided this little gem to me:
%Gtk2:: = %Gtk3::;
Combined with the previously attached Gtk3.pm file, it has allowed me to use one source code branch supporting both Gtk2 and Gtk3 (while, essentially, leaving the entire codebase using Gtk2-> calls). There were a couple of irreconcilable caveats that were mentioned in my previous notes (specifically, image surfaces). In that case, I used a few if statements. Basically, the current source of our application has no more than 10 or 15 such if statements (in a VERY large codebase).
Keep in mind, of course, any use of this will break with Gtk3 syntax as it more or less restores Gtk2 syntax.
The changes in there aren't the prettiest, but, hope someone else finds this useful.. =)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]