Revert "remove tsol from xorg-server"
[unleashed-userland.git] / components / gnome-media / patches / gnome-media-09-round.patch
bloba4dcfbb1fd22d1ee1254b784ffea95128baa583f
1 --- gnome-media-2.30.0/gnome-volume-control/src/gvc-stream-status-icon.c-orig 2011-11-30 15:36:27.728816631 -0600
2 +++ gnome-media-2.30.0/gnome-volume-control/src/gvc-stream-status-icon.c 2011-11-30 16:58:05.276668406 -0600
3 @@ -75,7 +75,7 @@ on_adjustment_value_changed (GtkAdjustme
5 /* Only push the volume if it's actually changed */
6 if (gvc_mixer_stream_set_volume(icon->priv->mixer_stream,
7 - (pa_volume_t) round (volume)) != FALSE) {
8 + (pa_volume_t) (volume + 0.5)) != FALSE) {
9 gvc_mixer_stream_push_volume(icon->priv->mixer_stream);
12 --- gnome-media-2.30.0/gnome-volume-control/src/gvc-mixer-dialog.c-orig 2011-11-30 16:58:23.513043543 -0600
13 +++ gnome-media-2.30.0/gnome-volume-control/src/gvc-mixer-dialog.c 2011-11-30 16:59:15.436510602 -0600
14 @@ -736,15 +736,16 @@ on_adjustment_value_changed (GtkAdjustme
15 stream = g_object_get_data (G_OBJECT (adjustment), "gvc-mixer-dialog-stream");
16 if (stream != NULL) {
17 GObject *bar;
18 - gdouble volume, rounded;
19 + gdouble volume;
20 + pa_volume_t rounded;
21 char *name;
23 volume = gtk_adjustment_get_value (adjustment);
24 - rounded = round (volume);
25 + rounded = (volume + 0.5);
27 bar = g_object_get_data (G_OBJECT (adjustment), "gvc-mixer-dialog-bar");
28 g_object_get (bar, "name", &name, NULL);
29 - g_debug ("Setting stream volume %lf (rounded: %lf) for bar '%s'", volume, rounded, name);
30 + g_debug ("Setting stream volume %lf (rounded: %ld) for bar '%s'", volume, rounded, name);
31 g_free (name);
33 /* FIXME would need to do that in the balance bar really... */
34 @@ -752,7 +751,7 @@ on_adjustment_value_changed (GtkAdjustme
35 if (volume == 0.0)
36 gvc_mixer_stream_set_is_muted (stream, TRUE);
37 /* Only push the volume if it's actually changed */
38 - if (gvc_mixer_stream_set_volume(stream, (pa_volume_t) rounded) != FALSE)
39 + if (gvc_mixer_stream_set_volume(stream, (pa_volume_t) (volume + 0.5)) != FALSE)
40 gvc_mixer_stream_push_volume (stream);