Commit Graph

12069 Commits

Author SHA1 Message Date
Matthias Clasen
e2a4094aa6 More docs 2006-04-14 01:48:28 +00:00
Matthias Clasen
08b4784749 more docs 2006-04-13 23:57:33 +00:00
Matthias Clasen
b88e1f51d7 more docs 2006-04-13 23:11:46 +00:00
Matthias Clasen
4660560f2c more docs 2006-04-13 19:05:42 +00:00
Matthias Clasen
7d943b4592 more docs 2006-04-13 18:53:31 +00:00
Matthias Clasen
bfb4e411fb Add some docs 2006-04-13 18:42:00 +00:00
Alexander Larsson
2240288d20 update todo 2006-04-12 07:19:37 +00:00
Matthias Clasen
f001e7644a Call gettext on standard paper names 2006-04-11 20:13:16 +00:00
Alexander Larsson
bc507783e0 Add gdk_win32_set_modal_dialog_libgtk_only that we need for handling the
2006-04-11  Alexander Larsson  <alexl@redhat.com>

	* gdk/gdk.symbols:
	* gdk/win32/gdkevents-win32.c:
	* gdk/win32/gdkwin32.h:
	Add gdk_win32_set_modal_dialog_libgtk_only that we
	need for handling the mainloop in the print dialogs.

	* gtk/gtkprintoperation-win32.c:
	Pump the gtk+ mainloop when needed in the print dialogs.
	This means gtk+ windows will redraw while the print dialogs
	are up.
2006-04-11 16:06:06 +00:00
Alexander Larsson
8946d1e768 Better size handling. Save win32-specific settings in additions to the
2006-04-10  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintoperation-win32.c:
	Better size handling.
	Save win32-specific settings in additions to the generic ones
	if the generic one is lossy.
2006-04-10 15:46:39 +00:00
Alexander Larsson
29e1b6410d Finish implementing run_page_setup_dialog.
2006-04-10  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintoperation-win32.c:
	Finish implementing run_page_setup_dialog.

	* gtk/gtkpagesetup.h:
	* gtk/gtkpapersize.h:
	* gtk/gtkprint-win32.h:
	* gtk/gtkprintcontext.h:
	* gtk/gtkprinter-private.h:
	* gtk/gtkprintoperation-private.h:
	* gtk/gtkprintoperation-unix.c:
	* gtk/gtkprintoperation.h:
	* gtk/gtkprintsettings.h:
	s/EGG/GTK/
2006-04-10 11:33:28 +00:00
Matthias Clasen
2a3f0c4d27 Fix a typo 2006-04-09 05:28:51 +00:00
Matthias Clasen
664ab62ba4 Correct the suffix/duplicate optimizations.
2006-04-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/paper_names_offsets.c:
	* gtk/gen-paper-names.c: Correct the suffix/duplicate optimizations.
2006-04-07 15:21:07 +00:00
Alexander Larsson
8be5877195 Initial work on gtk_print_run_page_setup_dialog. Not reading margins yet.
2006-04-07  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintoperation-win32.c:
	Initial work on gtk_print_run_page_setup_dialog.
	Not reading margins yet.
2006-04-07 15:08:57 +00:00
Alexander Larsson
208ab55100 Link to winspool
2006-04-07  Alexander Larsson  <alexl@redhat.com>

	* gtk/Makefile.am:
	Link to winspool

	* gtk/gtk.symbols:
	* gtk/gtkprintoperation-private.h:
	* gtk/gtkprintoperation-unix.c:
	* gtk/gtkprintoperation.[ch]:
	Add gtk_print_operation_get_status_string() and status
	string to _gtk_print_operation_set_status.
	Rename GTK_PRINT_STATUS_PROCESSING to GTK_PRINT_STATUS_PRINTING.

	* gtk/gtkprintoperation-win32.c:
	Poll for status updates

	* modules/printbackends/cups/gtkprintbackendcups.c:
	Rename GTK_PRINT_STATUS_PROCESSING to GTK_PRINT_STATUS_PRINTING.

	* tests/print-editor.c:
	Show print status string
