[seahorse] import-dialog: add debug log on parsed



commit 8d5e1dd51e63b71cec5dd6991dd9e02848215039
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun May 22 18:11:20 2022 +0200

    import-dialog: add debug log on parsed

 src/import-dialog.vala | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/import-dialog.vala b/src/import-dialog.vala
index 650aaa29..d3536467 100644
--- a/src/import-dialog.vala
+++ b/src/import-dialog.vala
@@ -44,7 +44,10 @@ public class Seahorse.ImportDialog : Gtk.Dialog {
         ((Gtk.HeaderBar) get_header_bar()).pack_end(this.import);
 
         this.viewer = new Gcr.ViewerWidget();
-        this.viewer.added.connect((v, r, parsed) => this.import.add_parsed(parsed));
+        this.viewer.added.connect((v, r, parsed) => {
+            debug("Parsed a '%s' with format %d", parsed.get_description(), parsed.get_format());
+            this.import.add_parsed(parsed);
+        });
         this.viewer.show();
         ((Gtk.Box) get_content_area()).pack_end(this.viewer);
     }


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