From 0b56dfbf01171226a0bb035afcd13358b6477710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 2 Aug 2015 08:18:11 +0200 Subject: Imported Upstream version 0.6.4 --- src/pies/pieManager.vala | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/pies/pieManager.vala') diff --git a/src/pies/pieManager.vala b/src/pies/pieManager.vala index 305b444..d2cc837 100644 --- a/src/pies/pieManager.vala +++ b/src/pies/pieManager.vala @@ -120,6 +120,18 @@ public class PieManager : GLib.Object { } } + ///////////////////////////////////////////////////////////////////// + /// Prints the names of all pies with their IDs. + ///////////////////////////////////////////////////////////////////// + + public static void print_ids() { + foreach(var pie in all_pies.entries) { + if (pie.value.id.length == 3) { + message(pie.value.id + " " + pie.value.name); + } + } + } + ///////////////////////////////////////////////////////////////////// /// Returns the hotkey which the Pie with the given ID is bound to. ///////////////////////////////////////////////////////////////////// -- cgit v1.2.3