2006-04-07 13:22:38 +00:00
Matthias Clasen
77159e069c Save 4K of .data by converting the array of paper names to offsets.
2006-04-06  Matthias Clasen  <mclasen@redhat.com>

        * gtk/paper_names_offsets.c:
        * gtk/gtkpapersize.c: Save 4K of .data by converting
        the array of paper names to offsets.

        * gtk/gen-paper-names.c: Utility used to create
        paper_names_offsets.c from paper_names.c.

        * gtk/Makefile.am: Necessary glue.
2006-04-07 03:46:11 +00:00
Alexander Larsson
1dd1d3a81f Use glib base64 code. Set up manual_* vars fully.
2006-04-06  Alexander Larsson  <alexl@redhat.com>

        * gtk/gtkprintoperation-win32.c:
        Use glib base64 code.
        Set up manual_* vars fully.
2006-04-06 14:57:49 +00:00
Alexander Larsson
93485698d5 Add -lcomdlg32 on win32
2006-04-06  Alexander Larsson  <alexl@redhat.com>

	* gtk/Makefile.am:
	Add -lcomdlg32 on win32

	* gtk/gtkprint-win32.h:
	Move WINVER define to .c files

	* gtk/gtk.symbols:
	* gtk/gtkprintoperation-win32.c:
	Add empty gtk_print_run_page_setup win implementation
	Move WINVER define to this file

	* modules/Makefile.am:
	Only build print backends on unix
2006-04-06 13:25:11 +00:00
Matthias Clasen
40e3b97364 Use GTK_RESPONSE_CANCEL/OK instead of GTK_RESPONSE_REJECT/ACCEPT, to make
2006-04-05  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintunixdialog.c:
        * gtk/gtkprintoperation-unix.c: Use GTK_RESPONSE_CANCEL/OK
        instead of GTK_RESPONSE_REJECT/ACCEPT, to make Esc close
        the dialog, and to not use values which are documented
        as reserved for apps.
2006-04-06 03:47:00 +00:00
Alexander Larsson
637b5d0f8c fix string 2006-04-05 12:25:12 +00:00
Alexander Larsson
83289a64a7 Don't hardcode lpr command, expose full commandline.
2006-04-05  Alexander Larsson  <alexl@redhat.com>

	* modules/printbackends/lpr/gtkprintbackendlpr.c:
	Don't hardcode lpr command, expose full commandline.
2006-04-05 12:24:29 +00:00
Alexander Larsson
c712f7cbcf update 2006-04-05 11:00:53 +00:00
Alexander Larsson
a7b30e4260 Don't check for printer changes after dialog is dead.
2006-04-05  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c:
	* gtk/gtkprintunixdialog.c:
	Don't check for printer changes after dialog is dead.

	* gtk/gtkprintbackend.c: (gtk_print_backend_load_modules):
	Strip whitespace from backend strings

	* gtk/gtkprintbackend.h:
	Add private printer functions

	* gtk/gtkprinter-private.h:
	Move GtkPrinterPrivate into gtkprinter.c

	* gtk/gtkprinter.[ch]:
	Move GtkPrinterPrivate into gtkprinter.c
	Add new construct properties.
	Add setter functions.

	* modules/printbackends/cups/gtkprintbackendcups.c:
	* modules/printbackends/cups/gtkprintercups.[ch]:
	Update to new APIs.

	* modules/printbackends/lpr/Makefile.am:
	* modules/printbackends/lpr/gtkprintbackendlpr.c:
	* modules/printbackends/lpr/gtkprinterlpr.[ch]
	Update to new APIs.
	Remove GtkPrinterLPR.
	Read/Save command line option in settings

	* modules/printbackends/pdf/Makefile.am:
	* modules/printbackends/pdf/gtkprintbackendpdf.c:
	* modules/printbackends/pdf/gtkprinterpdf.[ch]:
	Update to new APIs.
	Remove GtkPrinterPDF.
2006-04-05 11:00:30 +00:00
Matthias Clasen
d5488a85f0 Add missing standard GObject macros. 2006-04-05 02:21:08 +00:00
Alexander Larsson
40f202426e Add gtk_printer_option_has_choice.
2006-04-04  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprinteroption.[ch]:
	Add gtk_printer_option_has_choice.

	* gtk/gtkprintunixdialog.c:
	* modules/printbackends/cups/gtkprintbackendcups.c:
	Add support for "print at time".
