summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-win32.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-281-1/+1
| | | | g_logv adds one for us already.
* printoperation-win32: Silence gccBenjamin Otte2016-02-111-1/+1
|
* W32: bump _WIN32_WINNT and WINVER to 0x600 (Vista)Руслан Ижбулатов2015-04-291-1/+2
| | | | Move gdkprivate-win32.h include to ensure that this change affects gdkevents-win32.c
* Fix various warningsРуслан Ижбулатов2014-08-131-3/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=734737
* gtk/gtkprintoperation-win32.c: Fix Missed IncludeChun-wei Fan2014-08-061-0/+1
| | | | We need to include gtkprivate.h for _gtk_load_dll_with_libgtk3_manifest().
* Make sure native W32 print dialog uses visual stylesРуслан Ижбулатов2014-08-051-0/+19
| | | | | | | | | | | For that to happen the libgtk3 is embedded with a manifest that requests common controls library 6.x, and GTK lazily calls InitCommonControlsEx() to initialize those. Then this manifest is used to temporarily override the process activation contest when loading comdlg32 (which contains the code for the print dialog), ensuring that it too depends on common controls 6.x, even if the application that uses GTK does not. https://bugzilla.gnome.org/show_bug.cgi?id=733773
* all: Add names to timeoutsBastien Nocera2013-10-231-1/+4
| | | | | | | Add names to every timeout we setup, so it's easier to track their usage, and debug possible misbehaviour. https://bugzilla.gnome.org/show_bug.cgi?id=710651
* gtkprintoperation-win32.c: Drop unneeded includeChun-wei Fan2013-07-291-1/+0
| | | | | | | Don't include gtkstock.h as it's not really needed here, and it has been recently deprecated. https://bugzilla.gnome.org/show_bug.cgi?id=705060
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* win32: Actually check for IPrintDialogCallback in configureMorten Welinder2011-11-101-1/+1
|
* win32: Make GtkWin32EmbedWidget use HWND instead of GdkNativeWindowBenjamin Otte2011-01-281-1/+1
|
* win32: ported backend specific code to now backend specific APIHans Breuer2011-01-021-1/+1
|
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't make sense to keep them separate as GtkSizeRequest requires a GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have one without the other. It also makes the code a lot easier because no casts are required when calling functions. Also, the names would translate to gtk_widget_get_width() and people agreed that this would be a too generic name, so a "preferred" was added to the names. So this patch moves the functions: gtk_size_request_get_request_mode() => gtk_widget_get_request_mode() gtk_size_request_get_width() => gtk_widget_get_preferred_width() gtk_size_request_get_height() => gtk_widget_get_preferred_height() gtk_size_request_get_size() => gtk_widget_get_preferred_size() gtk_size_request_get_width_for_height() => gtk_widget_get_preferred_width_for_height() gtk_size_request_get_height_for_width() => gtk_widget_get_preferred_height_for_width() ... and moves the corresponding vfuncs to the GtkWidgetClass. The patch also renames the implementations of the vfuncs in widgets to include the word "preferrred".
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-2/+3
| | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598 Signed-off-by: Javier Jardón <jjardon@gnome.org> Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
* Use accessor functions in Win32-only codeTor Lillqvist2010-09-091-3/+3
|
* Fix 32-bit Windows build using mingw-w64 toolchainFridrich Štrba2010-08-031-1/+1
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Check for __MINGW64__ and not __MINGW64Tor Lillqvist2010-03-121-1/+1
| | | | Should fix bug #612308.
* Set win32 printer hard margins on print contextAdrian Johnson2009-12-051-1/+22
|
* Revert "Set win32 printer hard margins on print context"Christian Persch2009-12-011-22/+1
| | | | This reverts commit a42107389f1ff4097b0671f2d74819bd531b3c29.
* Set win32 printer hard margins on print contextAdrian Johnson2009-12-011-1/+22
|
* Take printer margins into account on WindowsAdrian Johnson2009-10-271-0/+5
| | | | Fixes bug #381371.
* Add ability to print in number-up mode for file backend and lpr backendMarek Kasik2009-05-131-0/+4
| | | | | | | | | | | GtkPrintOperation is now able to render multiple pages per sheet by its own. The most important changes are in these functions: * increment_page_sequence * prepare_data * common_render_page * print_pages_idle Patch also changes set of choices for 2 pages per sheet mode when landscape orientation is used to "Top to bottom" and "Bottom to top".
* Newer mingw-w64 uses an underscore-prefixed identification macro.Tor Lillqvist2009-03-171-1/+1
| | | | | | | | | | 2009-03-17 Tor Lillqvist <tml@novell.com> * gtk/gtkprintoperation-win32.c: Newer mingw-w64 uses an underscore-prefixed identification macro. svn path=/trunk/; revision=22561
* Don't need to declare IPrintDialogCallback with mingw64 either. It seemsTor Lillqvist2008-08-041-1/+1
| | | | | | | | | | | 2008-08-05 Tor Lillqvist <tml@novell.com> * gtk/gtkprintoperation-win32.c: Don't need to declare IPrintDialogCallback with mingw64 either. It seems to come with newer versions of the headers. svn path=/trunk/; revision=21001
* Bug 538686 - gtkprintoperation-win32.c: devmode_from_settingsTor Lillqvist2008-08-021-1/+1
| | | | | | | | | | | | 2008-08-02 Tor Lillqvist <tml@novell.com> Bug 538686 - gtkprintoperation-win32.c: devmode_from_settings * gtk/gtkprintoperation-win32.c (devmode_from_settings): Plug potential leak. Thanks to Morten Welinder. svn path=/trunk/; revision=20944
* gtk/gtkprint-win32.c gtk/gtkprint-win32.h Cosmetic fixups after patchTor Lillqvist2008-08-021-119/+128
| | | | | | | | | | | | 2008-08-02 Tor Lillqvist <tml@novell.com> * gtk/gtkprint-win32.c * gtk/gtkprint-win32.h * gtk/gtkprintoperation-win32.c: Cosmetic fixups after patch below. svn path=/trunk/; revision=20943
* Bug 339699 - implement gtk_print_operation_set_show_dialog for WindowsTor Lillqvist2008-08-021-6/+175
| | | | | | | | | | | | | | 2008-08-02 Tor Lillqvist <tml@novell.com> Bug 339699 - implement gtk_print_operation_set_show_dialog for Windows * gtk/gtkprint-win32.c * gtk/gtkprint-win32.h * gtk/gtkprintoperation-win32.c: Patch by ecyrbe@gmail.com. svn path=/trunk/; revision=20942
* Fix problems in handling custom paper sizes. The DEVMODE::dmPaperWidth andTor Lillqvist2008-07-301-10/+14
| | | | | | | | | | | | 2008-07-30 Tor Lillqvist <tml@novell.com> * gtk/gtkprintoperation-win32.c: Fix problems in handling custom paper sizes. The DEVMODE::dmPaperWidth and dmPaperLength are in tenths of a millimeter, and the RECT passed to CreateEnhMetaFile() is in hundredths of a millimeter. Patch by Sven Neumann. svn path=/trunk/; revision=20916
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* fix 'function' : incompatible types - from 'struct _cairo *' to 'structHans Breuer2008-06-211-2/+2
| | | | | | | | | | | | | | | | | | | 2008-06-21 Hans Breuer <hans@breuer.org> * gtk/gtkprintoperation-win32.c(1713) : fix 'function' : incompatible types - from 'struct _cairo *' to 'struct _cairo_surface *' by passing the surface to cairo_surface_show_page(), not the context * gtk/gtkprintoperation-win32.c(866) : get rid of warning C4018: '<' : signed/unsigned mismatch by using guint for the loop * gtk/gtkmenu.c(gtk_menu_get_property) : property 'menu::active' is an uint, gtk_menu_get_active() returns the widget pointer. Convert the latter to the former by calculating the index in menu::children Also fix some occurences of g_return_if_fail() where g_return_val_if_fail() was meant svn path=/trunk/; revision=20662
* Fix life cycle to avoid crash. [#536966]Jody Goldberg2008-06-211-3/+3
| | | | | | | | | 2008-06-20 Jody Goldberg <jody@gnome.org> * gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog) : Fix life cycle to avoid crash. [#536966] svn path=/trunk/; revision=20660
* Use g_set_error_literal where appropriate. Bug #538640.Christian Persch2008-06-191-32/+32
| | | | svn path=/trunk/; revision=20463
* Fix variable declared in the middle of the block. (#526021, reported byCody Russell2008-04-031-1/+3
| | | | | | | | | | 2008-04-03 Cody Russell <bratsche@gnome.org> * gtk/gtkprintoperation-win32.c: Fix variable declared in the middle of the block. (#526021, reported by Kazuki IWAMOTO) svn path=/trunk/; revision=19974
* Bump required Cairo to 1.5.2.Cody Russell2008-04-011-6/+12
| | | | | | | | | | | | 2008-04-01 Cody Russell <bratsche@gnome.org> * configure.in: Bump required Cairo to 1.5.2. * gtk/gtkprintoperation-win32.c: Add support for using the new cairo_win32_printing_surface for printing. (#488833) svn path=/trunk/; revision=19955
* Set the GtkWin32EmbedWidget we create here as modal. Fixes #389358.Tor Lillqvist2007-09-241-0/+1
| | | | | | | | | | 2007-09-24 Tor Lillqvist <tml@novell.com> * gtk/gtkprintoperation-win32.c (pageDlgProc): Set the GtkWin32EmbedWidget we create here as modal. Fixes #389358. svn path=/trunk/; revision=18860
* take the custom tab label from gtk_print_operation_set_custom_tab_label()Hans Breuer2007-01-131-5/+8
| | | | | | | | | 2007-01-13 Hans Breuer <hans@breuer.org> * gtk/gtkprintoperation-win32.c : take the custom tab label from gtk_print_operation_set_custom_tab_label() into account (bug #390746). svn path=/trunk/; revision=17139
* Include windows.h (#391229, Kazuki Iwamoto)Matthias Clasen2006-12-311-0/+1
| | | | | | | | | | | 2006-12-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation-win32.c: Include windows.h (#391229, Kazuki Iwamoto) svn path=/trunk/; revision=16995
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-2/+2
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-1/+4
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* store scale in percentMatthias Clasen2006-06-121-3/+2
|
* Fix MSVC build problem. (#339739, Kazuki Iwamoto)Tor Lillqvist2006-06-111-1/+5
| | | | | | | 2006-06-11 Tor Lillqvist <tml@novell.com> * gtk/gtkprintoperation-win32.c: Fix MSVC build problem. (#339739, Kazuki Iwamoto)
* Update windows to build with new APIs and first cut at preview work.Alexander Larsson2006-06-081-31/+169
| | | | | | | | | | | | | | | | 2006-06-08 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintoperation-win32.c: Update windows to build with new APIs and first cut at preview work. * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.c Various updates needed when making the preview work on win32. * tests/print-editor.c: Print, don't preview.
* Add gtkprintoperationpreview.[ch] Set default preview command. HardcodedAlexander Larsson2006-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-06-02 Alexander Larsson <alexl@redhat.com> * gtk/Makefile.am: Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded for now. * gtk/gtkmarshalers.list: Add BOOLEAN:OBJECT,OBJECT,OBJECT * gtk/gtkprintbackend.c: Add preview command property. * gtk/gtkprintcontext.[ch]: Make less dependent on PrintOperation for output settings Externally set cairo_t and dpi. Resettable. Create fontmap without metrics hinting (so that print preview text layout doesn't depend on zoom level). * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.[ch]: Initial work on print preview API and default implementation using an external preview app. * gtk/gtkprintoperation-win32.c: Some needed updates. Not done, needs more work. * gtk/gtkprintoperationpreview.[ch]: New interface used in print preview api. * gtk/gtkprintunixdialog.c: Add print preview dialog. * tests/print-editor.c: Test using an custom print preview widget.
* Add a boolean show-progress property, and show a progress dialog if it isMatthias Clasen2006-05-231-2/+3
| | | | | | | | | | | | | | | | 2006-05-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation.h: * gtk/gtkprintoperation.c: Add a boolean show-progress property, and show a progress dialog if it is set to TRUE. * gtk/gtkprintoperation.c (pdf_end_run): * gtk/gtkprintoperation-win32.c (win32_end_run): * gtk/gtkprintoperation-unix.c (unix_end_run): * gtk/gtkprintoperation-private.h: Add a cancelled parameter to end_run, and call it even if the print operation was cancelled.
* Add gtk_print_unix_dialog_add_custom_tabAlexander Larsson2006-05-231-1/+1
| | | | | | | | | | | | | | | 2006-05-23 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintunixdialog.[ch]: Add gtk_print_unix_dialog_add_custom_tab * gtk/gtkprintoperation-unix.c: Implement custom widgets for unix. Fix some warnings by including cairo-ps/pdf.h * gtk/gtkprintoperation-win32.c: Mark string for translation.
* Make sure grab-notify is emitted on toplevels as well as child widgets.Alexander Larsson2006-05-221-7/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-22 Alexander Larsson <alexl@redhat.com> * gtk/gtkmain.c: Make sure grab-notify is emitted on toplevels as well as child widgets. * gtk/Makefile.am: * gtk/gtkwin32embedwidget.[ch] Add new widget used for win32 port to embed gtk+ widgets in windows dialog. * gtk/gtkmarshalers.list: Add POINTER:VOID * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation.[ch]: Generic support for custom widgets in print dialog. * gtk/gtkprintoperation-win32.c: Implement custom widget support for win32. * tests/print-editor.c: Allow setting of font using custom widgets in the print dialog.
* Fix printing build on win32Alexander Larsson2006-05-171-7/+8
|
* Added gtk_print_job_set/get_track_print_statusAlexander Larsson2006-05-151-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-15 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintjob.[ch]: Added gtk_print_job_set/get_track_print_status * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation.[ch]: Add gtk_print_operation_set_track_print_status. * gtk/gtkprintoperation-unix.c: Implement track_print_status on unix * gtk/gtkprintoperation-win32.c: Implement track_print_status on win32 * gtk/gtk.symbols: Added symbols * modules/printbackends/cups/gtkprintbackendcups.c: Implement track_print_status for cups * tests/print-editor.c: Test track_print_status.