Mercurial > geeqie
diff src/pixbuf-renderer.c @ 386:0226daf8c30b
in debug mode print time information on selected events
author | nadvornik |
---|---|
date | Wed, 16 Apr 2008 20:15:42 +0000 |
parents | 9122c5da1223 |
children | c4080362d619 |
line wrap: on
line diff
--- a/src/pixbuf-renderer.c Wed Apr 16 18:57:50 2008 +0000 +++ b/src/pixbuf-renderer.c Wed Apr 16 20:15:42 2008 +0000 @@ -27,6 +27,9 @@ #ifdef GQ_BUILD #include "pixbuf_util.h" + + /* for debug */ + #include "main.h" #endif @@ -2497,6 +2500,8 @@ #if 0 printf("FIXME: send updated signal\n"); #endif + if (debug) printf("%s pixbuf renderer updated - started drawing %p\n", get_exec_time(), pr); + pr->debug_updated = TRUE; } static void pr_zoom_signal(PixbufRenderer *pr) @@ -2521,6 +2526,11 @@ g_signal_emit(pr, signals[SIGNAL_RENDER_COMPLETE], 0); g_object_set(G_OBJECT(pr), "complete", TRUE, NULL); } + if (pr->debug_updated) + { + if (debug) printf("%s pixbuf renderer done %p\n", get_exec_time(), pr); + pr->debug_updated = FALSE; + } } static void pr_drag_signal(PixbufRenderer *pr, GdkEventButton *bevent)