forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-libs/folks: fix compatibility with vala-0.42+
Closes: https://bugs.gentoo.org/678384 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Mart Raudsepp <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 6a5c9e7e8daf4e1361709a75719c17c8c28a6c4b Mon Sep 17 00:00:00 2001 | ||
From: Rico Tzschichholz <[email protected]> | ||
Date: Fri, 23 Mar 2018 17:55:11 +0100 | ||
Subject: [PATCH] inspect: Adapt to binding change of | ||
Signal.add_emission_hook() in vala 0.41 | ||
|
||
https://git.gnome.org/browse/vala/commit/?id=1d4db9f276c2593f072313864c743c6dd16acf35 | ||
|
||
Reviewed-by: Philip Withnall <[email protected]> | ||
--- | ||
tools/inspect/signal-manager.vala | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/tools/inspect/signal-manager.vala b/tools/inspect/signal-manager.vala | ||
index 4d1b6480..7c5b17a0 100644 | ||
--- a/tools/inspect/signal-manager.vala | ||
+++ b/tools/inspect/signal-manager.vala | ||
@@ -430,7 +430,11 @@ public class Folks.Inspect.SignalManager : Object | ||
return false; | ||
|
||
ulong hook_id = Signal.add_emission_hook (signal_id, | ||
+#if VALA_0_42 | ||
+ detail_quark, this.emission_hook_cb); | ||
+#else | ||
detail_quark, this.emission_hook_cb, null); | ||
+#endif | ||
|
||
/* Store the hook ID so we can list or remove it later */ | ||
HashMap<uint, ulong> hook_ids = | ||
-- | ||
2.18.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters