[gnome-control-center] sharing: Forcefully enable the MediaExport plugin



commit b8626fd50ab1a29e82e34d6d7cd4a2555d87c054
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Sep 13 23:08:34 2013 -0300

    sharing: Forcefully enable the MediaExport plugin
    
    When enabling DLNA, also make sure to enable the plugin that
    we use to export the media to the TV or set-top-box, otherwise
    rygel won't export anything.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708055

 panels/sharing/cc-media-sharing.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/sharing/cc-media-sharing.c b/panels/sharing/cc-media-sharing.c
index cf3698a..55139a3 100644
--- a/panels/sharing/cc-media-sharing.c
+++ b/panels/sharing/cc-media-sharing.c
@@ -121,7 +121,8 @@ cc_media_sharing_get_preferences (gboolean   *enabled,
   file = cc_media_sharing_open_key_file ();
 
   if (enabled)
-   *enabled = g_key_file_get_boolean (file, "general", "upnp-enabled", NULL);
+   *enabled = (g_key_file_get_boolean (file, "general", "upnp-enabled", NULL) &&
+               g_key_file_get_boolean (file, "MediaExport", "enabled", NULL));
 
   if (folders)
     {
@@ -177,6 +178,7 @@ cc_media_sharing_set_preferences (gboolean   enabled,
     cc_media_sharing_disable_autostart ();
 
   g_key_file_set_boolean (file, "general", "upnp-enabled", enabled);
+  g_key_file_set_boolean (file, "MediaExport", "enabled", enabled);
 
   str_list = folders;
   length = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]