Commit Graph

316 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Matthias Clasen
52ef9038cb Fix a builddir != srcdir problem 2006-03-28 04:51:35 +00:00
Matthias Clasen
2ae974a580 Don't use G_DEFINE_TYPE in modules 2006-03-26 05:28:26 +00:00
Matthias Clasen
a651096ffc Remove C99ism 2006-03-25 19:27:07 +00:00
Matthias Clasen
803f38fc22 Small cleanups 2006-03-25 19:14:32 +00:00
Alexander Larsson
a0456b5c06 Import pdf and lpr backend
2006-03-24  Alexander Larsson  <alexl@redhat.com>

	* configure.in:
	* gtk/gtkprintbackend.c:
	* modules/printbackends/Makefile.am:
	* modules/printbackends/cups/Makefile.am:
	* modules/printbackends/lpr/Makefile.am:
	* modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
	* modules/printbackends/lpr/gtkprinterlpr.[ch]:
	* modules/printbackends/pdf/Makefile.am:
	* modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
	* modules/printbackends/pdf/gtkprinterpdf.[ch]:
	Import pdf and lpr backend
2006-03-24 17:08:50 +00:00
Alexander Larsson
65df7d0a56 Import print-operation into gtk+
2006-03-24  Alexander Larsson  <alexl@redhat.com>

        Import print-operation into gtk+

	* .cvsignore:
	* Makefile.am:
	* gtk+-unix-print-2.0.pc.in:
	Add gtk+-unix-print-2.0.pc

	* configure.in:
	Look for cups
	Look for various _NL_* extensions
	Output new makefiles and .pc.in

	* gtk/Makefile.am:
	Add new files

	* gtk/gtk.h:
	Include gtkprintoperation.h

	* gtk/gtkenums.h:
	Add printing enums

	* gtk/gtkmarshalers.list:
	Add required new marshallers

	* gtk/gtkpagesetup.[ch]:
	* gtk/gtkpagesetupunixdialog.[ch]:
	* gtk/gtkpagesetupunixdialog.h:
	* gtk/gtkpapersize.[ch]:
	* gtk/gtkprint-win32.[ch]:
	* gtk/gtkprintbackend.[ch]:
	* gtk/gtkprintcontext.[ch]:
	* gtk/gtkprinter-private.h:
	* gtk/gtkprinter.[ch]:
	* gtk/gtkprinteroption.[ch]:
	* gtk/gtkprinteroptionset.[ch]:
	* gtk/gtkprinteroptionwidget.[ch]:
	* gtk/gtkprintjob.[ch]:
	* gtk/gtkprintoperation-private.h:
	* gtk/gtkprintoperation-unix.c:
	* gtk/gtkprintoperation-win32.c:
	* gtk/gtkprintoperation.[ch]:
	* gtk/gtkprintsettings.[ch]:
	* gtk/gtkprintunixdialog.[ch]:
	* gtk/paper_names.c:
	Generic printing support

	* modules/Makefile.am:
	* modules/printbackends/Makefile.am:
	* modules/printbackends/cups/Makefile.am:
	* modules/printbackends/cups/gtkcupsutils.[ch]:
	* modules/printbackends/cups/gtkprintbackendcups.[ch]:
	* modules/printbackends/cups/gtkprintercups.[ch]:
	Cups backend

	* tests/.cvsignore:
	* tests/Makefile.am:
	* tests/print-editor.c:
	Add printing test app
2006-03-24 16:33:21 +00:00
Dom Lachowicz
bd7a02b70c Make expander-size a bit closer to Microsoft's values (bug 325699, Brad
* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Make expander-size
        a bit closer to Microsoft's values (bug 325699, Brad Taylor)
2006-03-15 19:19:33 +00:00
Dom Lachowicz
791d0b405b Override style->realize/ style->unrealize, so that GTK+ doesn't
* modules/engines/ms-windows/msw_style.c: Override style->realize/
        style->unrealize, so that GTK+ doesn't automatically attempt to apply
        shading to the GC colors, causing a mismatch with the Win32 native
        colors. Problem found by (and suggested solution by) "Cosmic Integer"
