blam r537 - trunk/src
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r537 - trunk/src
- Date: Sun, 6 Apr 2008 14:28:31 +0100 (BST)
Author: cmartin
Date: Sun Apr 6 14:28:31 2008
New Revision: 537
URL: http://svn.gnome.org/viewvc/blam?rev=537&view=rev
Log:
Register with the GNOME session.
Modified:
trunk/src/Application.cs
trunk/src/ChannelCollection.cs
Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs (original)
+++ trunk/src/Application.cs Sun Apr 6 14:28:31 2008
@@ -122,6 +122,9 @@
mIpcHandler = new MessageConnection.MessageReceivedHandler (MessageReceivedCb) ;
messageConn.SetCallback (mIpcHandler);
+
+ Gnome.Client client = new Gnome.Client();
+ client.SaveYourself += SaveMyself;
Proxy.InitProxy ();
Utils.GeckoInit ();
@@ -423,6 +426,11 @@
trayIcon.Show();
args.RetVal = true;
}
+
+ public void SaveMyself(object obj, SaveYourselfArgs args)
+ {
+ QuitActivated(obj, null);
+ }
public void QuitActivated(object obj, EventArgs args)
{
Modified: trunk/src/ChannelCollection.cs
==============================================================================
--- trunk/src/ChannelCollection.cs (original)
+++ trunk/src/ChannelCollection.cs Sun Apr 6 14:28:31 2008
@@ -5,7 +5,6 @@
// (C) 2004 Imendio HB
//
-using Rss;
using System;
using System.Collections;
using System.IO;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]