Commit Graph

381 Commits

Author SHA1 Message Date
Jehan 870ca6334d plug-ins: install plug-ins in subfolder.
I am going to forbid plug-ins from being installed directly in the root
of the plug-ins/ directory. They will have to be installed in a
subdirectory named the same as the entry point binary.
This may seem useless for our core plug-ins which are nearly all
self-contained in single binaries, but this is actually a necessary
restriction to eliminate totally the DLL hell issue on Windows. Moving
core plug-ins in subfolders is only a necessary consequence for it.
2018-05-20 21:06:35 +02:00
Simon Budig 04b9282d7f print: kill GtkTable 2018-05-20 21:06:34 +02:00
Simon Budig 9bd634a9c4 plug-ins: try to catch all gtk_table_* uses for the size-entries 2018-05-20 21:06:32 +02:00
Michael Natterer ce2cd374ee Replace gdk_cursor_unref() with g_object_unref() 2018-05-20 21:06:28 +02:00
Michael Natterer e76468aae9 plug-ins: port the print preview to the new size request API 2018-05-20 21:06:27 +02:00
Michael Natterer 09e214bc11 plug-ins: port some more plug-ins to GTK+ 3.0 2018-05-20 21:06:27 +02:00
luz.paz 147c09f19e Bug 795161 - Misc. typo fixes in source comments and doxygen
Found via `codespell`
Follow-up to  commit 7fdb963e01
2018-04-18 21:06:57 +02:00
Michael Natterer dda54c1df8 Deprecate stock items for good and change all icon defines to GIMP_ICON_*
Try to sort all GIMP_ICON_* defines into FDO categories like in
https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html

Add defines for all icons we override, rename some icons to their FDO
standard names, and mark the ones we duplicate with a comment so we
don't forget to rename those to standard names in 3.0.
2017-03-05 16:01:59 +01:00
Michael Natterer 80003dff38 Bug 777233 - Printing an SVG file results in a black sheet of paper
Create a white rectangle behind everything, which should take care of
whatever print backend brokenness.
2017-01-15 18:04:54 +01:00
Jehan 0cdca57d12 plug-ins: use an epsilon to compare double values.
Also take into account the case when the minimum possible print
resolution is higher than the expected image resolution. We don't want
to remember the print resolution if it is this lower value either.
See commit 7335dc8.
2016-12-20 16:21:08 +01:00
Jehan 7335dc8dc2 Bug 776017 - Print resolution changes not taken in account...
... for second printing.
Do not save in parasite the resolution used in the print plug-in when
it is the image intended resolution. This allows to take into account
changes of print resolution in successive printing. Only save it when
different since one may have reasons and we should not interfere.
2016-12-20 16:20:36 +01:00
Jehan 4827116ac9 plug-ins: add a "Load Defaults" button to reset print resolution...
... in the print plug-in.
The resolution set during printing may be different from the print size,
for various reason (home printing vs. printshop for instance). The print
plug-in's resolution is saved and reused from a non-persistent parasite,
thus masking actual intended print resolution. Adding this button allows
to reset this temporary value to the intended resolution at any time.
2016-12-20 16:20:27 +01:00
Michael Natterer 4df9a1d568 Get rid of gtk_misc_set_alignment(label) and use gtk_label_set_x,yalign() 2016-09-08 19:11:20 +02:00
Michael Natterer b5530e9e3d Use the new GeglAccessMode enum instead of the old values 2014-07-02 02:00:35 +02:00
Michael Natterer 08ffad9086 plug-ins: some gimp_spin_button_new() -> gtk_spin_button_new() 2014-06-22 00:26:59 +02:00
Michael Natterer de08267f06 libgimpbase, *: add enum value GIMP_ICON_TYPE_ICON_NAME
and keep GIMP_ICON_TYPE_STOCK_ID as a deprecated alias. Change all
plug-ins accordingly and increase the pluginrc file version number so
it gets regenerated with "icon-name" instead of "stock-id".
2014-05-11 23:56:30 +02:00
Michael Natterer 1093a82e79 Bug 724444 - Printing ignores dpi ratio / image proportions, always prints 1:1
Enable the resolution chain button only if xres == yres.
2014-04-18 19:46:41 +02:00
Piotr Drąg 128377b406 Fix typo 2014-04-17 01:04:54 +02:00
Michael Natterer cf5bc57e20 plug-ins: remove some accidential whitespace from the last commit 2014-04-16 22:36:23 +02:00
Hartmut Kuhse 0bc827cb69 Bug 725576 - GIMP crashes on printing large TIFF files
Cairo surface creating is limited to 32768.
Printing is refused for images bigger than 32768 either width,
height or both.
2014-04-16 11:15:35 +02:00
Michael Natterer ec786816bb */Makefile.am: merge INCLUDES into AM_CPPFLAGS
automake-1.13 finally warns about this anachronism.
2013-06-05 20:48:37 +02:00
Michael Natterer 67dda14e77 plug-ins: cleanup in the recently GEGL-ported plug-ins
Mostly formatting consistency paranoia.
2012-11-27 20:58:05 +01:00
Michael Natterer cc817670ed plug-ins: port print to GEGL 2012-09-21 23:33:01 +02:00
Michael Natterer 73fc1df8ff Bug 678297 - Cannot find Page Setup in Gimp 2.8
Embed the page setup dialog only on non-windows systems. This
effectively reverts bdc3f7e7e0 but puts
the diff in #if[n]def EMBED_PAGE_SETUP which is defined as
!G_OS_WIN32. Did not revert the bug fixes that were mixed with
the original embedding patch.
2012-08-07 16:03:42 +02:00
Michael Muré 9966bcfd13 remove now useless and deprecated g_thread_init
Warning

