diff options
author | FichteFoll <fichtefoll2@googlemail.com> | 2019-05-08 06:34:19 +0200 |
---|---|---|
committer | FichteFoll <fichtefoll2@googlemail.com> | 2019-05-08 14:50:16 +0200 |
commit | d381ef6af55721ae082f54608f4ca23cbb00249f (patch) | |
tree | b19654439d4d9c5c9430fcfded228e38363635d8 | |
parent | Add fallback to generic icons (diff) | |
download | dragon-d381ef6af55721ae082f54608f4ca23cbb00249f.tar.gz dragon-d381ef6af55721ae082f54608f4ca23cbb00249f.tar.bz2 dragon-d381ef6af55721ae082f54608f4ca23cbb00249f.zip |
Output debug messages on stderr
Otherwise consumers can't use verbose mode and interpret stdout at the
same time. stderr is usually used for all kinds of logging.
-rw-r--r-- | dragon.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -84,7 +84,7 @@ void drag_data_get(GtkWidget *widget, struct draggable_thing *dd = (struct draggable_thing *)user_data; if (info == TARGET_TYPE_URI) { if (verbose) - printf("Writing as URI: %s\n", dd->uri); + fprintf(stderr, "Writing as URI: %s\n", dd->uri); char** uris; if(drag_all){ @@ -99,7 +99,7 @@ void drag_data_get(GtkWidget *widget, g_signal_stop_emission_by_name(widget, "drag-data-get"); } else if (info == TARGET_TYPE_TEXT) { if (verbose) - printf("Writing as TEXT: %s\n", dd->text); + fprintf(stderr, "Writing as TEXT: %s\n", dd->text); gtk_selection_data_set_text(data, dd->text, -1); } else { fprintf(stderr, "Error: bad target type %i\n", info); |