[mate-notification-daemon/f20] try fix rhbz (#890728)
Wolfgang Ulbrich
raveit65 at fedoraproject.org
Fri Oct 3 14:37:50 UTC 2014
commit 3c5641c6b2d547928bb3d18d3a8b4d81001d67d7
Author: raveit65 <chat-to-me at raveit.de>
Date: Fri Oct 3 16:37:37 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 97b9a09..1cea9e3 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.8.0-3
+- try fix rhbz (#890728)
+
* Sat Jul 26 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.8.0-2
- update to 1.8.0 release
- use modern 'make install' macro
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