[totem] main: Listen to "mount-removed" signals too
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Listen to "mount-removed" signals too
- Date: Mon, 2 Jul 2012 19:25:11 +0000 (UTC)
commit 828a5f79416c4ba7a2caaa9ea4494a1845cfaefe
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 2 20:19:55 2012 +0100
main: Listen to "mount-removed" signals too
As we'd only get "mount-pre-unmount" signals when gvfs is used
to eject the device.
https://bugzilla.gnome.org/show_bug.cgi?id=671285
src/totem-uri.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-uri.c b/src/totem-uri.c
index 4b1b507..d293a50 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -288,6 +288,10 @@ totem_setup_file_monitoring (Totem *totem)
"mount-pre-unmount",
G_CALLBACK (totem_action_on_unmount),
totem);
+ g_signal_connect (G_OBJECT (totem->monitor),
+ "mount-removed",
+ G_CALLBACK (totem_action_on_unmount),
+ totem);
}
/* List from xine-lib's demux_sputext.c.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]