[mate-notification-daemon] try fix rhbz (#890728)

Wolfgang Ulbrich raveit65 at fedoraproject.org
Fri Oct 3 13:44:02 UTC 2014


commit a50d404441625c4e45157ec1259b4f3ab5f13759
Author: raveit65 <chat-to-me at raveit.de>
Date:   Fri Oct 3 15:43:45 2014 +0200

    try fix rhbz (#890728)

 mate-notification-daemon.spec                      |   11 +++++-
 ...daemon_do-not-draw-pie-if-timeout-is-zero.patch |   38 ++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletions(-)
---
diff --git a/mate-notification-daemon.spec b/mate-notification-daemon.spec
index a6bb00a..a1b45d3 100644
--- a/mate-notification-daemon.spec
+++ b/mate-notification-daemon.spec
@@ -15,11 +15,15 @@
 Name:           mate-notification-daemon
 Version:        %{branch}.0
 #Release:        0.2%{?git_rel}%{?dist}
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Notification daemon for MATE Desktop
 License:        GPLv2+
 URL:            http://mate-desktop.org
 
+# rhbz (#890728)
+# http://git.mate-desktop.org/mate-notification-daemon/commit/?id=8ed79a3
+Patch0:         mate-notification-daemon_do-not-draw-pie-if-timeout-is-zero.patch
+
 # for downloading the tarball use 'spectool -g -R mate-notification-daemon.spec'
 # Source for release-builds.
 %{?rel_build:Source0:     http://pub.mate-desktop.org/releases/%{branch}/%%{name}-%%{version}.tar.xz}
@@ -42,6 +46,8 @@ Notification daemon for MATE Desktop
 %prep
 %setup -q%{!?rel_build:n %{name}-%{commit}}
 
+%patch0 -p1 -b .do-not-draw-pie-if-timeout-is-zero
+
 # needed for git snapshots
 #NOCONFIGURE=1 ./autogen.sh
 
@@ -94,6 +100,9 @@ fi
 
 
 %changelog
+* Fri Oct 03 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.9.0-3
+- try fix rhbz (#890728)
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.9.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
diff --git a/mate-notification-daemon_do-not-draw-pie-if-timeout-is-zero.patch b/mate-notification-daemon_do-not-draw-pie-if-timeout-is-zero.patch
new file mode 100644
index 0000000..cbaa663
--- /dev/null
+++ b/mate-notification-daemon_do-not-draw-pie-if-timeout-is-zero.patch
@@ -0,0 +1,38 @@
+From 8ed79a30694b2249b6a9407d190a68f770c58e12 Mon Sep 17 00:00:00 2001
+From: Denis Gorodnichev <denis.gorodnichev at gmail.com>
+Date: Wed, 01 Oct 2014 13:03:13 +0000
+Subject: don't draw pie if timeout is zero
+
+Closes https://github.com/mate-desktop/mate-notification-daemon/pull/38
+---
+diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
+index 3101ecc..584c3a6 100644
+--- a/src/themes/coco/coco-theme.c
++++ b/src/themes/coco/coco-theme.c
+@@ -144,6 +144,9 @@ fill_background(GtkWidget *widget, WindowData *windata, cairo_t *cr)
+ static void
+ draw_pie(GtkWidget *pie, WindowData *windata, cairo_t *cr)
+ {
++	if (windata->timeout == 0)
++		return;
++
+ 	gdouble arc_angle = 1.0 - (gdouble)windata->remaining / (gdouble)windata->timeout;
+ 	cairo_set_source_rgba (cr, 1.0, 0.4, 0.0, 0.3);
+ 	cairo_move_to(cr, PIE_RADIUS, PIE_RADIUS);
+diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
+index cf9f70d..3d2a597 100644
+--- a/src/themes/nodoka/nodoka-theme.c
++++ b/src/themes/nodoka/nodoka-theme.c
+@@ -481,6 +481,9 @@ draw_border(GtkWidget *widget, WindowData *windata, cairo_t *cr)
+ static void
+ draw_pie(GtkWidget *pie, WindowData *windata, cairo_t *cr)
+ {
++	if (windata->timeout == 0)
++		return;
++
+ 	gdouble arc_angle = 1.0 - (gdouble)windata->remaining / (gdouble)windata->timeout;
+ 	cairo_set_source_rgba (cr, 1.0, 0.4, 0.0, 0.3);
+ 	cairo_move_to(cr, PIE_RADIUS, PIE_RADIUS);
+--
+cgit 
+


More information about the scm-commits mailing list