rpms/evolution/devel evolution-2.7.1-notification-cleanups.patch, 1.1, 1.2 evolution.spec, 1.144, 1.145

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue May 23 21:04:14 UTC 2006


Author: mbarnes


evolution-2.7.1-notification-cleanups.patch:
 alarm-queue.c |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

Index: evolution-2.7.1-notification-cleanups.patch
===================================================================
RCS file: /cvs/dist/rpms/evolution/devel/evolution-2.7.1-notification-cleanups.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- evolution-2.7.1-notification-cleanups.patch	12 May 2006 22:37:04 -0000	1.1
+++ evolution-2.7.1-notification-cleanups.patch	23 May 2006 21:03:41 -0000	1.2
@@ -1,5 +1,5 @@
---- evolution-2.7.1/calendar/gui/alarm-notify/alarm-queue.c.notification-cleanups	2006-04-22 00:39:20.000000000 -0400
-+++ evolution-2.7.1/calendar/gui/alarm-notify/alarm-queue.c	2006-05-12 14:52:43.000000000 -0400
+--- evolution-2.7.2.1/calendar/gui/alarm-notify/alarm-queue.c.notification-cleanups	2006-04-22 00:39:20.000000000 -0400
++++ evolution-2.7.2.1/calendar/gui/alarm-notify/alarm-queue.c	2006-05-23 16:04:23.000000000 -0400
 @@ -1566,10 +1566,11 @@
  	const char *summary, *location;
  	GtkTooltips *tooltips;
@@ -23,7 +23,7 @@
  	if (organiser.cn) {
  		if (location)
  			body = g_strdup_printf ("<b>%s</b>\n%s %s\n%s %s", organiser.cn, _("Location:"), location, start_str, time_str);
-@@ -1617,16 +1615,19 @@
+@@ -1617,16 +1615,21 @@
  			body = g_strdup_printf ("%s %s", start_str, time_str);			
  	}
  
@@ -32,12 +32,14 @@
 +	n = notify_notification_new (summary, body, "stock_appointment-reminder", NULL);
 +
 +  	/* Notifications don't timeout: require explicit user action: */
-+  	notify_notification_set_timeout (n, NOTIFY_TIMEOUT_NEVER);
++  	notify_notification_set_timeout (n, NOTIFY_EXPIRES_NEVER);
 +
-+	if (!notify_notification_show_and_forget (n, NULL))
++	if (!notify_notification_show (n, NULL))
  	    g_warning ("Could not send notification to daemon\n");	
  
 -	/* create the private structure */
++	g_object_unref (n);
++
 +	g_free (body);
  	g_free (start_str);
  	g_free (end_str);


Index: evolution.spec
===================================================================
RCS file: /cvs/dist/rpms/evolution/devel/evolution.spec,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -r1.144 -r1.145
--- evolution.spec	23 May 2006 17:42:15 -0000	1.144
+++ evolution.spec	23 May 2006 21:03:42 -0000	1.145
@@ -129,7 +129,7 @@
 Requires: gnome-vfs2 >= %{gnomevfs2_version}
 
 %if %{libnotify_support}
-Requires: libnotify
+Requires: libnotify >= 0.4
 %endif
 
 Obsoletes: libgal2 <= %{last_libgal2_version}
@@ -653,6 +653,10 @@
 %{_libdir}/evolution/%{evo_major}/libmenus.so
 
 %changelog
+* Tue May 23 2006 Matthew Barnes <mbarnes at redhat.com> 2.7.2.1-3
+- Port evolution-2.7.1-notification-cleanups.patch to new libnotify API.
+- Require libnotify >= 0.4.
+
 * Fri May 19 2006 Matthew Barnes <mbarnes at redhat.com> - 2.7.2.1-2
 - Require specific versions of GNU Autotools packages for building.
 - Add evolution-2.7.2-preedit-gnome.bz-264485.patch (Mayank Jain).




More information about the fedora-cvs-commits mailing list