summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-win32.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Stop using gtk_widget_show/hideMatthias Clasen2022-11-281-2/+2
| | | | | | | gtk_widget_set_visible and gtk_window_present are better alternatives, and calling gtk_widget_show on newly created widgets is no longer necessary anyway.
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+1
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* gdk/win32: do not expose gdk_win32_*_libgtk_only in public headersMarc-André Lureau2022-08-241-0/+1
| | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* Avoid copying static debug stringsMatthias Clasen2021-07-281-2/+2
| | | | | | The g_source_set_name calls were showing up as a major source of strdups in our profiles. Avoid that by using new GLib api when available.
* docs: Add missing documentation on WindowsEmmanuele Bassi2021-05-251-0/+32
| | | | | | The gtk_print_run_page_setup_dialog() function, and its asynchronous variant, are declared in the common gtkprintoperation.h header, but implemented in different source files depending on the platform.
* types: fix various use of volatile in type registrationwip/chergert/volatile-fixesChristian Hergert2020-11-181-1/+1
| | | | | | | | | | | The use of volatile was incorrect in GLib and has been that way for a long time. Recently however that has changed, and this makes GTK follow suit to avoid using volatile in the type registration. See also: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719 Combined with the above merge request for GLib, this fixes a large number of compilation warnings when using Clang.
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-2/+2
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-5/+5
|
* gtkprintoperation-win32: Don't track grab-notifyCarlos Garnacho2020-06-241-12/+0
| | | | | Further grabs could presumably only come from events handled within the dialog itself. It seems overeager to do this.
* Replace most remaining uses of container apiMatthias Clasen2020-05-111-1/+1
| | | | These are all on GtkBox or enumerating children.
* Replace gtk_widget_destroy everywhereMatthias Clasen2020-05-111-2/+2
| | | | | Replace all remaining uses of gtk_widget_destroy by gtk_container_remove or g_object_unref.
* win32: Build fixesMatthias Clasen2020-03-131-1/+0
| | | | | | | These fixes were done blindly, to make the ci pass, and will need review by somebody with access to an actual win32 system to make sure the surface subtypes are implemented properly.
* window: Remove type argument from gtk_window_new()Benjamin Otte2020-02-141-1/+1
|
* win32 printing: Stop using gtk_events_pendingMatthias Clasen2020-02-091-8/+8
| | | | Just use the GMainContext API directly.
* Merge branch 'WindowsPrintDriverPreferencesMaster' into 'master'Matthias Clasen2020-02-061-27/+61
|\ | | | | | | | | Fixed bug that prevented GTK from storing printer driver preferences in the… See merge request GNOME/gtk!397
| * Fixed win32 printer dialogue not saving devmode->dmDeviceName. Caused the ↵Rick Yorgason2018-11-011-0/+9
| | | | | | | | print dialogue to select the wrong printer, and potentially feed bad "extra" data to the default printer.
| * Fixed code styling.Rick Yorgason2018-10-291-18/+18
| |
| * Fixed bug that prevented GTK from storing printer driver preferences in the ↵Rick Yorgason2018-10-271-26/+51
| | | | | | | | print dialogue on Windows.
* | win32: Use a regular window for printingMatthias Clasen2019-12-291-1/+1
| | | | | | | | | | | | We never show this window, so it should not matter. Ideally, we'd just create a surface to get handle, anyway.
* | Add missing includeРуслан Ижбулатов2019-05-281-0/+1
| |
* | Stop using gtk_widget_get_surfaceMatthias Clasen2019-05-281-5/+8
| | | | | | | | | | Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
* | win32: Add missing enum value to switch statementBenjamin Otte2019-05-211-0/+1
| |
* | widget: Remove toplevel flagBenjamin Otte2019-02-151-2/+0
| | | | | | | | | | | | | | Instead, rely on GTK_IS_ROOT(). Also implement GtkRoot on GtkWindow and GtkInvisible, the two widgets that used to set the toplevel flag before.
* | printoperation-win32: Stop using an invisibleMatthias Clasen2019-02-051-2/+2
| | | | | | | | | | We can just as well use a GtkWindow here. We just need a handle. Untested.
* | gtk: Drop the "plus"Emmanuele Bassi2019-02-051-2/+2
|/ | | | Source names should use "[gtk]" without the plus.
* Use const for media type in devmode_to_settings()Руслан Ижбулатов2018-06-161-3/+3
|
* Add foward declarations to gtk_print_operation_run_without_dialogРуслан Ижбулатов2018-06-161-0/+18
|
* Remove unused variables (mostly in W32 code)Руслан Ижбулатов2018-06-101-4/+0
|
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-3/+3
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* GdkWindow -> GdkSurface initial type renameAlexander Larsson2018-03-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This renames the GdkWindow class and related classes (impl, backend subclasses) to surface. Additionally it renames related types: GdkWindowAttr, GdkWindowPaint, GdkWindowWindowClass, GdkWindowType, GdkWindowTypeHint, GdkWindowHints, GdkWindowState, GdkWindowEdge This is an automatic conversion using the below commands: git sed -f g GdkWindowWindowClass GdkSurfaceSurfaceClass git sed -f g GdkWindow GdkSurface git sed -f g "gdk_window\([ _\(\),;]\|$\)" "gdk_surface\1" # Avoid hitting gdk_windowing git sed -f g "GDK_WINDOW\([ _\(]\|$\)" "GDK_SURFACE\1" # Avoid hitting GDK_WINDOWING git sed "GDK_\([A-Z]*\)IS_WINDOW\([_ (]\|$\)" "GDK_\1IS_SURFACE\2" git sed GDK_TYPE_WINDOW GDK_TYPE_SURFACE git sed -f g GdkPointerWindowInfo GdkPointerSurfaceInfo git sed -f g "BROADWAY_WINDOW" "BROADWAY_SURFACE" git sed -f g "broadway_window" "broadway_surface" git sed -f g "BroadwayWindow" "BroadwaySurface" git sed -f g "WAYLAND_WINDOW" "WAYLAND_SURFACE" git sed -f g "wayland_window" "wayland_surface" git sed -f g "WaylandWindow" "WaylandSurface" git sed -f g "X11_WINDOW" "X11_SURFACE" git sed -f g "x11_window" "x11_surface" git sed -f g "X11Window" "X11Surface" git sed -f g "WIN32_WINDOW" "WIN32_SURFACE" git sed -f g "win32_window" "win32_surface" git sed -f g "Win32Window" "Win32Surface" git sed -f g "QUARTZ_WINDOW" "QUARTZ_SURFACE" git sed -f g "quartz_window" "quartz_surface" git sed -f g "QuartzWindow" "QuartzSurface" git checkout NEWS* po-properties
* Replace gdk_threads_add_timeout* with g_timeout_add()Emmanuele Bassi2018-02-031-2/+2
| | | | | | | | | | | | | | | The main GDK thread lock is not portable and deprecated. The only reason why gdk_threads_add_timeout() and gdk_threads_add_timeout_full() exist is to allow invoking a callback with the GDK lock held, in case 3rd party libraries still use the deprecated gdk_threads_enter()/gdk_threads_leave() API. Since we're removing the GDK lock, and we're releasing a new major API, such code cannot exist any more; this means we can use the GLib API for installing timeout callbacks. https://bugzilla.gnome.org/show_bug.cgi?id=793124
* gtk/gtkprintoperation-win32.c: Don't call gtk_widget_set_allocation()Chun-wei Fan2017-07-211-1/+0
| | | | | | This function was removed recently. https://bugzilla.gnome.org/show_bug.cgi?id=773299
* gtk/gtkprintoperation-win32.c: Fix for GTK+-4.0 APIChun-wei Fan2016-11-221-8/+21
| | | | | | | | | | | | We no longer have GtkPlug nor GtkWin32EmbedManifest for GTK+-4.x, and it is not entirely clear at this point what would be the "best" replacement for them, but this issue here prevents GTK+-3.89.x building on Windows. As a result, this is a fast port to avoid using APIs that have been removed for 4.x, and things seem to work properly (the print.c page printed). https://bugzilla.gnome.org/show_bug.cgi?id=773299
* 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