2006-03-15 17:37:19 +00:00
Dom Lachowicz
a579bc5a54 Speed up the Windows theme considerably (#163724, John Ehresman) Be more
2006-03-11  Dom Lachowicz <cinamod@hotmail.com>

	* modules/engines/ms-windows: Speed up the Windows theme
	considerably (#163724, John Ehresman)
	Be more careful about setting Pango font descriptions (#333372)
2006-03-11 18:04:36 +00:00
Matthias Clasen
8cb0674b6b Clean up exported symbols 2006-03-11 02:13:11 +00:00
Matthias Clasen
26a1ba116e Remove suspicious code. (#325295, Alexander Nedotsukov)
2006-03-10  Matthias Clasen  <mclasen@redhat.com>

	* pixbuf-draw.c (draw_extension): Remove suspicious
	code.  (#325295, Alexander Nedotsukov)
2006-03-10 19:15:40 +00:00
Dom Lachowicz
91336be9b3 Fix combobox theming regression noted in bug 321301 Ditto
* modules/engines/ms-windows/msw_style.c: Fix combobox theming
	regression noted in bug 321301
	* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2006-03-03 03:32:39 +00:00
Behdad Esfahbod
6a66c972ca If major.minor of required and available glib versions are the same, add
2006-01-28  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: If major.minor of required and available glib versions
        are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617)

        * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
2006-01-29 04:00:45 +00:00
Dom Lachowicz
cca151bab7 Re-sync with gtk-wimp Ditto
2006-01-28  Dom Lachowicz <cinamod@hotmail.com>

	* modules/engines/ms-windows/msw-style.c: Re-sync with gtk-wimp
	* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2006-01-29 03:28:25 +00:00
Matthias Clasen
5369771847 If the src positions for gradients are nonsensical, don't render anything,
2006-01-17  Matthias Clasen  <mclasen@redhat.com>

	* pixbuf-render.c: If the src positions for gradients
	are nonsensical, don't render anything, rather than
	read out of bounds.
2006-01-17 20:02:54 +00:00
Matthias Clasen
2ff662e7e2 Apply a patch by Alexander Nedotsukov to support customized drawing of
2006-01-16  Matthias Clasen  <mclasen@redhat.com>

	* pixbuf-draw.c:
	* pixbuf-rc-style.c:
	* pixbuf.h: Apply a patch by Alexander Nedotsukov to
	support customized drawing of expanders and resize
	grips. (#325289).
2006-01-16 19:53:10 +00:00
Matthias Clasen
94ba779870 Silence the compiler.
2006-01-16  Matthias Clasen  <mclasen@redhat.com>

	* pixbuf-draw.c (draw_gap_image): Silence the
	compiler.
2006-01-16 13:18:16 +00:00
Dom Lachowicz
735d98916e Merge with gtk-wimp's CVS. Includes improved menu icon spacing, [+]/[-]
* modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
	Includes improved menu icon spacing, [+]/[-] expander drawing,
	status-bar gippie drawing, and notebook tab drawing.
2005-11-25 23:47:46 +00:00
Matthias Clasen
9b593427aa const correctness fixes
found by Arjan van de Ven and gcc.
2005-11-17 14:57:24 +00:00
Dom Lachowicz
5411a3a1a2 Bug #313627. Make win32 theme's handling of toolbars, handleboxes, and
2005-11-12  Dom Lachowicz <cinamod@hotmail.com>

	* modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32
	theme's handling of toolbars, handleboxes, and menubars more in-line
	with Microsoft's IE style.
	* modules/engines/ms-windows/*.c: Indentation cleanups
2005-11-12 14:20:51 +00:00
Dom Lachowicz
f9365c3747 Experimentally, scrollbar steppers can shrink to 8 pixels on Win32.
* modules/engines/ms-windows/msw_style.c (setup_msw_rc_style):
	Experimentally, scrollbar steppers can shrink to 8 pixels on
	Win32. Reflect that in the theme.
	* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
	there is a 1-pixel border between a scrollbar and its child
	in ScrolledWindows on Win32. Reflect that in the theme.
2005-10-22 15:53:00 +00:00
Tor Lillqvist
2f4eb8fdf4 Include <config.h>. (#317444, Kazuki Iwamoto)
2005-09-28  Tor Lillqvist  <tml@novell.com>

	* modules/input/imime.c: Include <config.h>. (#317444, Kazuki
	Iwamoto)
2005-09-28 16:03:11 +00:00
Tor Lillqvist
6c54409759 Check whether the widget actually is a GtkNotebook before treating it as
2005-09-16  Tor Lillqvist  <tml@novell.com>

	* modules/engines/ms-windows/msw_style.c (draw_extension,
	draw_box_gap): Check whether the widget actually is a GtkNotebook
	before treating it as such. Drop some unneeded local variables,
	use parameter with same information instead. (#316412)
2005-09-15 22:14:03 +00:00
Matthias Clasen
1255e7fabd 2.8.2 2005-08-24 18:22:23 +00:00
Matthias Clasen
ee46e2bee7 2.8.1 2005-08-24 06:29:12 +00:00
Matthias Clasen
3dffa71bea Fix a typo.
2005-08-19  Matthias Clasen  <mclasen@redhat.com>

	* modules/engines/ms-windows/msw_style.c (setup_system_styles):
	Fix a typo.
2005-08-19 19:21:45 +00:00
Matthias Clasen
64e268edf4 2.8.0 2005-08-13 19:34:27 +00:00
Matthias Clasen
80578efe33 2.7.5 2005-08-03 18:51:11 +00:00
Dom Lachowicz
810dd32d65 part of bug #168326 2005-08-01 15:29:54 +00:00
Dom Lachowicz
3d14f381b7 re-sync with gtk-wimp cvs 2005-07-28 12:24:25 +00:00
Matthias Clasen
22d4d65e01 2.7.4 2005-07-22 20:28:31 +00:00
Matthias Clasen
d585120eeb 2.7.3 2005-07-15 20:33:47 +00:00
Matthias Clasen
2c9125dace Add copyright and license information 2005-07-12 04:05:26 +00:00
Matthias Clasen
92da84155f 2.7.2 2005-07-08 18:52:47 +00:00
Matthias Clasen
2b6ec82856 Fix includes 2005-07-06 00:31:45 +00:00
Matthias Clasen
2bd25d8f45 2.7.1 2005-07-01 19:24:05 +00:00
Matthias Clasen
9e4d008d25 Don't prematurely unregister callbacks.
2005-06-30  Matthias Clasen  <mclasen@redhat.com>

	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
	prematurely unregister callbacks.
2005-06-30 18:42:44 +00:00
Matthias Clasen
c719b4bf3d Avoid a segfault. (#309054)
2005-06-27  Matthias Clasen  <mclasen@redhat.com>

	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
	Avoid a segfault. (#309054)

	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
	fields for grab timestamps.

	* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
	Store grab timestamps when grabbing.

	* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
	(gdk_display_pointer_ungrab): Don't unset the grab_window
	if the timestamps indicate that the ungrab will fails.
2005-06-27 18:37:41 +00:00