[maemo-commits] [maemo-commits] r12182 - in projects/haf/trunk/hildon-notify: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Jun 7 15:44:53 EEST 2007
Author: lucasr
Date: 2007-06-07 15:44:52 +0300 (Thu, 07 Jun 2007)
New Revision: 12182

Modified:
   projects/haf/trunk/hildon-notify/ChangeLog
   projects/haf/trunk/hildon-notify/src/hildon-notification.c
   projects/haf/trunk/hildon-notify/src/hildon-notification.h
Log:
2007-06-07  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hildon-notification.[ch]: add a method to set the notification
	sound.


Modified: projects/haf/trunk/hildon-notify/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-notify/ChangeLog	2007-06-07 12:40:37 UTC (rev 12181)
+++ projects/haf/trunk/hildon-notify/ChangeLog	2007-06-07 12:44:52 UTC (rev 12182)
@@ -1,3 +1,8 @@
+2007-06-07  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hildon-notification.[ch]: add a method to set the notification
+	sound.
+
 2007-05-10  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* configure.ac: Release 0.0.1

Modified: projects/haf/trunk/hildon-notify/src/hildon-notification.c
===================================================================
--- projects/haf/trunk/hildon-notify/src/hildon-notification.c	2007-06-07 12:40:37 UTC (rev 12181)
+++ projects/haf/trunk/hildon-notify/src/hildon-notification.c	2007-06-07 12:44:52 UTC (rev 12182)
@@ -77,6 +77,13 @@
 		                     "persistent", (guchar) persistent);
 }
 
+void 
+hildon_notification_set_sound (HildonNotification *n, const gchar *sound_file)
+{
+  notify_notification_set_hint_string (NOTIFY_NOTIFICATION (n), 
+		                       "sound-file", sound_file);
+}
+
 static void
 hildon_notification_action (NotifyNotification *n, 
 		            gchar *action_id, 

Modified: projects/haf/trunk/hildon-notify/src/hildon-notification.h
===================================================================
--- projects/haf/trunk/hildon-notify/src/hildon-notification.h	2007-06-07 12:40:37 UTC (rev 12181)
+++ projects/haf/trunk/hildon-notify/src/hildon-notification.h	2007-06-07 12:44:52 UTC (rev 12182)
@@ -63,6 +63,9 @@
 void                  hildon_notification_set_persistent     (HildonNotification *n,
 		                                              gboolean            persistent);
 
+void                  hildon_notification_set_sound          (HildonNotification *n,
+		                                              const gchar        *sound_file);
+
 void                  hildon_notification_add_dbus_action    (HildonNotification *n, 
 	  	                                              const gchar        *action_id,
 					                      const gchar        *action_label,


More information about the maemo-commits mailing list