aboutsummaryrefslogtreecommitdiff
path: root/dragon.c
diff options
context:
space:
mode:
authorFichteFoll <fichtefoll2@googlemail.com>2019-05-08 15:41:32 +0200
committerFichteFoll <fichtefoll2@googlemail.com>2019-07-05 16:50:42 +0200
commitc1eb3fd9708eb179737f9f6bff9fe5230995e658 (patch)
treec56d8bbb18a0432eefb614e35550194ad056189b /dragon.c
parentOption to print file paths in target mode (diff)
downloaddragon-c1eb3fd9708eb179737f9f6bff9fe5230995e658.tar.gz
dragon-c1eb3fd9708eb179737f9f6bff9fe5230995e658.tar.bz2
dragon-c1eb3fd9708eb179737f9f6bff9fe5230995e658.zip
Add verbose logging for drag receive events
Diffstat (limited to 'dragon.c')
-rw-r--r--dragon.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dragon.c b/dragon.c
index 65e1191..bdd39c7 100644
--- a/dragon.c
+++ b/dragon.c
@@ -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();
bgstack15