comparison src/print.c @ 23:17acca639a86

##### Note: GQview CVS on sourceforge is not always up to date, please use ##### ##### an offical release when making enhancements and translation updates. ##### Fri Mar 18 19:52:38 2005 John Ellis <johne@verizon.net> * pixbuf-renderer.c: Fix broken 2pass queueing so it merges a single queue item for each tile, and now that a tile holds a queue pointer there is no need to walk the tile list to find a possible merge victim. Thu Mar 17 19:23:56 2005 John Ellis <johne@verizon.net> * image.c, pixbuf-renderer.[ch]: More progress, and 2 pass zoom now works again (mostly). Tue Mar 15 23:17:41 2005 John Ellis <johne@verizon.net> * image.[ch]: Start conversion to use of PixbufRenderer. * pixbuf-renderer.[ch]: Additions and fixes for use by ImageWindow. * fullscreen.c, image-overlay.c, img-view.c, info.c, layout.c, layout_image.c, print.c: Changes for above ImageWindow conversion. * typedefs.h: Remove unused ImageWindow variables. Mon Mar 14 20:45:50 2005 John Ellis <johne@verizon.net> * pan-view.c: Convert to using new PixbufRenderer. * pixbuf-renderer.[ch]: Clean up and fixes. Sun Mar 13 10:21:35 2005 John Ellis <johne@verizon.net> * image.c (image_scroller_start): Unref scroller pixbuf after adding it as an overlay to avoid leaking it. * pixbuf-renderer.[ch]: All functions defined in header file are now implemented. Fri Mar 11 17:05:36 2005 John Ellis <johne@verizon.net> * pixbuf-renderer.[ch]: Set up object properties and additional. Mar 10 19:22:18 2005 John Ellis <johne@verizon.net> * pixbuf-renderer.[ch]: FIx scrolling to use old method of gdk_draw and not gdk_scroll, as scroll often invalidates the entire window (!). Also merged in source tiles code from image.c. * pan-view.c: Change picked up when testing PixbufRender zoom. Tue Mar 8 23:26:00 2005 John Ellis <johne@verizon.net> * pixbuf-renderer.[ch]: Start of turning image drawing portion of ImageWindow into an actual GtkWidget. * src/Makefile.am: Add pixbuf-renderer.[ch]. * pan-view.c: Added temporary hack button and callback for testing PixbufRenderer widget.
author gqview
date Sat, 19 Mar 2005 01:15:17 +0000
parents d907d608745f
children 045ac4c27e62
comparison
equal deleted inserted replaced
22:e9625635e162 23:17acca639a86
612 pw->layout_width = width; 612 pw->layout_width = width;
613 pw->layout_height = height; 613 pw->layout_height = height;
614 614
615 sw = print_preview_unit(width); 615 sw = print_preview_unit(width);
616 sh = print_preview_unit(height); 616 sh = print_preview_unit(height);
617 pixbuf = pw->layout_image->pixbuf; 617 pixbuf = image_get_pixbuf(pw->layout_image);
618 if (!pixbuf || 618 if (!pixbuf ||
619 gdk_pixbuf_get_width(pixbuf) != sw || 619 gdk_pixbuf_get_width(pixbuf) != sw ||
620 gdk_pixbuf_get_height(pixbuf) != sh) 620 gdk_pixbuf_get_height(pixbuf) != sh)
621 { 621 {
622 pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8, sw, sh); 622 pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8, sw, sh);
1834 } 1834 }
1835 1835
1836 static gint print_job_preview_init(PrintWindow *pw) 1836 static gint print_job_preview_init(PrintWindow *pw)
1837 { 1837 {
1838 if (pw->job_pixbuf) g_object_unref(pw->job_pixbuf); 1838 if (pw->job_pixbuf) g_object_unref(pw->job_pixbuf);
1839 pw->job_pixbuf = pw->layout_image->pixbuf; 1839 pw->job_pixbuf = image_get_pixbuf(pw->layout_image);
1840 g_object_ref(pw->job_pixbuf); 1840 g_object_ref(pw->job_pixbuf);
1841 1841
1842 return print_job_preview_page_new(pw, pw->job_page); 1842 return print_job_preview_page_new(pw, pw->job_page);
1843 } 1843 }
1844 1844