[Galago-commits] r3008 - in trunk/notify-sharp: . src
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Thu Mar 20 06:48:56 PDT 2008
Author: slomo
Date: 2008-03-20 06:48:55 -0700 (Thu, 20 Mar 2008)
New Revision: 3008
Modified:
trunk/notify-sharp/ChangeLog
trunk/notify-sharp/src/Global.cs
trunk/notify-sharp/src/Notification.cs
Log:
* src/Global.cs:
* src/Notification.cs:
Use uint as internal type for the close reason.
Modified: trunk/notify-sharp/ChangeLog
===================================================================
--- trunk/notify-sharp/ChangeLog 2008-03-20 13:42:16 UTC (rev 3007)
+++ trunk/notify-sharp/ChangeLog 2008-03-20 13:48:55 UTC (rev 3008)
@@ -1,5 +1,11 @@
2008-03-20 Sebastian Dröge <slomo at circular-chaos.org>
+ * src/Global.cs:
+ * src/Notification.cs:
+ Use uint as internal type for the close reason.
+
+2008-03-20 Sebastian Dröge <slomo at circular-chaos.org>
+
* configure.ac:
Require GTK# >= 2.10.1 for Gtk.StatusIcon.
Modified: trunk/notify-sharp/src/Global.cs
===================================================================
--- trunk/notify-sharp/src/Global.cs 2008-03-20 13:42:16 UTC (rev 3007)
+++ trunk/notify-sharp/src/Global.cs 2008-03-20 13:48:55 UTC (rev 3008)
@@ -40,14 +40,14 @@
event ActionInvokedHandler ActionInvoked;
}
- public enum CloseReason {
+ public enum CloseReason : uint {
Expired = 1,
User = 2,
API = 3,
Reserved = 4
}
- internal delegate void NotificationClosedHandler (uint id, CloseReason reason);
+ internal delegate void NotificationClosedHandler (uint id, uint reason);
internal delegate void ActionInvokedHandler (uint id, string action);
public struct ServerInformation {
Modified: trunk/notify-sharp/src/Notification.cs
===================================================================
--- trunk/notify-sharp/src/Notification.cs 2008-03-20 13:42:16 UTC (rev 3007)
+++ trunk/notify-sharp/src/Notification.cs 2008-03-20 13:48:55 UTC (rev 3008)
@@ -329,12 +329,12 @@
shown = false;
}
- private void OnClosed (uint id, CloseReason reason) {
+ private void OnClosed (uint id, uint reason) {
if (this.id == id) {
this.id = 0;
shown = false;
if (Closed != null) {
- Closed (this, new CloseArgs (reason));
+ Closed (this, new CloseArgs ((CloseReason) reason));
}
}
}
More information about the galago-commits
mailing list