g_thread_init has been deprecated since version 2.32 and should not be used in newly-written code. This function is no longer necessary. The GLib threading system is automatically initialized at the start of your program.
2012-05-03 20:44:07 +09:00
Øyvind Kolås d1ced11415 plug-ins: add GEGL_CFLAGS to many Makefile.am's 2012-05-02 17:46:08 +02:00
Michael Natterer bdc3f7e7e0 Bug 635615 - Embed page setup dialog in the print dialog
Get rid of the antique separate page setup menu item and dialog.
Started with a patch from Bilal Akhtar but massively changed it, and
fixed some undiscovered bugs on the way.
2012-02-12 13:51:18 +01:00
Michael Natterer 8a20035ea0 Bug 661313 - "None" string needs differentiation (message context)
Add translation context to all "None".
2011-11-16 23:13:03 +01:00
Mukund Sivaraman baa861cd66 print: Delete dead variable and assignment 2011-10-12 19:01:54 +05:30
Michael Natterer dcb4c6e34a plug-ins: use gtk_box_new() 2011-09-30 12:18:24 +02:00
Michael Natterer 00c446fc6e plug-ins: remove NONINTERACTIVE from print's PDB docs, it's not supported 2011-09-22 21:05:11 +02:00
Mikael Magnusson 8ff66342b8 plug-ins: set progress to 1.0 when done 2011-04-10 19:28:43 +02:00
Michael Natterer 8c4d99f883 Bug 645456 - Inconsistent window (role) naming scheme
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
Michael Natterer 87646e9ace libgimp: deprecate and rename the image parasite functions
in exactly the way the drawable functios were turned into item ones.
2011-03-08 13:19:21 +01:00
Sven Neumann 6be41a6675 Bug 631199 - Printing and Print preview broken with cairo 1.10
Add missing calls to cairo_surface_mark_dirty().
2010-10-03 14:05:20 +02:00
Michael Schumacher e77dd90fc0 Bug 574018 - Add a manifest to executables
Created a resource file for plug-ins and a rule to link it to them.
The application icon file is smaller than the default one, there's no
point in doubling the size of a plug-in executable just for an icon.

