[libgames-support] Avoid warning about copying delegates
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgames-support] Avoid warning about copying delegates
- Date: Sat, 19 Sep 2015 23:08:30 +0000 (UTC)
commit 433d543c9b6d24ffc7f367324d1e668bae5ad1b4
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Sep 19 18:02:41 2015 -0500
Avoid warning about copying delegates
http://stackoverflow.com/questions/16693847/how-to-get-rid-of-the-vala-compilation-warning-copying-delegates-is-discouraged
games/scores/context.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/games/scores/context.vala b/games/scores/context.vala
index a09a37b..7bf1fae 100644
--- a/games/scores/context.vala
+++ b/games/scores/context.vala
@@ -61,7 +61,7 @@ public class Context : Object
public Context (string app_name, string dialog_label, Gtk.Window? game_window, CategoryRequestFunc
category_request, Style style)
{
this.game_window = game_window;
- this.category_request = category_request;
+ this.category_request = (key) => { return category_request (key); };
this.style = style;
if (style == Style.PLAIN_DESCENDING || style == Style.TIME_DESCENDING)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]