summaryrefslogtreecommitdiff
path: root/multimedia/gnome2-media/patches/patch-ab
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2005-09-15 19:00:32 +0000
committerreed <reed@pkgsrc.org>2005-09-15 19:00:32 +0000
commitdedd2477f575ed9c802e5401e29d58ec913498a0 (patch)
tree74ceb37237eeb1a047326257ff51bf0289e97a12 /multimedia/gnome2-media/patches/patch-ab
parente3f1254edc748fd594c742a83a85f478429d8c8a (diff)
downloadpkgsrc-dedd2477f575ed9c802e5401e29d58ec913498a0.tar.gz
Add two patches to use rint instead of lrint. The proper fix would be to use
autoconf system, but even gnome developers changed their code upstream to use rint instead. This will close PR #30139. Over past few months many users have reported this issue. Bump PKGREVISION.
Diffstat (limited to 'multimedia/gnome2-media/patches/patch-ab')
-rw-r--r--multimedia/gnome2-media/patches/patch-ab25
1 files changed, 25 insertions, 0 deletions
diff --git a/multimedia/gnome2-media/patches/patch-ab b/multimedia/gnome2-media/patches/patch-ab
new file mode 100644
index 00000000000..5502e8b5a5b
--- /dev/null
+++ b/multimedia/gnome2-media/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.3 2005/09/15 19:00:32 reed Exp $
+
+--- volume.c 2005/04/15 12:59:37 1.5
++++ gst-mixer/src/volume.c 2005/08/08 21:05:37 1.6
+@@ -480,9 +480,9 @@
+ if (gnome_volume_control_button_get_active (
+ GNOME_VOLUME_CONTROL_BUTTON (vol->button))) {
+ gtk_adjustment_set_value (adj, gtk_adjustment_get_value (_adj));
+- volumes[i++] = lrint (gtk_adjustment_get_value (_adj));
++ volumes[i++] = rint (gtk_adjustment_get_value (_adj));
+ } else {
+- volumes[i++] = lrint (gtk_adjustment_get_value (adj));
++ volumes[i++] = rint (gtk_adjustment_get_value (adj));
+ }
+ }
+
+@@ -554,7 +554,7 @@
+ scales != NULL; scales = scales->next, n++) {
+ GtkAdjustment *adj = gtk_range_get_adjustment (scales->data);
+
+- if (lrint (gtk_adjustment_get_value (adj)) != 0) {
++ if (rint (gtk_adjustment_get_value (adj)) != 0) {
+ *slider_zero = FALSE;
+ break;
+ }