[control-center] fix build

Matthias Clasen mclasen at fedoraproject.org
Sun Jan 9 22:52:25 UTC 2011


commit f33f0a81b0953a86954bbd73b3c9f0e7778d9398
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Sun Jan 9 17:52:06 2011 -0500

    fix build

 control-center.spec                      |    3 +++
 gnome-control-center-update-policy.patch |   22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/control-center.spec b/control-center.spec
index f864259..e8f5a1f 100644
--- a/control-center.spec
+++ b/control-center.spec
@@ -26,6 +26,8 @@ Group: User Interface/Desktops
 Source: http://download.gnome.org/sources/gnome-control-center/2.91/gnome-control-center-%{version}.tar.bz2
 URL: http://www.gnome.org
 
+Patch0: gnome-control-center-update-policy.patch
+
 Requires: gnome-settings-daemon >= 2.21.91-3
 Requires: redhat-menus >= %{redhat_menus_version}
 Requires: gnome-icon-theme
@@ -121,6 +123,7 @@ utilities.
 
 %prep
 %setup -q -n gnome-control-center-%{version}
+%patch0 -p1 -b .update-policy
 
 %build
 autoreconf -f
diff --git a/gnome-control-center-update-policy.patch b/gnome-control-center-update-policy.patch
new file mode 100644
index 0000000..8f641d8
--- /dev/null
+++ b/gnome-control-center-update-policy.patch
@@ -0,0 +1,22 @@
+diff -up gnome-control-center-2.91.4/panels/sound/gvc-balance-bar.c.update-policy gnome-control-center-2.91.4/panels/sound/gvc-balance-bar.c
+--- gnome-control-center-2.91.4/panels/sound/gvc-balance-bar.c.update-policy	2011-01-09 17:49:51.242902003 -0500
++++ gnome-control-center-2.91.4/panels/sound/gvc-balance-bar.c	2011-01-09 17:50:07.041902021 -0500
+@@ -141,7 +141,6 @@ _scale_box_new (GvcBalanceBar *bar)
+         bar->priv->end_box = ebox = gtk_hbox_new (FALSE, 6);
+         gtk_box_pack_start (GTK_BOX (box), ebox, FALSE, FALSE, 0);
+ 
+-        gtk_range_set_update_policy (GTK_RANGE (priv->scale), GTK_UPDATE_CONTINUOUS);
+         ca_gtk_widget_disable_sounds (bar->priv->scale, FALSE);
+         gtk_widget_add_events (bar->priv->scale, GDK_SCROLL_MASK);
+ 
+diff -up gnome-control-center-2.91.4/panels/sound/gvc-channel-bar.c.update-policy gnome-control-center-2.91.4/panels/sound/gvc-channel-bar.c
+--- gnome-control-center-2.91.4/panels/sound/gvc-channel-bar.c.update-policy	2011-01-09 17:50:21.403901935 -0500
++++ gnome-control-center-2.91.4/panels/sound/gvc-channel-bar.c	2011-01-09 17:50:31.912902006 -0500
+@@ -158,7 +158,6 @@ _scale_box_new (GvcChannelBar *bar)
+                 gtk_box_pack_start (GTK_BOX (ebox), priv->mute_box, FALSE, FALSE, 0);
+         }
+ 
+-        gtk_range_set_update_policy (GTK_RANGE (priv->scale), GTK_UPDATE_CONTINUOUS);
+         ca_gtk_widget_disable_sounds (bar->priv->scale, FALSE);
+         gtk_widget_add_events (bar->priv->scale, GDK_SCROLL_MASK);
+ 


More information about the scm-commits mailing list