From c1eb3fd9708eb179737f9f6bff9fe5230995e658 Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Wed, 8 May 2019 15:41:32 +0200 Subject: Add verbose logging for drag receive events --- dragon.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dragon.c') 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(); -- cgit