After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769844 - gnome-games: Fix compile time errors
gnome-games: Fix compile time errors
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-13 15:20 UTC by Adrien Plazas
Modified: 2016-08-14 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ui: Rename quit() into quit_application() in Application (1.68 KB, patch)
2016-08-13 15:23 UTC, Adrien Plazas
committed Details | Review
grilo: Improve errors handling in GriloCover (2.17 KB, patch)
2016-08-13 15:23 UTC, Adrien Plazas
committed Details | Review
utils: Remove the unused Directory.try_next_file() (861 bytes, patch)
2016-08-13 15:23 UTC, Adrien Plazas
committed Details | Review
ui: Handle errors from Runner.resume() (912 bytes, patch)
2016-08-13 15:24 UTC, Adrien Plazas
committed Details | Review
tracker: Make MimeTypeTrackerQuery own its callback (1.06 KB, patch)
2016-08-13 15:24 UTC, Adrien Plazas
committed Details | Review
desktop: Handle errors from DesktopTrackerQuery.process_cursor() (1.06 KB, patch)
2016-08-13 15:24 UTC, Adrien Plazas
committed Details | Review

Description Adrien Plazas 2016-08-13 15:20:48 UTC
Games has several compile time warnings, we should fix at least the ones not related to deprecated API as it should be easy to fix.

Here are the warnings:
ui/display-box.vala:102.33-102.76: warning: Gdk.Cursor.new has been deprecated since 3.16
ui/application-window.vala:272.4-272.31: warning: unhandled error `GLib.Error'
			display_box.runner.resume ();
			^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ui/application.vala:190.2-190.18: warning: Games.Application.quit hides inherited method `GLib.Application.quit'. Use the `new' keyword if hiding was intentional
	private void quit () {
	^^^^^^^^^^^^^^^^^
grilo/grilo-cover.vala:51.13-51.26: warning: unhandled error `GLib.Error'
		var uid = uid.get_uid ();
		          ^^^^^^^^^^^^^^
grilo/grilo-cover.vala:73.4-73.59: warning: unhandled error `GLib.FileError'
			FileUtils.set_data (cover_path, mess.response_body.data);
			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
retro/retro-runner.vala:192.21-192.39: warning: Retro.search_module has been deprecated since 0.8. Use Retro.ModuleQuery.lookup_module_for_basename
utils/directory.vala:19.2-19.32: warning: method `Games.Directory.try_next_file' never used
	private FileInfo? try_next_file (FileEnumerator enumerator) {
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tracker/mime-type-tracker-query.vala:14.23-14.34: warning: copying delegates is not supported
desktop-tracker-query.vala:34.3-34.17: warning: unhandled error `GLib.Error'
		check_uri (uri);
		^^^^^^^^^^^^^^^
desktop-tracker-query.vala:46.8-46.43: warning: unhandled error `GLib.ShellError'
		if (!Shell.parse_argv (command, out args))
		     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
desktop-tracker-query.vala:47.4-47.80: warning: unhandled error `Games.CommandError'
			throw new CommandError.INVALID_COMMAND (_("Invalid command '%s'."), command);
			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Comment 1 Adrien Plazas 2016-08-13 15:23:45 UTC
Created attachment 333230 [details] [review]
ui: Rename quit() into quit_application() in Application

This avoids overriding the quit() method implicitely, which produced a
compile time warning.
Comment 2 Adrien Plazas 2016-08-13 15:23:52 UTC
Created attachment 333231 [details] [review]
grilo: Improve errors handling in GriloCover

This fixes several compile time warnings.
Comment 3 Adrien Plazas 2016-08-13 15:23:59 UTC
Created attachment 333232 [details] [review]
utils: Remove the unused Directory.try_next_file()

This fixes a compile time warning.
Comment 4 Adrien Plazas 2016-08-13 15:24:06 UTC
Created attachment 333233 [details] [review]
ui: Handle errors from Runner.resume()

This avoids a compile time warning.
Comment 5 Adrien Plazas 2016-08-13 15:24:12 UTC
Created attachment 333234 [details] [review]
tracker: Make MimeTypeTrackerQuery own its callback

This avoids a compile time warning.
Comment 6 Adrien Plazas 2016-08-13 15:24:17 UTC
Created attachment 333235 [details] [review]
desktop: Handle errors from DesktopTrackerQuery.process_cursor()

This allows to avoid some compile time warnings.
Comment 7 Adrien Plazas 2016-08-14 13:23:05 UTC
Attachment 333230 [details] pushed as 2d8f28a - ui: Rename quit() into quit_application() in Application
Attachment 333231 [details] pushed as a38035b - grilo: Improve errors handling in GriloCover
Attachment 333232 [details] pushed as b53dc5e - utils: Remove the unused Directory.try_next_file()
Attachment 333233 [details] pushed as ac53b25 - ui: Handle errors from Runner.resume()
Attachment 333234 [details] pushed as b438109 - tracker: Make MimeTypeTrackerQuery own its callback
Attachment 333235 [details] pushed as 97bd9c6 - desktop: Handle errors from DesktopTrackerQuery.process_cursor()