From 98f3ef2689de06e8ab8b46a91acfa7dd2056a3a6 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Mon, 5 Mar 2012 12:19:59 +0100 Subject: Imported Upstream version 0.5.1 --- src/deamon.vala | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src/deamon.vala') diff --git a/src/deamon.vala b/src/deamon.vala index ceecf1b..b622028 100644 --- a/src/deamon.vala +++ b/src/deamon.vala @@ -24,16 +24,26 @@ namespace GnomePie { ///////////////////////////////////////////////////////////////////////// public class Deamon : GLib.Object { + + ///////////////////////////////////////////////////////////////////// + /// The current version of Gnome-Pie + ///////////////////////////////////////////////////////////////////// + + public static string version; ///////////////////////////////////////////////////////////////////// /// The beginning of everything. ///////////////////////////////////////////////////////////////////// public static int main(string[] args) { + version = "0.5.1"; + Logger.init(); Gdk.threads_init(); Gtk.init(ref args); Paths.init(); + + message("Welcome to Gnome-Pie " + version + "!"); // create the Deamon and run it var deamon = new GnomePie.Deamon(); @@ -90,6 +100,9 @@ public class Deamon : GLib.Object { message("Removed file \"%s\"", Paths.pie_config); if (GLib.FileUtils.remove(Paths.settings) == 0) message("Removed file \"%s\"", Paths.settings); + + Logger.stats("LAUNCH RESET"); + return; } @@ -107,11 +120,17 @@ public class Deamon : GLib.Object { var data = new Unique.MessageData(); data.set_text(open_pie, open_pie.length); app.send_message(Unique.Command.ACTIVATE, data); + + Logger.stats("LAUNCH PIE " + open_pie); + return; } message("Gnome-Pie is already running. Sending request to open config menu."); app.send_message(Unique.Command.ACTIVATE, null); + + Logger.stats("LAUNCH CONFIG"); + return; } @@ -139,7 +158,6 @@ public class Deamon : GLib.Object { PieManager.init(); Icon.init(); - ThemedIcon.init(); // launch the indicator this.indicator = new Indicator(); @@ -150,6 +168,7 @@ public class Deamon : GLib.Object { // finished loading... so run the prog! message("Started happily..."); + Logger.stats("LAUNCH " + version); // open pie if neccessary if (open_pie != null) PieManager.open_pie(open_pie); -- cgit v1.2.3