Merge lp:~rodrigo-moya/ubuntu/natty/gnome-settings-daemon/fix-750334 into lp:~ubuntu-desktop/gnome-settings-daemon/ubuntu

Proposed by Rodrigo Moya
Status: Merged
Merged at revision: 140
Proposed branch: lp:~rodrigo-moya/ubuntu/natty/gnome-settings-daemon/fix-750334
Merge into: lp:~ubuntu-desktop/gnome-settings-daemon/ubuntu
Diff against target: 78 lines (+55/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/17_react_when_streams_removed.patch (+47/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~rodrigo-moya/ubuntu/natty/gnome-settings-daemon/fix-750334
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+58311@code.launchpad.net
To post a comment you must log in.
143. By Rodrigo Moya

Add git format-patch instead

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-04-07 11:04:54 +0000
+++ debian/changelog 2011-04-19 14:51:34 +0000
@@ -1,3 +1,10 @@
1gnome-settings-daemon (2.32.1-0ubuntu14) natty; urgency=low
2
3 * debian/patches/17_react_when_streams_removed.patch:
4 - Add patch to react when mixer streams are removed (LP: #750334)
5
6 -- Rodrigo Moya <rodrigo.moya@canonical.com> Fri, 15 Apr 2011 12:48:20 +0200
7
1gnome-settings-daemon (2.32.1-0ubuntu13) natty; urgency=low8gnome-settings-daemon (2.32.1-0ubuntu13) natty; urgency=low
29
3 * debian/patches/05_use_xrecord.patch:10 * debian/patches/05_use_xrecord.patch:
411
=== added file 'debian/patches/17_react_when_streams_removed.patch'
--- debian/patches/17_react_when_streams_removed.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/17_react_when_streams_removed.patch 2011-04-19 14:51:34 +0000
@@ -0,0 +1,47 @@
1From c9a6a27aa766b31d9f32d182b1de5886793e906b Mon Sep 17 00:00:00 2001
2From: Rodrigo Moya <rodrigo@gnome-db.org>
3Date: Tue, 19 Apr 2011 15:59:35 +0200
4Subject: [PATCH] media-keys: React to stream-removed signal from GvcMixerControl
5
6---
7 plugins/media-keys/gsd-media-keys-manager.c | 17 +++++++++++++++++
8 1 files changed, 17 insertions(+), 0 deletions(-)
9
10diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
11index b563f73..1f18074 100644
12--- a/plugins/media-keys/gsd-media-keys-manager.c
13+++ b/plugins/media-keys/gsd-media-keys-manager.c
14@@ -794,6 +794,19 @@ on_control_default_sink_changed (GvcMixerControl *control,
15 update_default_sink (manager);
16 }
17
18+static void
19+on_control_stream_removed (GvcMixerControl *control,
20+ guint id,
21+ GsdMediaKeysManager *manager)
22+{
23+ if (manager->priv->stream != NULL) {
24+ if (gvc_mixer_stream_get_id (manager->priv->stream) == id) {
25+ g_object_unref (manager->priv->stream);
26+ manager->priv->stream = NULL;
27+ }
28+ }
29+}
30+
31 #endif /* HAVE_PULSE */
32
33 static gint
34@@ -1118,6 +1131,10 @@ gsd_media_keys_manager_start (GsdMediaKeysManager *manager,
35 "default-sink-changed",
36 G_CALLBACK (on_control_default_sink_changed),
37 manager);
38+ g_signal_connect (manager->priv->volume,
39+ "stream-removed",
40+ G_CALLBACK (on_control_stream_removed),
41+ manager);
42
43 gvc_mixer_control_open (manager->priv->volume);
44
45--
461.7.2.3
47
048
=== modified file 'debian/patches/series'
--- debian/patches/series 2011-04-07 10:34:45 +0000
+++ debian/patches/series 2011-04-19 14:51:34 +0000
@@ -8,6 +8,7 @@
807_dont_display_autostart.patch807_dont_display_autostart.patch
912_monitor_network_fs.patch912_monitor_network_fs.patch
1016_use_synchronous_notifications.patch1016_use_synchronous_notifications.patch
1117_react_when_streams_removed.patch
1130_pkgconfig-path.patch1230_pkgconfig-path.patch
1232-datetime-service-add-ntp-support.patch1332-datetime-service-add-ntp-support.patch
1333-datetime-service-ubuntu-ntp.patch1433-datetime-service-ubuntu-ntp.patch

Subscribers

People subscribed via source and target branches

to all changes: