comparison 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
comparison
equal deleted inserted replaced
385:2c06e06f4236 386:0226daf8c30b
25 #define GQ_BUILD 1 25 #define GQ_BUILD 1
26 26
27 27
28 #ifdef GQ_BUILD 28 #ifdef GQ_BUILD
29 #include "pixbuf_util.h" 29 #include "pixbuf_util.h"
30
31 /* for debug */
32 #include "main.h"
30 #endif 33 #endif
31 34
32 35
33 /* size to use when breaking up image pane for rendering */ 36 /* size to use when breaking up image pane for rendering */
34 #define PR_TILE_SIZE 128 37 #define PR_TILE_SIZE 128
2495 static void pr_update_signal(PixbufRenderer *pr) 2498 static void pr_update_signal(PixbufRenderer *pr)
2496 { 2499 {
2497 #if 0 2500 #if 0
2498 printf("FIXME: send updated signal\n"); 2501 printf("FIXME: send updated signal\n");
2499 #endif 2502 #endif
2503 if (debug) printf("%s pixbuf renderer updated - started drawing %p\n", get_exec_time(), pr);
2504 pr->debug_updated = TRUE;
2500 } 2505 }
2501 2506
2502 static void pr_zoom_signal(PixbufRenderer *pr) 2507 static void pr_zoom_signal(PixbufRenderer *pr)
2503 { 2508 {
2504 g_signal_emit(pr, signals[SIGNAL_ZOOM], 0, pr->zoom); 2509 g_signal_emit(pr, signals[SIGNAL_ZOOM], 0, pr->zoom);
2518 { 2523 {
2519 if (!pr->complete) 2524 if (!pr->complete)
2520 { 2525 {
2521 g_signal_emit(pr, signals[SIGNAL_RENDER_COMPLETE], 0); 2526 g_signal_emit(pr, signals[SIGNAL_RENDER_COMPLETE], 0);
2522 g_object_set(G_OBJECT(pr), "complete", TRUE, NULL); 2527 g_object_set(G_OBJECT(pr), "complete", TRUE, NULL);
2528 }
2529 if (pr->debug_updated)
2530 {
2531 if (debug) printf("%s pixbuf renderer done %p\n", get_exec_time(), pr);
2532 pr->debug_updated = FALSE;
2523 } 2533 }
2524 } 2534 }
2525 2535
2526 static void pr_drag_signal(PixbufRenderer *pr, GdkEventButton *bevent) 2536 static void pr_drag_signal(PixbufRenderer *pr, GdkEventButton *bevent)
2527 { 2537 {