[PATCH 4/7] core: Add default notify_change_stop() behaviour
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 4/7] core: Add default notify_change_stop() behaviour
- Date: Tue, 1 Feb 2011 18:09:09 +0100
In case sources does not re-implement notify_change_stop(), just stop signal
emission.
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
---
src/grl-media-source.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index 2548f0f..c27e5aa 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -2574,6 +2574,11 @@ void grl_media_source_notify_change_stop (GrlMediaSource *source)
if (source_class->notify_change_stop) {
source_class->notify_change_stop (source);
+ } else {
+ /* Just stop signal emission */
+ g_signal_stop_emission (source,
+ registry_signals[SIG_CONTENT_CHANGED],
+ 0);
}
}
--
1.7.3.5
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]