GNOME Bugzilla – Bug 513660
Drop gnome-vfs dependency
Last modified: 2008-07-14 17:50:03 UTC
See http://live.gnome.org/GioPort. Following patch replaces the few calls of gnome-vfs functions in bug-buddy with gio.
Created attachment 104192 [details] [review] gio-migration This depends on a not yet released GLib, but 2.15.5 should be released for 2.21.91 and 2.16 will be surely released for 2.22.
- if (gnome_vfs_url_show (link) != GNOME_VFS_OK) { + if (g_app_info_launch_default_for_uri (link, NULL, NULL) == FALSE) { This should use a {Gdk,Eel}AppLaunchContext so it launches on the right screen (the original ought to have used gnome_url_show_on_screen()).
We can import another eel-app-launch-context.[ch] copy in bug-buddy for this, but I think we'd better either commit this without the launch context and a FIXME for 2.22 and use GdkAppLaunchContext in 2.24 or commit this after 2.22 branching with GdkAppLaunchContext.
I'd say to use #if GTK_CHECK_VERSION (2, 15, 0) for the launch context, and not bother with EelLaunchContext for gtk 2.12. case.
*ping*: cosimoc, want to come up with an updated patch?
Created attachment 109536 [details] [review] gio-migration v2 Updated patch, sorry if it took so long.
Created attachment 109538 [details] [review] gio-migration v2 (real one) Sorry, I missed an include and messed up indentation for some reason.
Anyone to review this?
fer: PING.
Cosimo's second patch looks fine to me.
Thanks! setting patch status. we maybe want to branch for 2.22 before committing, maybe not. :-P
Ok, I branched for 2.22, pushed the patch to trunk and bumped the version to 2.23.5. Closing as FIXED. 2008-07-14 Cosimo Cecchi <cosimoc@gnome.org> * README.STABLE_BRANCH: * configure.in: * src/bug-buddy.c: (link_callback): * src/verify-desktop-files.c: (main): Port to GIO and bump version to 2.23.5.