Commit Graph

128 Commits

Author SHA1 Message Date
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
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 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 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
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 639a9e62d0 plug-ins/print/print-page-layout.c tweaked layout and changed labels to
2007-08-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.c: tweaked layout and changed labels to 
the
	terms used in the EOG print dialog.


svn path=/trunk/; revision=23160
2007-08-08 21:48:31 +00:00
Sven Neumann c166b002bb plug-ins/print/print.[ch] plug-ins/print/print-page-layout.c replaced the
2007-08-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: replaced the two Center 
buttons
	with a combo-box.


svn path=/trunk/; revision=23159
2007-08-08 21:28:07 +00:00
Sven Neumann 63f4f8bcf9 call g_thread_init(), just in case...
2007-07-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: call g_thread_init(), just in case...

svn path=/trunk/; revision=23016
2007-07-26 16:22:17 +00:00
Sven Neumann f22963f15b don't set the modal dialog transient to the image window
svn path=/trunk/; revision=23008
2007-07-25 21:34:53 +00:00
Sven Neumann a1d89f41da only show an error dialog if being called interactively.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: only show an error dialog if being
	called interactively.


svn path=/trunk/; revision=23007
2007-07-25 21:26:36 +00:00
Sven Neumann d607a27834 cosmetics
svn path=/trunk/; revision=23000
2007-07-25 19:50:28 +00:00
Sven Neumann 12474a3ba3 removed drawable parameter which was ignored anyway.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: removed drawable parameter which was
	ignored anyway.

svn path=/trunk/; revision=22999
2007-07-25 15:30:03 +00:00
Sven Neumann f1d9937c25 always call gimp_ui_init(), we need funtionality from GTK+, even if called
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (run): always call gimp_ui_init(), we need
	funtionality from GTK+, even if called non-interactively.

svn path=/trunk/; revision=22996
2007-07-25 11:05:13 +00:00
Sven Neumann 7e4e919152 added new procedure gimp-progress-end.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/progress.pdb: added new procedure gimp-progress-end.

	* app/pdb/progress_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpprogress_pdb.[ch]: regenerated.

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-settings.[ch]: end the progress and save
	the settings from the "end-print" handler. The plug-in then
	appears finished but keeps running in the background until it has
	finished the print operation.

svn path=/trunk/; revision=22994
2007-07-25 10:48:25 +00:00
Sven Neumann b7e345a06c delete the export image from the "end-print" handler.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: delete the export image from the
	"end-print" handler.


svn path=/trunk/; revision=22993
2007-07-25 07:36:15 +00:00
Sven Neumann 959cc9c5b0 use gimp_image_get_name() instead of duplicating its functionality
svn path=/trunk/; revision=22982
2007-07-24 08:56:09 +00:00
Sven Neumann 39e4997706 set a print job name.
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: set a print job name.


svn path=/trunk/; revision=22981
2007-07-24 07:22:35 +00:00
Sven Neumann fefd674d40 if we created an export image, delete it as soon as possible so it isn't
2007-07-24  Sven Neumann  <sven@gimp.org>

        * plug-ins/print/print.c: if we created an export image, delete
        it as soon as possible so it isn't left behind if the user kills
        the plug-in later because of printer problems.


svn path=/trunk/; revision=22980
2007-07-24 07:05:06 +00:00
Sven Neumann bacbb23381 plug-ins/print/print.[ch] plug-ins/print/print-page-layout.c removed
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.[ch]: removed image_ID from the
	PrintData struct and made sure that the parasites are read from
	and attached to the original image, not the export image.


svn path=/trunk/; revision=22978
2007-07-23 21:17:47 +00:00
Sven Neumann 1665395f50 don't add an alpha channel.
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: don't add an alpha channel.

	* plug-ins/print/print-draw-page.c: always use 
CAIRO_FORMAT_RGB24.


svn path=/trunk/; revision=22977
2007-07-23 20:47:25 +00:00
Sven Neumann 08dc7006ea only delete the image if gimp_export_image() actually created a new one.
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (print_image): only delete the image if
	gimp_export_image() actually created a new one.

