GNOME Bugzilla – Bug 628967
[scanner] Bring back g_file_new_*
Last modified: 2015-02-07 16:54:04 UTC
g_file_new_* constructors for GFile (which is an interface) have regressed since Colin landed his scanner rewrite. It is related to the way static methods are paired, see revision 144cb10 of g-i.
Created attachment 169687 [details] [review] Go back to previously handling of "static interface methods" We were parsing "static methods" for interfaces, but not actually writing them to the GIR file. Previous to the scanner rewrite we just handled them as: g_file_new_for_path => Gio.file_new_for_path So go back to doing that. See bug 572408 for putting them on the interface instead.
Created attachment 169690 [details] [review] Go back to previously handling of static methods on non-GObjects Turns out that the last patch didn't restore 100% compatibility with the pre-rewrite API - we were now generating static methods for records/boxed objects. Here's a new patch that (as far as I know) should give us the exact API as previous. This has a big advantage in not breaking language bindings right now, though we really should make the change sooner rather than later.
Review of attachment 169690 [details] [review]: Looks good to me, this is the right thing until 572408 is fixed.
Attachment 169690 [details] pushed as d80c8a8 - Go back to previously handling of static methods on non-GObjects
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]