diff options
author | FichteFoll <fichtefoll2@googlemail.com> | 2019-05-08 15:41:32 +0200 |
---|---|---|
committer | FichteFoll <fichtefoll2@googlemail.com> | 2019-07-05 16:50:42 +0200 |
commit | c1eb3fd9708eb179737f9f6bff9fe5230995e658 (patch) | |
tree | c56d8bbb18a0432eefb614e35550194ad056189b | |
parent | Option to print file paths in target mode (diff) | |
download | dragon-c1eb3fd9708eb179737f9f6bff9fe5230995e658.tar.gz dragon-c1eb3fd9708eb179737f9f6bff9fe5230995e658.tar.bz2 dragon-c1eb3fd9708eb179737f9f6bff9fe5230995e658.zip |
Add verbose logging for drag receive events
-rw-r--r-- | dragon.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -248,6 +248,8 @@ drag_data_received (GtkWidget *widget, if (!uris && !text) gtk_drag_finish (context, FALSE, FALSE, time); if (uris) { + if (verbose) + fputs("Received URIs\n", stderr); gtk_container_remove(GTK_CONTAINER(vbox), widget); for (; *uris; uris++) { if (is_file_uri(*uris)) { @@ -269,8 +271,11 @@ drag_data_received (GtkWidget *widget, add_target_button(); gtk_widget_show_all(window); } else if (text) { + if (verbose) + fputs("Received Text\n", stderr); printf("%s\n", text); - } + } else if (verbose) + fputs("Received nothing\n", stderr); gtk_drag_finish (context, TRUE, FALSE, time); if (and_exit) gtk_main_quit(); |