2006-04-04 14:34:36 +00:00
Alexander Larsson
ccf43cff11 Handle ppd names with ".Transverse" suffix Don't force width < height
2006-04-04  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpapersize.c:
	Handle ppd names with ".Transverse" suffix
	Don't force width < height

	* gtk/gtkprinteroption.c:
	Make sure that value is never NULL.

	* modules/printbackends/cups/gtkprintbackendcups.c:
	Add some HP whitelist names
	Remove spew from ignored options.
2006-04-04 11:09:25 +00:00
Alexander Larsson
08134d703c Fix warnings
2006-04-03  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c:
	Fix warnings

	* gtk/gtkprinter-private.h:
	* gtk/gtkprinter.[ch]:
	Add gtk_printer_is_default.

	* gtk/gtkprintunixdialog.c:
	Use gtk_printer_is_default.

	* modules/printbackends/cups/gtkprintbackendcups.c:
	Get default printer info

	* modules/printbackends/pdf/gtkprintbackendpdf.c:
	Fix warning.
2006-04-03 13:46:13 +00:00
Alexander Larsson
350d262b5f Correctly read/write/use the output filename setting.
2006-04-03  Alexander Larsson  <alexl@redhat.com>

	* modules/printbackends/pdf/gtkprintbackendpdf.c:
	* modules/printbackends/pdf/gtkprinterpdf.[ch]:
	Correctly read/write/use the output filename setting.
2006-04-03 10:32:23 +00:00
Alexander Larsson
61cd8faf53 Disable margin from printers if there are no printers.
2006-04-03  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c:
	Disable margin from printers if there are no printers.

	* gtk/gtkpapersize.c:
	Fix build.
2006-04-03 09:58:40 +00:00
Matthias Clasen
031dda395f protect unix-only symbols by G_OS_UNIX 2006-04-01 17:14:43 +00:00
Matthias Clasen
6518d99b14 win32 fixes 2006-04-01 16:36:09 +00:00
Matthias Clasen
42d8d6bff3 First cut at adding printing docs.
2006-03-31  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-docs.sgml:
	* gtk/gtk-sections.txt: First cut at adding printing
	docs.
2006-03-31 18:36:36 +00:00
Alexander Larsson
e36e4e0670 Update
2006-03-30  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtk.symbols:
	Update

	* gtk/gtkprintbackend.[ch]:
	Add dnotify to gtk_print_backend_print_stream

	* gtk/gtkprinter-private.h:
	Declare gtk_print_job_set_status

	* gtk/gtkprinter.[ch]:
	Remove gtk_printer_prepare_job.

	* gtk/gtkprintjob.[ch]:
	Now you create print job directly with gtk_print_job_new() and
	they'll be prepared automatically.
	Add status_changed signal and get_status.
	Add gtk_print_job_set_source_file to allow sending a file.

	* gtk/gtkprintoperation-private.h:
	Add destroy notify for platform_data.
	Declare _gtk_print_operation_set_status.

	* gtk/gtkprintoperation-unix.c:
	Hook up status change handling.
	Use the new way to get a print job.

	* gtk/gtkprintoperation.[ch]:
	Add status_changed signal and get_status/is_finished.


	* modules/printbackends/cups/gtkprintbackendcups.c:
	* modules/printbackends/lpr/gtkprintbackendlpr.c:
	* modules/printbackends/pdf/gtkprintbackendpdf.c:
	Update to use new APIs and set status on the job.
	Cups polls for the status.

	* tests/print-editor.c:
	Track the print operations in the status bar.
2006-03-30 16:02:30 +00:00
Alexander Larsson
d489c6835d Default to "pdf,cups" if we found cups, and "pdf,lpr" otherwise.
2006-03-30  Alexander Larsson  <alexl@redhat.com>

	* gtk/Makefile.am:
	* gtk/gtkprintbackend.c:
	Default to "pdf,cups" if we found cups, and
	"pdf,lpr" otherwise.
2006-03-30 08:23:09 +00:00
Matthias Clasen
51507daca2 Don't build the cups backend if cups is not there.
2006-03-29  Matthias Clasen  <mclasen@redhat.com>

	* modules/printbackends/Makefile.am:
	* configure.in: Don't build the cups backend
	if cups is not there.
