[Galago-commits] r2978 - in trunk/libnotify: . docs/reference/tmpl
libnotify
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Sun Apr 29 00:43:57 PDT 2007
Author: chipx86
Date: 2007-04-29 00:43:55 -0700 (Sun, 29 Apr 2007)
New Revision: 2978
Modified:
trunk/libnotify/ChangeLog
trunk/libnotify/NEWS
trunk/libnotify/docs/reference/tmpl/notification.sgml
trunk/libnotify/libnotify/notification.c
Log:
Patch by Lucas Rocha to add GObject property accessors for notification IDs.
Modified: trunk/libnotify/ChangeLog
===================================================================
--- trunk/libnotify/ChangeLog 2007-02-28 07:20:46 UTC (rev 2977)
+++ trunk/libnotify/ChangeLog 2007-04-29 07:43:55 UTC (rev 2978)
@@ -1,3 +1,10 @@
+Sun Apr 29 00:39:32 PDT 2007 Christian Hammond <chipx86 at chipx86.com>
+
+ * docs/reference/tmpl/notification.sgml:
+ * libnotify/notification.c:
+ - Patch by Lucas Rocha to add GObject property accessors for
+ notification IDs.
+
========================= 0.4.4 =========================
Tue Feb 27 21:11:36 PST 2007 Christian Hammond <chipx86 at chipx86.com>
Modified: trunk/libnotify/NEWS
===================================================================
--- trunk/libnotify/NEWS 2007-02-28 07:20:46 UTC (rev 2977)
+++ trunk/libnotify/NEWS 2007-04-29 07:43:55 UTC (rev 2978)
@@ -1,3 +1,7 @@
+version 0.4.5:
+ * Added GObject property accessors for notification IDs. Patch by Lucas
+ Rocha.
+
version 0.4.4 (27-February-2007):
* Fixed a bug where a notification's ID could be reset when a different
notification was closed. Patch by jylefort. (Bug #94)
Modified: trunk/libnotify/docs/reference/tmpl/notification.sgml
===================================================================
--- trunk/libnotify/docs/reference/tmpl/notification.sgml 2007-02-28 07:20:46 UTC (rev 2977)
+++ trunk/libnotify/docs/reference/tmpl/notification.sgml 2007-04-29 07:43:55 UTC (rev 2978)
@@ -66,6 +66,11 @@
</para>
+<!-- ##### ARG NotifyNotification:id ##### -->
+<para>
+
+</para>
+
<!-- ##### ARG NotifyNotification:status-icon ##### -->
<para>
Modified: trunk/libnotify/libnotify/notification.c
===================================================================
--- trunk/libnotify/libnotify/notification.c 2007-02-28 07:20:46 UTC (rev 2977)
+++ trunk/libnotify/libnotify/notification.c 2007-04-29 07:43:55 UTC (rev 2978)
@@ -100,6 +100,7 @@
enum
{
PROP_0,
+ PROP_ID,
PROP_SUMMARY,
PROP_BODY,
PROP_ICON_NAME,
@@ -156,6 +157,18 @@
NULL, NULL,
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+ g_object_class_install_property(object_class, PROP_ID,
+ g_param_spec_int("id", "ID",
+ "The notification ID",
+ 0,
+ G_MAXINT32,
+ 0,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_NAME |
+ G_PARAM_STATIC_NICK |
+ G_PARAM_STATIC_BLURB));
+
g_object_class_install_property(object_class, PROP_SUMMARY,
g_param_spec_string("summary", "Summary",
"The summary text",
@@ -223,6 +236,10 @@
switch (prop_id)
{
+ case PROP_ID:
+ priv->id = g_value_get_int(value);
+ break;
+
case PROP_SUMMARY:
notify_notification_update(notification, g_value_get_string(value),
priv->body, priv->icon_name);
@@ -268,6 +285,10 @@
switch (prop_id)
{
+ case PROP_ID:
+ g_value_set_int(value, priv->id);
+ break;
+
case PROP_SUMMARY:
g_value_set_string(value, priv->summary);
break;
More information about the galago-commits
mailing list