Mercurial > geeqie.yaz
comparison src/pixbuf-renderer.c @ 495:c7a2471e5c4e
Introduce macros to display debug messages.
if (debug) printf(...) is now replaced by variadic macros:
DEBUG_1()
And for higher debugging levels:
DEBUG_2()
DEBUG_3()
DEBUG_4()
author | zas_ |
---|---|
date | Wed, 23 Apr 2008 20:47:19 +0000 |
parents | 48c8e49b571c |
children | fc9c8a3e1a8b |
comparison
equal
deleted
inserted
replaced
494:3bb9a8df6ee9 | 495:c7a2471e5c4e |
---|---|
2986 static void pr_update_signal(PixbufRenderer *pr) | 2986 static void pr_update_signal(PixbufRenderer *pr) |
2987 { | 2987 { |
2988 #if 0 | 2988 #if 0 |
2989 printf("FIXME: send updated signal\n"); | 2989 printf("FIXME: send updated signal\n"); |
2990 #endif | 2990 #endif |
2991 if (debug) printf("%s pixbuf renderer updated - started drawing %p\n", get_exec_time(), pr); | 2991 DEBUG_1("%s pixbuf renderer updated - started drawing %p\n", get_exec_time(), pr); |
2992 pr->debug_updated = TRUE; | 2992 pr->debug_updated = TRUE; |
2993 } | 2993 } |
2994 | 2994 |
2995 static void pr_zoom_signal(PixbufRenderer *pr) | 2995 static void pr_zoom_signal(PixbufRenderer *pr) |
2996 { | 2996 { |
3014 g_signal_emit(pr, signals[SIGNAL_RENDER_COMPLETE], 0); | 3014 g_signal_emit(pr, signals[SIGNAL_RENDER_COMPLETE], 0); |
3015 g_object_set(G_OBJECT(pr), "complete", TRUE, NULL); | 3015 g_object_set(G_OBJECT(pr), "complete", TRUE, NULL); |
3016 } | 3016 } |
3017 if (pr->debug_updated) | 3017 if (pr->debug_updated) |
3018 { | 3018 { |
3019 if (debug) printf("%s pixbuf renderer done %p\n", get_exec_time(), pr); | 3019 DEBUG_1("%s pixbuf renderer done %p\n", get_exec_time(), pr); |
3020 pr->debug_updated = FALSE; | 3020 pr->debug_updated = FALSE; |
3021 } | 3021 } |
3022 } | 3022 } |
3023 | 3023 |
3024 static void pr_drag_signal(PixbufRenderer *pr, GdkEventButton *bevent) | 3024 static void pr_drag_signal(PixbufRenderer *pr, GdkEventButton *bevent) |