[totem/wip/hadess/save-file-fixes: 5/8] save-file: Add more debug when saving streams locally



commit e474f63ce6464b02cb22ef78d5d4c6f7fd07fc2e
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 5 18:25:03 2019 +0100

    save-file: Add more debug when saving streams locally

 src/plugins/save-file/totem-save-file.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/plugins/save-file/totem-save-file.c b/src/plugins/save-file/totem-save-file.c
index 6d20c1868..5cf03422d 100644
--- a/src/plugins/save-file/totem-save-file.c
+++ b/src/plugins/save-file/totem-save-file.c
@@ -202,6 +202,9 @@ totem_save_file_plugin_copy (GSimpleAction       *action,
                } else {
                        GFile *file;
 
+                       g_debug ("Successfully linked '%s' to '%s'",
+                                src_path, dest_path);
+
                        file = g_file_new_for_path (dest_path);
                        totem_object_add_to_view (pi->priv->totem, file, filename);
                        g_object_unref (file);
@@ -331,11 +334,15 @@ totem_save_file_download_filename (GObject    *gobject,
        if (filename == NULL)
                return;
 
+       g_debug ("download-filename changed to '%s'", filename);
+
        pi->priv->mrl = g_filename_to_uri (filename, NULL, NULL);
        g_free (filename);
        pi->priv->name = totem_object_get_short_title (pi->priv->totem);
        pi->priv->is_tmp = TRUE;
 
+       g_debug ("MRL: '%s', name: '%s'", pi->priv->mrl, pi->priv->name);
+
        g_simple_action_set_enabled (G_SIMPLE_ACTION (pi->priv->action), TRUE);
 }
 


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