[Galago-commits] r3007 - in trunk/notify-sharp: . docs/en docs/en/Notifications src
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Thu Mar 20 06:42:17 PDT 2008
Author: slomo
Date: 2008-03-20 06:42:16 -0700 (Thu, 20 Mar 2008)
New Revision: 3007
Added:
trunk/notify-sharp/docs/en/Notifications/CloseArgs.xml
trunk/notify-sharp/docs/en/Notifications/CloseReason.xml
Modified:
trunk/notify-sharp/ChangeLog
trunk/notify-sharp/configure.ac
trunk/notify-sharp/docs/en/Notifications/ActionArgs.xml
trunk/notify-sharp/docs/en/Notifications/Global.xml
trunk/notify-sharp/docs/en/Notifications/Notification.xml
trunk/notify-sharp/docs/en/Notifications/ServerInformation.xml
trunk/notify-sharp/docs/en/Notifications/Urgency.xml
trunk/notify-sharp/docs/en/index.xml
trunk/notify-sharp/src/Global.cs
trunk/notify-sharp/src/Notification.cs
Log:
* configure.ac:
Require GTK# >= 2.10.1 for Gtk.StatusIcon.
* src/Global.cs:
Update to notification-daemon DBus interface change.
* src/Notification.cs:
Update for notification-daemon DBus interface change and
add a reason to the Close event.
Allow attaching to a Gtk.StatusIcon.
Add properties for the Id, StatusIcon and AttachWidget.
* docs/en/Notifications/ActionArgs.xml:
* docs/en/Notifications/CloseArgs.xml:
* docs/en/Notifications/CloseReason.xml:
* docs/en/Notifications/Global.xml:
* docs/en/Notifications/Notification.xml:
* docs/en/Notifications/ServerInformation.xml:
* docs/en/Notifications/Urgency.xml:
* docs/en/index.xml:
Update docs.
Modified: trunk/notify-sharp/ChangeLog
===================================================================
--- trunk/notify-sharp/ChangeLog 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/ChangeLog 2008-03-20 13:42:16 UTC (rev 3007)
@@ -1,3 +1,29 @@
+2008-03-20 Sebastian Dröge <slomo at circular-chaos.org>
+
+ * configure.ac:
+ Require GTK# >= 2.10.1 for Gtk.StatusIcon.
+
+ * src/Global.cs:
+ Update to notification-daemon DBus interface change.
+
+ * src/Notification.cs:
+ Update for notification-daemon DBus interface change and
+ add a reason to the Close event.
+
+ Allow attaching to a Gtk.StatusIcon.
+
+ Add properties for the Id, StatusIcon and AttachWidget.
+
+ * docs/en/Notifications/ActionArgs.xml:
+ * docs/en/Notifications/CloseArgs.xml:
+ * docs/en/Notifications/CloseReason.xml:
+ * docs/en/Notifications/Global.xml:
+ * docs/en/Notifications/Notification.xml:
+ * docs/en/Notifications/ServerInformation.xml:
+ * docs/en/Notifications/Urgency.xml:
+ * docs/en/index.xml:
+ Update docs.
+
2007-02-06 Sebastian Dröge <slomo at circular-chaos.org>
* First public release 0.4.0.0
Modified: trunk/notify-sharp/configure.ac
===================================================================
--- trunk/notify-sharp/configure.ac 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/configure.ac 2008-03-20 13:42:16 UTC (rev 3007)
@@ -62,7 +62,7 @@
AM_CONDITIONAL(BUILD_DOCS, false)
fi
-GTK_SHARP_REQ_VERSION=2.6
+GTK_SHARP_REQ_VERSION=2.10.1
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION)
AC_SUBST(GTK_SHARP_LIBS)
Modified: trunk/notify-sharp/docs/en/Notifications/ActionArgs.xml
===================================================================
--- trunk/notify-sharp/docs/en/Notifications/ActionArgs.xml 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/docs/en/Notifications/ActionArgs.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -1,5 +1,5 @@
<Type Name="ActionArgs" FullName="Notifications.ActionArgs">
- <TypeSignature Language="C#" Value="public class ActionArgs : System.EventArgs" />
+ <TypeSignature Language="C#" Value="public class ActionArgs : EventArgs" />
<AssemblyInfo>
<AssemblyName>notify-sharp</AssemblyName>
<AssemblyVersion>0.4.0.0</AssemblyVersion>
@@ -8,34 +8,22 @@
<BaseTypeName>System.EventArgs</BaseTypeName>
</Base>
<Interfaces />
+ <Docs>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
<Members>
+
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ActionArgs (string action);" />
<MemberType>Constructor</MemberType>
- <Parameters>
- <Parameter Name="action" Type="System.String" />
- </Parameters>
- <Docs>
- <param name="action">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Action">
+ <Parameters><Parameter Name="action" Type="System.String" /></Parameters>
+ <Docs><param name="action">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Action">
<MemberSignature Language="C#" Value="public string Action { get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
</Member>
</Members>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
</Type>
Added: trunk/notify-sharp/docs/en/Notifications/CloseArgs.xml
===================================================================
--- trunk/notify-sharp/docs/en/Notifications/CloseArgs.xml (rev 0)
+++ trunk/notify-sharp/docs/en/Notifications/CloseArgs.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -0,0 +1,29 @@
+<Type Name="CloseArgs" FullName="Notifications.CloseArgs">
+ <TypeSignature Language="C#" Value="public class CloseArgs : EventArgs" />
+ <AssemblyInfo>
+ <AssemblyName>notify-sharp</AssemblyName>
+ <AssemblyVersion>0.4.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <Base>
+ <BaseTypeName>System.EventArgs</BaseTypeName>
+ </Base>
+ <Interfaces />
+ <Docs>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ <Members>
+
+ <Member MemberName=".ctor">
+ <MemberSignature Language="C#" Value="public CloseArgs (Notifications.CloseReason reason);" />
+ <MemberType>Constructor</MemberType>
+ <Parameters><Parameter Name="reason" Type="Notifications.CloseReason" /></Parameters>
+ <Docs><param name="reason">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Reason">
+ <MemberSignature Language="C#" Value="public Notifications.CloseReason Reason { get; };" />
+ <MemberType>Property</MemberType>
+ <ReturnValue><ReturnType>Notifications.CloseReason</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member>
+ </Members>
+</Type>
Added: trunk/notify-sharp/docs/en/Notifications/CloseReason.xml
===================================================================
--- trunk/notify-sharp/docs/en/Notifications/CloseReason.xml (rev 0)
+++ trunk/notify-sharp/docs/en/Notifications/CloseReason.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -0,0 +1,40 @@
+<Type Name="CloseReason" FullName="Notifications.CloseReason">
+ <TypeSignature Language="C#" Value="public enum CloseReason" />
+ <AssemblyInfo>
+ <AssemblyName>notify-sharp</AssemblyName>
+ <AssemblyVersion>0.4.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <Base>
+ <BaseTypeName>System.Enum</BaseTypeName>
+ </Base>
+ <Docs>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ <Members>
+
+
+
+ <Member MemberName="API">
+ <MemberSignature Language="C#" Value="API" />
+ <MemberType>Field</MemberType>
+ <ReturnValue><ReturnType>Notifications.CloseReason</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary></Docs>
+ </Member><Member MemberName="Expired">
+ <MemberSignature Language="C#" Value="Expired" />
+ <MemberType>Field</MemberType>
+ <ReturnValue><ReturnType>Notifications.CloseReason</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary></Docs>
+ </Member><Member MemberName="Reserved">
+ <MemberSignature Language="C#" Value="Reserved" />
+ <MemberType>Field</MemberType>
+ <ReturnValue><ReturnType>Notifications.CloseReason</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary></Docs>
+ </Member><Member MemberName="User">
+ <MemberSignature Language="C#" Value="User" />
+ <MemberType>Field</MemberType>
+ <ReturnValue><ReturnType>Notifications.CloseReason</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary></Docs>
+ </Member>
+ </Members>
+</Type>
Modified: trunk/notify-sharp/docs/en/Notifications/Global.xml
===================================================================
--- trunk/notify-sharp/docs/en/Notifications/Global.xml 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/docs/en/Notifications/Global.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -1,5 +1,5 @@
<Type Name="Global" FullName="Notifications.Global">
- <TypeSignature Language="C#" Value="public abstract sealed class Global" />
+ <TypeSignature Language="C#" Value="public static class Global" />
<AssemblyInfo>
<AssemblyName>notify-sharp</AssemblyName>
<AssemblyVersion>0.4.0.0</AssemblyVersion>
@@ -8,34 +8,22 @@
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
+ <Docs>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
<Members>
+
<Member MemberName="Capabilities">
<MemberSignature Language="C#" Value="public static string[] Capabilities { get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>System.String[]</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="ServerInformation">
+ <ReturnValue><ReturnType>System.String[]</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="ServerInformation">
<MemberSignature Language="C#" Value="public static Notifications.ServerInformation ServerInformation { get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>Notifications.ServerInformation</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
+ <ReturnValue><ReturnType>Notifications.ServerInformation</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
</Member>
</Members>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
</Type>
Modified: trunk/notify-sharp/docs/en/Notifications/Notification.xml
===================================================================
--- trunk/notify-sharp/docs/en/Notifications/Notification.xml 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/docs/en/Notifications/Notification.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -8,332 +8,157 @@
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
+ <Docs>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
<Members>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Notification ();" />
<MemberType>Constructor</MemberType>
<Parameters />
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName=".ctor">
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Notification (string summary, string body);" />
<MemberType>Constructor</MemberType>
- <Parameters>
- <Parameter Name="summary" Type="System.String" />
- <Parameter Name="body" Type="System.String" />
- </Parameters>
- <Docs>
- <param name="summary">To be added.</param>
- <param name="body">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName=".ctor">
+ <Parameters><Parameter Name="summary" Type="System.String" /><Parameter Name="body" Type="System.String" /></Parameters>
+ <Docs><param name="summary">To be added.</param><param name="body">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Notification (string summary, string body, Gdk.Pixbuf icon);" />
<MemberType>Constructor</MemberType>
- <Parameters>
- <Parameter Name="summary" Type="System.String" />
- <Parameter Name="body" Type="System.String" />
- <Parameter Name="icon" Type="Gdk.Pixbuf" />
- </Parameters>
- <Docs>
- <param name="summary">To be added.</param>
- <param name="body">To be added.</param>
- <param name="icon">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName=".ctor">
- <MemberSignature Language="C#" Value="public Notification (string summary, string body, Gdk.Pixbuf icon, Gtk.Widget widget);" />
- <MemberType>Constructor</MemberType>
- <Parameters>
- <Parameter Name="summary" Type="System.String" />
- <Parameter Name="body" Type="System.String" />
- <Parameter Name="icon" Type="Gdk.Pixbuf" />
- <Parameter Name="widget" Type="Gtk.Widget" />
- </Parameters>
- <Docs>
- <param name="summary">To be added.</param>
- <param name="body">To be added.</param>
- <param name="icon">To be added.</param>
- <param name="widget">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName=".ctor">
+ <Parameters><Parameter Name="summary" Type="System.String" /><Parameter Name="body" Type="System.String" /><Parameter Name="icon" Type="Gdk.Pixbuf" /></Parameters>
+ <Docs><param name="summary">To be added.</param><param name="body">To be added.</param><param name="icon">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Notification (string summary, string body, string icon);" />
<MemberType>Constructor</MemberType>
- <Parameters>
- <Parameter Name="summary" Type="System.String" />
- <Parameter Name="body" Type="System.String" />
- <Parameter Name="icon" Type="System.String" />
- </Parameters>
- <Docs>
- <param name="summary">To be added.</param>
- <param name="body">To be added.</param>
- <param name="icon">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName=".ctor">
+ <Parameters><Parameter Name="summary" Type="System.String" /><Parameter Name="body" Type="System.String" /><Parameter Name="icon" Type="System.String" /></Parameters>
+ <Docs><param name="summary">To be added.</param><param name="body">To be added.</param><param name="icon">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Notification (string summary, string body, Gdk.Pixbuf icon, Gtk.StatusIcon status_icon);" /><MemberType>Constructor</MemberType><Parameters><Parameter Name="summary" Type="System.String" /><Parameter Name="body" Type="System.String" /><Parameter Name="icon" Type="Gdk.Pixbuf" /><Parameter Name="status_icon" Type="Gtk.StatusIcon" /></Parameters><Docs><param name="summary">To be added.</param><param name="body">To be added.</param><param name="icon">To be added.</param><param name="status_icon">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor">
+ <MemberSignature Language="C#" Value="public Notification (string summary, string body, Gdk.Pixbuf icon, Gtk.Widget widget);" />
+ <MemberType>Constructor</MemberType>
+ <Parameters><Parameter Name="summary" Type="System.String" /><Parameter Name="body" Type="System.String" /><Parameter Name="icon" Type="Gdk.Pixbuf" /><Parameter Name="widget" Type="Gtk.Widget" /></Parameters>
+ <Docs><param name="summary">To be added.</param><param name="body">To be added.</param><param name="icon">To be added.</param><param name="widget">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Notification (string summary, string body, string icon, Gtk.StatusIcon status_icon);" /><MemberType>Constructor</MemberType><Parameters><Parameter Name="summary" Type="System.String" /><Parameter Name="body" Type="System.String" /><Parameter Name="icon" Type="System.String" /><Parameter Name="status_icon" Type="Gtk.StatusIcon" /></Parameters><Docs><param name="summary">To be added.</param><param name="body">To be added.</param><param name="icon">To be added.</param><param name="status_icon">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Notification (string summary, string body, string icon, Gtk.Widget widget);" />
<MemberType>Constructor</MemberType>
- <Parameters>
- <Parameter Name="summary" Type="System.String" />
- <Parameter Name="body" Type="System.String" />
- <Parameter Name="icon" Type="System.String" />
- <Parameter Name="widget" Type="Gtk.Widget" />
- </Parameters>
- <Docs>
- <param name="summary">To be added.</param>
- <param name="body">To be added.</param>
- <param name="icon">To be added.</param>
- <param name="widget">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="AddAction">
+ <Parameters><Parameter Name="summary" Type="System.String" /><Parameter Name="body" Type="System.String" /><Parameter Name="icon" Type="System.String" /><Parameter Name="widget" Type="Gtk.Widget" /></Parameters>
+ <Docs><param name="summary">To be added.</param><param name="body">To be added.</param><param name="icon">To be added.</param><param name="widget">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="AddAction">
<MemberSignature Language="C#" Value="public void AddAction (string action, string label, Notifications.ActionHandler handler);" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
- <Parameters>
- <Parameter Name="action" Type="System.String" />
- <Parameter Name="label" Type="System.String" />
- <Parameter Name="handler" Type="Notifications.ActionHandler" />
- </Parameters>
- <Docs>
- <param name="action">To be added.</param>
- <param name="label">To be added.</param>
- <param name="handler">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="AddHint">
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
+ <Parameters><Parameter Name="action" Type="System.String" /><Parameter Name="label" Type="System.String" /><Parameter Name="handler" Type="Notifications.ActionHandler" /></Parameters>
+ <Docs><param name="action">To be added.</param><param name="label">To be added.</param><param name="handler">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="AddHint">
<MemberSignature Language="C#" Value="public void AddHint (string name, object value);" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
- <Parameters>
- <Parameter Name="name" Type="System.String" />
- <Parameter Name="value" Type="System.Object" />
- </Parameters>
- <Docs>
- <param name="name">To be added.</param>
- <param name="value">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="AttachToWidget">
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
+ <Parameters><Parameter Name="name" Type="System.String" /><Parameter Name="value" Type="System.Object" /></Parameters>
+ <Docs><param name="name">To be added.</param><param name="value">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="AttachToStatusIcon"><MemberSignature Language="C#" Value="public void AttachToStatusIcon (Gtk.StatusIcon status_icon);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="status_icon" Type="Gtk.StatusIcon" /></Parameters><Docs><param name="status_icon">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="AttachToWidget">
<MemberSignature Language="C#" Value="public void AttachToWidget (Gtk.Widget widget);" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
- <Parameters>
- <Parameter Name="widget" Type="Gtk.Widget" />
- </Parameters>
- <Docs>
- <param name="widget">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Body">
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
+ <Parameters><Parameter Name="widget" Type="Gtk.Widget" /></Parameters>
+ <Docs><param name="widget">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="AttachWidget"><MemberSignature Language="C#" Value="public Gtk.Widget AttachWidget { set; get; };" /><MemberType>Property</MemberType><ReturnValue><ReturnType>Gtk.Widget</ReturnType></ReturnValue><Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs></Member><Member MemberName="Body">
<MemberSignature Language="C#" Value="public string Body { set; get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Category">
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Category">
<MemberSignature Language="C#" Value="public string Category { set; get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="ClearActions">
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="ClearActions">
<MemberSignature Language="C#" Value="public void ClearActions ();" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Close">
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Close">
<MemberSignature Language="C#" Value="public void Close ();" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Closed">
- <MemberSignature Language="C#" Value="public event System.EventHandler Closed;" />
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Closed">
+ <MemberSignature Language="C#" Value="public event EventHandler Closed;" />
<MemberType>Event</MemberType>
- <ReturnValue>
- <ReturnType>System.EventHandler</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Icon">
+ <ReturnValue><ReturnType>System.EventHandler</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Icon">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Icon { set; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>Gdk.Pixbuf</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="IconName">
+ <ReturnValue><ReturnType>Gdk.Pixbuf</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="IconName">
<MemberSignature Language="C#" Value="public string IconName { set; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="RemoveAction">
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Id"><MemberSignature Language="C#" Value="public uint Id { get; };" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.UInt32</ReturnType></ReturnValue><Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs></Member><Member MemberName="RemoveAction">
<MemberSignature Language="C#" Value="public void RemoveAction (string action);" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
- <Parameters>
- <Parameter Name="action" Type="System.String" />
- </Parameters>
- <Docs>
- <param name="action">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="RemoveHint">
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
+ <Parameters><Parameter Name="action" Type="System.String" /></Parameters>
+ <Docs><param name="action">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="RemoveHint">
<MemberSignature Language="C#" Value="public void RemoveHint (string name);" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
- <Parameters>
- <Parameter Name="name" Type="System.String" />
- </Parameters>
- <Docs>
- <param name="name">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="SetGeometryHints">
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
+ <Parameters><Parameter Name="name" Type="System.String" /></Parameters>
+ <Docs><param name="name">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="SetGeometryHints">
<MemberSignature Language="C#" Value="public void SetGeometryHints (Gdk.Screen screen, int x, int y);" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
- <Parameters>
- <Parameter Name="screen" Type="Gdk.Screen" />
- <Parameter Name="x" Type="System.Int32" />
- <Parameter Name="y" Type="System.Int32" />
- </Parameters>
- <Docs>
- <param name="screen">To be added.</param>
- <param name="x">To be added.</param>
- <param name="y">To be added.</param>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Show">
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
+ <Parameters><Parameter Name="screen" Type="Gdk.Screen" /><Parameter Name="x" Type="System.Int32" /><Parameter Name="y" Type="System.Int32" /></Parameters>
+ <Docs><param name="screen">To be added.</param><param name="x">To be added.</param><param name="y">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Show">
<MemberSignature Language="C#" Value="public void Show ();" />
<MemberType>Method</MemberType>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
+ <ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Summary">
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="StatusIcon"><MemberSignature Language="C#" Value="public Gtk.StatusIcon StatusIcon { set; get; };" /><MemberType>Property</MemberType><ReturnValue><ReturnType>Gtk.StatusIcon</ReturnType></ReturnValue><Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs></Member><Member MemberName="Summary">
<MemberSignature Language="C#" Value="public string Summary { set; get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Timeout">
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Timeout">
<MemberSignature Language="C#" Value="public int Timeout { set; get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>System.Int32</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Urgency">
+ <ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Urgency">
<MemberSignature Language="C#" Value="public Notifications.Urgency Urgency { set; get; };" />
<MemberType>Property</MemberType>
- <ReturnValue>
- <ReturnType>Notifications.Urgency</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <value>To be added.</value>
- <remarks>To be added.</remarks>
- </Docs>
+ <ReturnValue><ReturnType>Notifications.Urgency</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
</Member>
</Members>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
</Type>
Modified: trunk/notify-sharp/docs/en/Notifications/ServerInformation.xml
===================================================================
--- trunk/notify-sharp/docs/en/Notifications/ServerInformation.xml 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/docs/en/Notifications/ServerInformation.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -8,54 +8,34 @@
<BaseTypeName>System.ValueType</BaseTypeName>
</Base>
<Interfaces />
+ <Docs>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
<Members>
+
+
+
<Member MemberName="Name">
<MemberSignature Language="C#" Value="public string Name;" />
<MemberType>Field</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="SpecVersion">
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="SpecVersion">
<MemberSignature Language="C#" Value="public string SpecVersion;" />
<MemberType>Field</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Vendor">
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Vendor">
<MemberSignature Language="C#" Value="public string Vendor;" />
<MemberType>Field</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
- </Member>
- <Member MemberName="Version">
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
+ </Member><Member MemberName="Version">
<MemberSignature Language="C#" Value="public string Version;" />
<MemberType>Field</MemberType>
- <ReturnValue>
- <ReturnType>System.String</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
+ <ReturnValue><ReturnType>System.String</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
</Member>
</Members>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
</Type>
Modified: trunk/notify-sharp/docs/en/Notifications/Urgency.xml
===================================================================
--- trunk/notify-sharp/docs/en/Notifications/Urgency.xml 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/docs/en/Notifications/Urgency.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -7,40 +7,28 @@
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
+ <Docs>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
<Members>
+
+
<Member MemberName="Critical">
<MemberSignature Language="C#" Value="Critical" />
<MemberType>Field</MemberType>
- <ReturnValue>
- <ReturnType>Notifications.Urgency</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- </Docs>
- </Member>
- <Member MemberName="Low">
+ <ReturnValue><ReturnType>Notifications.Urgency</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary></Docs>
+ </Member><Member MemberName="Low">
<MemberSignature Language="C#" Value="Low" />
<MemberType>Field</MemberType>
- <ReturnValue>
- <ReturnType>Notifications.Urgency</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- </Docs>
- </Member>
- <Member MemberName="Normal">
+ <ReturnValue><ReturnType>Notifications.Urgency</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary></Docs>
+ </Member><Member MemberName="Normal">
<MemberSignature Language="C#" Value="Normal" />
<MemberType>Field</MemberType>
- <ReturnValue>
- <ReturnType>Notifications.Urgency</ReturnType>
- </ReturnValue>
- <Docs>
- <summary>To be added.</summary>
- </Docs>
+ <ReturnValue><ReturnType>Notifications.Urgency</ReturnType></ReturnValue>
+ <Docs><summary>To be added.</summary></Docs>
</Member>
</Members>
- <Docs>
- <summary>To be added.</summary>
- <remarks>To be added.</remarks>
- </Docs>
</Type>
Modified: trunk/notify-sharp/docs/en/index.xml
===================================================================
--- trunk/notify-sharp/docs/en/index.xml 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/docs/en/index.xml 2008-03-20 13:42:16 UTC (rev 3007)
@@ -21,11 +21,13 @@
<Copyright>To be added.</Copyright>
<Types>
<Namespace Name="Notifications">
- <Type Name="ServerInformation" />
+ <Type Name="ActionArgs" />
+ <Type Name="ActionHandler" />
+ <Type Name="CloseArgs" />
+ <Type Name="CloseReason" />
<Type Name="Global" />
- <Type Name="ActionArgs" />
<Type Name="Notification" />
- <Type Name="ActionHandler" />
+ <Type Name="ServerInformation" />
<Type Name="Urgency" />
</Namespace>
</Types>
Modified: trunk/notify-sharp/src/Global.cs
===================================================================
--- trunk/notify-sharp/src/Global.cs 2008-03-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/src/Global.cs 2008-03-20 13:42:16 UTC (rev 3007)
@@ -40,7 +40,14 @@
event ActionInvokedHandler ActionInvoked;
}
- internal delegate void NotificationClosedHandler (uint id);
+ public enum CloseReason {
+ Expired = 1,
+ User = 2,
+ API = 3,
+ Reserved = 4
+ }
+
+ internal delegate void NotificationClosedHandler (uint id, CloseReason 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-19 23:03:43 UTC (rev 3006)
+++ trunk/notify-sharp/src/Notification.cs 2008-03-20 13:42:16 UTC (rev 3007)
@@ -50,6 +50,17 @@
}
}
+ public class CloseArgs : EventArgs {
+ private CloseReason reason;
+ public CloseReason Reason {
+ get { return reason; }
+ }
+
+ public CloseArgs (CloseReason reason) {
+ this.reason = reason;
+ }
+ }
+
public delegate void ActionHandler (object o, ActionArgs args);
public class Notification {
@@ -83,6 +94,8 @@
private int timeout = -1;
private string summary = String.Empty, body = String.Empty;
private string icon = String.Empty;
+ private Gtk.Widget attach_widget = null;
+ private Gtk.StatusIcon status_icon = null;
private IDictionary <string, ActionTuple> action_map = new Dictionary<string, ActionTuple> ();
private IDictionary <string, object> hints = new Dictionary<string, object> ();
@@ -122,6 +135,15 @@
AttachToWidget (widget);
}
+ public Notification (string summary, string body, Pixbuf icon, Gtk.StatusIcon status_icon) : this (summary, body, icon) {
+ AttachToStatusIcon (status_icon);
+ }
+
+ public Notification (string summary, string body, string icon, Gtk.StatusIcon status_icon) : this (summary, body, icon) {
+ AttachToStatusIcon (status_icon);
+ }
+
+
public string Summary {
set {
summary = value;
@@ -189,6 +211,30 @@
}
}
+ public uint Id {
+ get {
+ return id;
+ }
+ }
+
+ public Gtk.Widget AttachWidget {
+ get {
+ return attach_widget;
+ }
+ set {
+ AttachToWidget (value);
+ }
+ }
+
+ public Gtk.StatusIcon StatusIcon {
+ get {
+ return status_icon;
+ }
+ set {
+ AttachToStatusIcon (value);
+ }
+ }
+
private void SetPixbufHint (Pixbuf pixbuf) {
IconData icon_data = new IconData ();
icon_data.Width = pixbuf.Width;
@@ -220,8 +266,29 @@
y += widget.Allocation.Height / 2;
SetGeometryHints (widget.Screen, x, y);
+ attach_widget = widget;
+ status_icon = null;
}
+ public void AttachToStatusIcon (Gtk.StatusIcon status_icon) {
+ Gdk.Screen screen;
+ Gdk.Rectangle rect;
+ Orientation orientation;
+ int x, y;
+
+ if (!status_icon.GetGeometry (out screen, out rect, out orientation)) {
+ return;
+ }
+
+ x = rect.X + rect.Width / 2;
+ y = rect.Y + rect.Height / 2;
+
+ SetGeometryHints (screen, x, y);
+
+ this.status_icon = status_icon;
+ attach_widget = null;
+ }
+
public void SetGeometryHints (Screen screen, int x, int y) {
hints["x"] = x;
hints["y"] = y;
@@ -262,12 +329,12 @@
shown = false;
}
- private void OnClosed (uint id) {
+ private void OnClosed (uint id, CloseReason reason) {
if (this.id == id) {
this.id = 0;
shown = false;
if (Closed != null) {
- Closed (this, new EventArgs ());
+ Closed (this, new CloseArgs (reason));
}
}
}
More information about the galago-commits
mailing list