svn path=/trunk/; revision=22975
2007-07-23 14:10:47 +00:00
Sven Neumann 1785cef894 Applied patch from Stefan attached to bug #387604:
2007-07-19  Sven Neumann  <sven@gimp.org>

	Applied patch from Stefan attached to bug #387604:

	* plug-ins/print/Makefile.am
	* plug-ins/print/print-preview.[ch]: new files implementing a
	print preview similar to GimpOffsetArea.

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: adds GUI to adjust the 
offsets.


svn path=/trunk/; revision=22959
2007-07-19 20:32:53 +00:00
Sven Neumann 8354d1f543 use a GtkMessageDialog to display errors.
2006-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: use a GtkMessageDialog to display 
errors.

	* plug-ins/print/print-settings.c: use g_warning() for problems
	that shouldn't ever happen.


svn path=/trunk/; revision=21608
2006-12-30 14:08:33 +00:00
Sven Neumann c60d6fd58b back to synchronous printing, but show status information nevertheless 2006-12-29 15:36:54 +00:00
Sven Neumann 362fdc2f7d better status display while printing 2006-12-29 14:57:45 +00:00
Sven Neumann 8dd990b005 print status before running the main loop 2006-12-29 14:44:59 +00:00
Sven Neumann dcbbc1abf3 run the print operation asynchronously.
2006-12-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: run the print operation
asynchronously.
2006-12-29 14:26:55 +00:00
Sven Neumann e3282e64fe export gimp_get_default_unit() to the PDB.
2006-12-29  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/gimprc.pdb: export gimp_get_default_unit() to
	the PDB.

	* app/pdb/gimprc_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpgimprc_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.c: initialize units the same way the core
	Print Size dialog does it.
2006-12-29 01:35:08 +00:00
Sven Neumann f714d7b3f2 paint the background in white. Show progress, use a tile cache.
2006-12-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c: paint the background in
white.
	Show progress, use a tile cache.

	* plug-ins/print/print.c: removed broken custom preview
	implementation.
2006-12-27 13:46:27 +00:00
Sven Neumann f35565c887 plug-ins/print/print-draw-page.c plug-ins/print/print-page-layout.c don't
2006-12-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.[ch]: don't set the resolution and unit
on
	the image, only initialize the dialog with these values.
2006-12-26 23:29:33 +00:00
Sven Neumann 5b90363803 minor cleanups.
2006-12-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print: minor cleanups.

	* plug-ins/print/print-page-layout.c: cleanup up GUI code.
2006-12-26 13:47:51 +00:00
Sven Neumann 9152bf5d52 minor cleanups.
2006-12-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print: minor cleanups.
2006-12-26 12:36:43 +00:00
Sven Neumann 18332dc96a plug-ins/print/print-draw-page.c plug-ins/print/print-page-layout.c
2006-12-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c
	* plug-ins/print/print.c: formatting, minor cleanups,
untabified.
2006-12-25 21:03:27 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
William Skaggs e61505be56 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/print/print.[ch]
	* plug-ins/print/print-draw-page.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: implement preview internally,
	assorted other small changes.
2006-06-29 17:58:54 +00:00
William Skaggs d7a6a776dc Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimp/gimpexport.c: if format arg is "silent", export
	without popping a dialog -- saves duplicating code.

	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-draw-page.h
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-page-layout.h
	* plug-ins/print/print-settings.c
	* plug-ins/print/print-settings.h
	* plug-ins/print/print.h:         new files

	* plug-ins/print/Makefile.am
	* plug-ins/print/print.c:  modified

	Progress toward GtkPrintOperation plug-in.  Should already
	be usable, but very ugly.
2006-06-26 22:48:05 +00:00
Sven Neumann 6a3f4aae70 the name of the binary is "print".
2006-06-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: the name of the binary is "print".
2006-06-23 08:46:46 +00:00
William Skaggs dc894f86fd Bill Skaggs <weskaggs@primate.ucdavis.edu>
* configure.in: adjust requirements for building gtk-print
	plug-in -- requires gtk+ 2.9.3 and --enable-print.

	* plug-ins/print/Makefile.am
	* plug-ins/print/print.c: new plug-in using GtkPrintOperation.
	Mainly infrastructure at this point -- output is wildly
	incorrect.
2006-06-22 21:58:56 +00:00