If no problems turn up, this will close the bug.
2010-09-01 08:24:45 +02:00
Michael Natterer 611877783c libgimp: deprecate gimp_image_attach_new_parasite()
and port all its users to gimp_image_parasite_attach().
2010-07-09 14:15:55 +02:00
Michael Natterer c6a2eaa5c4 plug-ins: use new item API instead of deprecated drawable API 2010-07-09 12:27:36 +02:00
Michael Natterer 018e8b0d29 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 20:31:57 +02:00
Michael Natterer 04836301aa Use accessors instead of widget->window and container->border_width 2009-10-09 23:02:25 +02:00
Michael Natterer a52a4a0fa3 Use GtkAdjustment's accessors 2009-10-09 23:02:24 +02:00
Sven Neumann 9464d303a9 print: don't store image specific settings globally
It doesn't make sense to store image-specific settings such as resolution
and offsets in the global print-settings file. Only store them in the
image parasite, but remove them before saving the print-settings file.
2009-08-18 22:18:59 +02:00
Michael Schumacher eed061efbb Adding Microsoft Windows executables to the .gitignore files
All binaries have been added individually.
Old binaries are supposed to show up as untracked.
2009-06-19 00:14:17 +02:00
Sven Neumann af965d82dd Bug 584345 – when printing, the number of copies should be reset to 1
at each new GIMP session

Do not store the number of copies in the print-settings resource file,
but keep it in the print-settings that are attached to the image.
2009-06-01 20:02:19 +02:00
Sven Neumann a196a2dbe0 app/widgets/gimpviewrendererimagefile.c
2009-03-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrendererimagefile.c
	(gimp_view_renderer_imagefile_get_icon)
	* plug-ins/print/print.c (query): removed GTK+ version checks 
that
	have become obsolete.