2006-03-29 19:55:18 +00:00
Alexander Larsson
174fb069cb gtk_printer_prep_job -> gtk_printer_prepare_job gtk_print_job_prep ->
2006-03-29  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtk.symbols:
	gtk_printer_prep_job -> gtk_printer_prepare_job
	gtk_print_job_prep -> gtk_print_job_prepare

	* gtk/gtkprintbackend.h:
	* gtk/gtkprinter-private.h:
	* gtk/gtkprinter.[ch]:
	Add print_job argument to printer_prepare_for_print
	gtk_printer_prep_job -> gtk_printer_prepare_job

	* gtk/gtkprintjob.[ch]:
	Add manual rendering settings to GtkPrintJob.
	gtk_print_job_prep -> gtk_print_job_prepare

	* gtk/gtkprintoperation-private.h:
	* gtk/gtkprintoperation-unix.c:
	* gtk/gtkprintoperation.c:
	Get more manual_* settings working.
	Run mainloop after each printed page.

	* gtk/gtkprintunixdialog.c:
	Save page ranges.

	* modules/printbackends/cups/gtkprintbackendcups.c:
	* modules/printbackends/lpr/gtkprintbackendlpr.c:
	* modules/printbackends/pdf/gtkprintbackendpdf.c:
	Now put the manual_* settings inside the PrintJob in
	prepare_for_print.
2006-03-29 14:05:05 +00:00
Alexander Larsson
6d2ee47934 Make sure we remember the format-for printer. Also, use it as the default
2006-03-29  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintunixdialog.c:
	Make sure we remember the format-for printer.
	Also, use it as the default if set.
2006-03-29 09:39:32 +00:00
Alexander Larsson
1a8115f2c8 forgot changelog entry for last commit 2006-03-29 07:49:11 +00:00
Alexander Larsson
645226ea78 Remove unnecessary padding under list.
2006-03-28  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintunixdialog.c:
	Remove unnecessary padding under list.
2006-03-28 16:42:24 +00:00
Alexander Larsson
4acfb870ac More HIGy layout.
2006-03-28  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c:
	* gtk/gtkprintunixdialog.c:
	More HIGy layout.
2006-03-28 16:32:29 +00:00
Alexander Larsson
f384721830 HIG conformance of spacing and titles.
2006-03-28  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c:
	HIG conformance of spacing and titles.

	* gtk/gtkprintunixdialog.c:
	Use standard constructor form print button too.
2006-03-28 09:20:15 +00:00
Matthias Clasen
52ef9038cb Fix a builddir != srcdir problem 2006-03-28 04:51:35 +00:00
Matthias Clasen
b84960a784 Simplify the setting 2006-03-27 21:41:08 +00:00
Alexander Larsson
be1d955809 Reorder print list so status is at the end. Ellipsize the status column.
2006-03-27  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintunixdialog.c:
	Reorder print list so status is at the end.
	Ellipsize the status column.
2006-03-27 16:21:17 +00:00
Alexander Larsson
010e267f69 Handle removed printers and status-changed. Handle NULL printer location.
2006-03-27  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c:
	Handle removed printers and status-changed.
	Handle NULL printer location.
2006-03-27 16:02:57 +00:00
Alexander Larsson
5cc025ae78 Add orientation stock icons.
2006-03-27  Alexander Larsson  <alexl@redhat.com>

	* gtk/Makefile.am:
	* gtk/stock-icons/24/gtk-orientation-landscape.png:
	* gtk/stock-icons/24/gtk-orientation-portrait.png:
	* gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
	* gtk/gtkiconfactory.c: (get_default_icons):
	* gtk/gtkstock.h:
	Add orientation stock icons.

	* gtk/gtkpagesetupunixdialog.c:
	Use the orientation icons.
2006-03-27 15:12:12 +00:00
Alexander Larsson
9cb581126d s/impl/dialog/ Don't prefix static functions with _
2006-03-27  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c:
	* gtk/gtkprintjob.c:
	* gtk/gtkprintoperation-unix.c:
	* gtk/gtkprintunixdialog.c:
	s/impl/dialog/
	Don't prefix static functions with _
2006-03-27 10:20:17 +00:00
Matthias Clasen
fc175bab20 Fix bug 335898 2006-03-26 05:32:31 +00:00
Matthias Clasen
a286ed0d6d Remove an unused static function 2006-03-26 05:30:44 +00:00
Matthias Clasen
2ae974a580 Don't use G_DEFINE_TYPE in modules 2006-03-26 05:28:26 +00:00