[tomboy] Sam Lin has provided a patch to address slow Logouts Sam added Stop signal callback in Tomboy and it
- From: Jared L Jennings <jjennings src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy] Sam Lin has provided a patch to address slow Logouts Sam added Stop signal callback in Tomboy and it
- Date: Mon, 16 Jan 2012 16:51:08 +0000 (UTC)
commit 84797b9a9df3c84b329fbed946478f0171f5163c
Author: Jared Jennings <jjennings src gnome org>
Date: Mon Jan 16 11:51:04 2012 -0500
Sam Lin has provided a patch to address slow Logouts
Sam added Stop signal callback in Tomboy and it solved the issue.
bgo #650029
Tomboy/GnomeApplication.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/GnomeApplication.cs b/Tomboy/GnomeApplication.cs
index b076003..b2ef6f0 100644
--- a/Tomboy/GnomeApplication.cs
+++ b/Tomboy/GnomeApplication.cs
@@ -67,6 +67,7 @@ namespace Tomboy
session_client_id);
client.QueryEndSession += OnQueryEndSession;
client.EndSession += OnEndSession;
+ client.Stop += OnStop;
} catch (Exception e) {
Logger.Debug ("Failed to register with session manager: {0}", e.Message);
}
@@ -142,6 +143,10 @@ namespace Tomboy
System.Environment.Exit (0);
}
+ private void OnStop () {
+ Exit(0);
+ }
+
private void OnQueryEndSession (uint flags)
{
Logger.Info ("Received end session query");
@@ -175,6 +180,7 @@ namespace Tomboy
} catch (Exception e) {
Logger.Debug ("Failed to respond to session manager: {0}", e.Message);
}
+ Exit (0);
}
public void OpenUrl (string url, Gdk.Screen screen)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]