svn path=/trunk/; revision=28111
2009-03-05 19:59:45 +00:00
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Michael Natterer 4ea1437646 plug-ins/common/*.c plug-ins/color-rotate/color-rotate.c
2009-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c
	* plug-ins/color-rotate/color-rotate.c
	* plug-ins/file-bmp/bmp.c
	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-psd/psd-save.c
	* plug-ins/file-psd/psd.c
	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-uri/uri.c
	* plug-ins/file-xjt/xjt.c
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gradient-flare/gradient-flare.c
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/lighting/lighting-main.c
	* plug-ins/map-object/map-object-main.c
	* plug-ins/maze/maze.c
	* plug-ins/metadata/metadata.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/gimpfu.py
	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: document the "run-mode" parameter
	as we document enums for core procedures.


svn path=/trunk/; revision=27922
2009-01-19 20:11:36 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann 8ae65ad5a3 plug-ins/print/print.[ch] plug-ins/print/print-draw-page.c
2008-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: optionally draw crop-marks.


svn path=/trunk/; revision=27859
2008-12-30 21:36:04 +00:00
Sven Neumann cc7222d8e4 added missing include.
2008-11-04  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplay-foreach.c: added missing include.

	* app/actions/debug-commands.c
	* plug-ins/common/lcms.c
	* plug-ins/common/mail.c
	* plug-ins/file-bmp/bmp-write.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-uri/uri.c
	* plug-ins/help/gimphelpdomain.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/print/print.c: fixed use of g_message() with literal
	strings.


svn path=/trunk/; revision=27551
2008-11-04 14:05:24 +00:00
Sven Neumann 1effaac2bb check the crossing mode and don't unset the "inside" flag when the event
2008-10-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c 
(print_preview_leave_notify_event):
	check the crossing mode and don't unset the "inside" flag when 
the
	event is caused by a pointer grab/ungrab.


svn path=/trunk/; revision=27368
2008-10-22 20:34:20 +00:00
Sven Neumann e959bf084c Bug 524615 – Print not to scale
2008-10-22  Sven Neumann  <sven@gimp.org>

	Bug 524615 – Print not to scale

	* plug-ins/print/print.c: set the unit for dimensions on the 
Cairo
	context used for printing to GTK_UNIT_PIXELS.

	* plug-ins/print/print-draw-page.c (print_draw_page): changed 
the
	Cairo scale factors accordingly. Seems to fix printing on 
Windows.


svn path=/trunk/; revision=27364
2008-10-22 15:01:34 +00:00
Michael Natterer a16f672caa free the right array.
2008-09-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-draw-page.c
	(print_cairo_surface_from_drawable): free the right array.


svn path=/trunk/; revision=27057
2008-09-25 15:09:28 +00:00
Sven Neumann db99239b76 somewhat safer use of the colormap
svn path=/trunk/; revision=26974
2008-09-17 15:03:36 +00:00
Sven Neumann 78c71c9d9d allow to pass NULL for "num_colors".
2008-09-17  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpimage.c (gimp_image_get_colormap): allow to pass
	NULL for "num_colors".

	* plug-ins/print/print-draw-page.c: added missing conversion
	routines for indexed images. Fixes bug #552609.


svn path=/trunk/; revision=26973
2008-09-17 14:45:56 +00:00
Sven Neumann 82550ffe54 return with a proper PDB status type depending on the result of
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: return with a proper PDB status type
	depending on the result of gtk_print_operation_run(). When run
	non-interactively, pass the error message with the return 
values.


svn path=/trunk/; revision=26729
2008-08-23 17:11:40 +00:00
Sven Neumann 6ddb6aa712 use the new API to set the PDB error handler in order to suppress a
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (page_setup): use the new API to set 
the
	PDB error handler in order to suppress a warning if the 
temporary
	procedure does not exist (see bug #513291).


svn path=/trunk/; revision=26683
2008-08-20 18:11:26 +00:00
Sven Neumann 25a51b87d6 get rid of the gimp_export_image() hack and use the new procedure
2008-08-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (print_image): get rid of the
	gimp_export_image() hack and use the new procedure
	gimp-layer-new-from-visible instead. Finally we can print what 
the
	user sees (including channels).


svn path=/trunk/; revision=26427
2008-08-07 19:22:19 +00:00
Michael Natterer b829a478ba plug-ins/color-rotate/color-rotate-callbacks.c plug-ins/gfig/gfig-grid.c
2008-06-29  Michael Natterer  <mitch@gimp.org>

	* plug-ins/color-rotate/color-rotate-callbacks.c
	* plug-ins/gfig/gfig-grid.c
	* plug-ins/gimpressionist/general.c
	* plug-ins/gimpressionist/orientmap.c
	* plug-ins/gimpressionist/paper.c
	* plug-ins/gimpressionist/placement.c
	* plug-ins/gimpressionist/sizemap.c
	* plug-ins/gimpressionist/utils.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_grid.c
	* plug-ins/jpeg/jpeg-save.c
	* plug-ins/print/print-preview.c
	* plug-ins/win-snap/winsnap.c: use accessors instead of accessing
	members of GTK+ widgets directly.


svn path=/trunk/; revision=26018
2008-06-29 13:34:05 +00:00
Michael Natterer 658c5e6fbc fix help string of the page setup procedure.
2008-04-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print.c (query): fix help string of the page
	setup procedure.


svn path=/trunk/; revision=25525
2008-04-25 12:30:10 +00:00
Michael Natterer 30fe366078 unset the move cursor in GtkWidget::leave_notify_event() so it always gets
2008-04-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-preview.c: unset the move cursor in
	GtkWidget::leave_notify_event() so it always gets unset when the
	pointer leaves the widget.


svn path=/trunk/; revision=25464
2008-04-11 08:39:10 +00:00
Sven Neumann 33b7a95219 set the number of pages to one before showing the dialog. Not that it
2008-04-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]: set the number of pages to one before
	showing the dialog. Not that it would make a difference, but it
	could...

svn path=/trunk/; revision=25387
2008-04-07 10:38:38 +00:00
Sven Neumann f84b68a4af added new procedure gimp-procedural-db-proc-exists.
2008-04-06  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/procedural_db.pdb: added new procedure
	gimp-procedural-db-proc-exists.

	* app/pdb/internal-procs.c
	* app/pdb/procedural-db-cmds.c
	* libgimp/gimpproceduraldb_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.

	* plug-ins/print/print.c (page_setup): use the new procedure.


svn path=/trunk/; revision=25384
2008-04-06 20:30:59 +00:00
Sven Neumann 8341dd2fcd do a query for the temporary procedure installed by the 'file-print-gtk'
2008-04-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (page_setup): do a query for the
	temporary procedure installed by the 'file-print-gtk' procedure.
	Temporary solution until bug #344818 has been addressed.


svn path=/trunk/; revision=25383
2008-04-06 19:45:27 +00:00
Mukund Sivaraman f87f2ba907 plug-ins/imagemap/imap_cmd_move.c plug-ins/imagemap/imap_cmd_object_up.c
2008-03-29  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/imagemap/imap_cmd_move.c
        * plug-ins/imagemap/imap_cmd_object_up.c
        * plug-ins/imagemap/imap_cmd_move_up.c
        * plug-ins/imagemap/imap_cmd_move_selected.c
        * plug-ins/imagemap/imap_cmd_move_sash.c
        * plug-ins/imagemap/imap_cmd_object_move.c
        * plug-ins/imagemap/imap_cmd_object_down.c
        * plug-ins/imagemap/imap_object.c
        * plug-ins/imagemap/imap_cmd_move_down.c
        * plug-ins/map-object/map-object-shade.c
        * plug-ins/map-object/map-object-apply.c
        * plug-ins/maze/maze.h
        * plug-ins/maze/maze_face.c
        * plug-ins/selection-to-path/selection-to-path.c
        * plug-ins/selection-to-path/edge.c
        * plug-ins/selection-to-path/pxl-outline.c
        * plug-ins/selection-to-path/fit.c
        * plug-ins/xjt/xjt.c
        * plug-ins/metadata/xmp-parse.c
        * plug-ins/print/print-draw-page.c
        * plug-ins/print/print-settings.c
        * plug-ins/lighting/lighting-preview.c: Cleanups / fixes for
        issues reported by Sparse.


svn path=/trunk/; revision=25296
2008-03-29 09:25:34 +00:00
Sven Neumann f1a7ab78c0 removed unused field.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.h (struct PrintData): removed unused 
field.

	* plug-ins/print/print-page-layout.c: set a minimum size of 
1/100
	of the paper size.


svn path=/trunk/; revision=24986
2008-02-26 20:49:19 +00:00
Sven Neumann c5de94edeb plug-ins/print/print-page-layout.[ch] pressing F1 on the "Image Settings"
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.[ch]
	* plug-ins/print/print.c: pressing F1 on the "Image Settings" 
tab
	calls the GIMP help browser.


svn path=/trunk/; revision=24984
2008-02-26 20:06:30 +00:00
Sven Neumann fff02fb02e take the reading direction into account and do the right thing for RTL
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: take the reading direction 
into
	account and do the right thing for RTL languages.


svn path=/trunk/; revision=24982
2008-02-26 18:46:20 +00:00
Sven Neumann 07db25d36a create a Cairo image surface from the data returned from
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: create a Cairo image surface
	from the data returned from gimp_drawable_get_thumbnail() instead
	of using an intermediate GdkPixbuf. This code should eventually
	end up in libgimpui.

svn path=/trunk/; revision=24971
2008-02-26 14:49:54 +00:00
Sven Neumann 370806b9ab Allocate a 1 pixel extra border around the preview to avoid redraw
bugs due to rounding errors when changing the paper orientation.

svn path=/trunk/; revision=24969
2008-02-26 14:04:03 +00:00
Sven Neumann 978c0af41e plug-ins/print/print-preview.c let the preview widget allocate a
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c
	* plug-ins/print/print-page-layout.c: let the preview widget
	allocate a reasonable size.

svn path=/trunk/; revision=24967
2008-02-26 13:58:29 +00:00
Sven Neumann ec9212d00a use a different cursor when dragging, just like GimpScrolledPreview.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: use a different cursor when
	dragging, just like GimpScrolledPreview.

svn path=/trunk/; revision=24966
2008-02-26 09:57:09 +00:00
Sven Neumann d5b63146a7 derive from GtkEventBox and draw on the parent window.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.[ch]: derive from GtkEventBox and
	draw on the parent window.

	* plug-ins/print/print-page-layout.c: tweaked dialog layout.


svn path=/trunk/; revision=24964
2008-02-26 08:26:32 +00:00
Sven Neumann 8626406371 some cleanups and a bug-fix for my last commit here
svn path=/trunk/; revision=24963
2008-02-25 21:21:15 +00:00
Sven Neumann 13fcc89bc1 plug-ins/print/Makefile.am added new files with utility functions.
2008-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/Makefile.am
	* plug-ins/print/print-utils.[ch]: added new files with utility
	functions.

	* plug-ins/print/print-settings.c: use the new utility
	functions for loading and saving GKeyFile.

	* plug-ins/print/print-page-setup.[ch]
	* plug-ins/print/print.c: also store the page setup in an image
	parasite. Fixes most of what remained to be done for bug 
#513291.


svn path=/trunk/; revision=24960
2008-02-25 20:40:22 +00:00
Sven Neumann afc10516d7 plug-ins/print/print-settings.[ch] code cleanup.
2008-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-settings.[ch]
	* plug-ins/print/print.c: code cleanup.


svn path=/trunk/; revision=24959
2008-02-25 18:59:04 +00:00
Sven Neumann 18560c556b use g_timeout_add_seconds().
2008-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (end_print): use g_timeout_add_seconds().

svn path=/trunk/; revision=24958
2008-02-25 15:06:03 +00:00
Sven Neumann a6e5926376 added missing call to gtk_print_operation_set_unit().
2008-02-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (print_image): added missing call to
	gtk_print_operation_set_unit().


svn path=/trunk/; revision=24952
2008-02-24 13:08:51 +00:00
Sven Neumann f9b9d4b21e use GTK_STOCK_PAGE_SETUP when compiled against GTK+ >= 2.13.0.
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: use GTK_STOCK_PAGE_SETUP when compiled
	against GTK+ >= 2.13.0.

svn path=/trunk/; revision=24949
2008-02-22 13:42:47 +00:00
Sven Neumann 7e9a5f7fe8 plug-ins/print/print.c added support for grayscale images so we don't need
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c
	* plug-ins/print/print-draw-page.c: added support for grayscale
	images so we don't need to go through an extra export step.

svn path=/trunk/; revision=24947
2008-02-22 10:13:25 +00:00
Sven Neumann 8519952152 plug-ins/print/print.c code cleanup.
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c
	* plug-ins/print/print-draw-page.[ch]: code cleanup.

svn path=/trunk/; revision=24946
2008-02-22 10:03:01 +00:00
Sven Neumann cadf7e292f when printing an image with alpha channel, use a Cairo surface with alpha
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c (draw_page_cairo): when
	printing an image with alpha channel, use a Cairo surface with
	alpha channel instead of doing a blend on a white background.


svn path=/trunk/; revision=24943
2008-02-22 08:44:53 +00:00
Sven Neumann a6a653c7b0 access the pixels tile-by-tile instead of row-by-row.
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c (draw_page_cairo): access the
	pixels tile-by-tile instead of row-by-row.


svn path=/trunk/; revision=24942
2008-02-22 08:34:42 +00:00
Sven Neumann 3e6a6d1a4d code cleanup.
2008-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.[ch]: code cleanup.

svn path=/trunk/; revision=24932
2008-02-21 11:24:12 +00:00
Sven Neumann 40375e8a7a provide feedback when hovering over the preview.
2008-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: provide feedback when hovering
	over the preview.


svn path=/trunk/; revision=24931
2008-02-21 08:54:24 +00:00
Sven Neumann 346b42612f changed drawing so that strokes are not scaled.
2008-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c 
(gimp_print_preview_expose_event):
	changed drawing so that strokes are not scaled.


svn path=/trunk/; revision=24930
2008-02-21 08:11:32 +00:00
Sven Neumann 634b180023 code cleanup. Always draw the preview.
2008-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c 
(gimp_print_preview_expose_event):
	code cleanup. Always draw the preview.



svn path=/trunk/; revision=24926
2008-02-19 19:56:41 +00:00
Sven Neumann 7e67feedff removed ellipsis from "Page Setup" menu entry as specified in the HIG.
2008-02-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: removed ellipsis from "Page Setup" 
menu
	entry as specified in the HIG.


svn path=/trunk/; revision=24802
2008-02-05 07:50:26 +00:00
Sven Neumann a3d04e08c6 use a more descriptive name for the temporary procedure
svn path=/trunk/; revision=24794
2008-02-04 22:03:09 +00:00
Sven Neumann f17bfcef0d only connect to page layout changes for the lifetime of the dialog.
2008-02-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: only connect to page 
layout
	changes for the lifetime of the dialog.
	
	* plug-ins/print/print-page-setup.[ch]
	* plug-ins/print/print.c: use a	temporary procedure to notify 
the
	Print procedure about changes to the page setup.


svn path=/trunk/; revision=24793
2008-02-04 21:49:08 +00:00
Sven Neumann b7d37bd4a5 plug-ins/print/Makefile.am new files.
2008-02-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/Makefile.am
	* plug-ins/print/print-page-setup.[ch]: new files.

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c
	* plug-ins/print/print.c: first draft of a Page Setup menu entry
	instead of the "Adjust Page Size" button (bug #513291).
	
	* plug-ins/print/print.h
	* plug-ins/print/print-draw-page.c: removed unused code.

svn path=/trunk/; revision=24789
2008-02-04 16:59:45 +00:00
Sven Neumann 44cf4587a7 some minor cleanups and preparation for adding a dedicated Page Setup menu
2008-02-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: some minor cleanups and preparation 
for
	adding a dedicated Page Setup menu entry (bug #513291).


svn path=/trunk/; revision=24766
2008-02-01 07:10:55 +00:00
Michael Natterer 8717f90460 set a default page setup on the operation if it is NULL to prevent crash
2007-08-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-page-layout.c: set a default page setup on
	the operation if it is NULL to prevent crash in new installations
	(which don't have a setup yet). Fixes bug #467643, patch from
	Stefan Röllin.


svn path=/trunk/; revision=23303
2007-08-17 15:30:39 +00:00
Sven Neumann 781b9ced7f added a timeout as a workaround for bug #466928.
2007-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (end_print): added a timeout as a
	workaround for bug #466928.


svn path=/trunk/; revision=23277
2007-08-15 18:19:52 +00:00
Sven Neumann 4a6b4bc067 applied patch from Stefan Röllin that makes the preview resize with the
2007-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: applied patch from Stefan
	Röllin that makes the preview resize with the dialog (bug #466923).

svn path=/trunk/; revision=23271
2007-08-15 13:57:36 +00:00
Sven Neumann b554ea3f5a applied patch from Stefan Röllin that fixes bug #465527.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c 
(print_size_info_set_resolution):
	applied patch from Stefan Röllin that fixes bug #465527.


svn path=/trunk/; revision=23203
2007-08-11 09:21:36 +00:00
Sven Neumann c0f30006dd store the selected paper-size.
2007-08-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-settings.c: store the selected paper-size.

svn path=/trunk/; revision=23170
2007-08-09 14:26:01 +00:00
Sven Neumann c127a0bdc4 while dragging the preview image, draw only an outline.
2007-08-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.[ch]: while dragging the preview
	image, draw only an outline.

svn path=/trunk/; revision=23168
2007-08-09 10:39:40 +00:00
Sven Neumann 8baa91b04f save a few more pixels vertically
svn path=/trunk/; revision=23166
2007-08-09 00:13:12 +00:00
Sven Neumann 5811866a7e further tweaks to the dialog layout
svn path=/trunk/; revision=23165
2007-08-09 00:11:10 +00:00