Commit graph

22,479 commits

Author SHA1 Message Date
38ee32db64 quartz: fix enter/leave on macOS 13 and Dock redraws
Also builds with the 10.4 SDK again.

Taken from Ardour's YTK, which has the enter/leave fix from GTK 3:

- 7e1a3ffa37 (John Ralls, GTK 3)
- ea461691 (Paul Davis)
2026-10-18 11:15:25 +02:00
dece7d509a quartz: fix fullscreen, window placement and modal hint
Taken from Ardour's YTK:

- fe7fd146 (Robin Gareus)
- ade9fb8c (Robin Gareus)
- 221fd82d (Paul Davis)
2026-10-18 11:15:25 +02:00
8dc64fe904 quartz: don't ask for userSpaceScaleFactor on newer macOS
Taken from Ardour's YTK:

- ecd22e9a (Robin Gareus)
2026-10-18 10:47:07 +02:00
e8f7b336e1 quartz: fix smooth scrolling build with SDKs before 10.7 2026-10-18 10:47:07 +02:00
d580303374 gtk: let pinches through GTK's own scrolling widgets
So it zooms where the program zooms, and the scrolled window that just
took the wheel doesn't keep it.
2026-10-18 10:47:07 +02:00
80e308944a gdk: emulate touchpad gestures for old programs
Like Windows does for its old programs: a pinch becomes Ctrl+wheel (one
step per 15%), a sideways swipe becomes the back or forward button.
The events are marked for gdk_event_get_touchpad_emulated(). On X11
this needs XInput 2.4 (libXi 1.8 and a server that has it).
2026-10-18 10:41:33 +02:00
7c2bf89fd5 win32: fix crash in get_entries_for_keyval with NULL keymap 2026-10-18 10:41:33 +02:00
726e282cff win32: use the Windows message font like GTK 3
Segoe UI 9, or Tahoma 8 on XP. Before pango 1.43 this is left to pango
for any font but Segoe UI. A theme that sets a font still wins.

Backported from GTK 3 commit 9e7cc89f4a by Christoph Reiter.
2026-10-18 10:41:33 +02:00
bd3df5bec1 win32: window, IME and monitor fixes from GTK 3
Backported from GTK 3:

- frameless windows maximize without covering the taskbar
- IME windows follow the scale
- monitor info and selection names without overflow or leak
- opacity on child windows is ignored quietly

Upstream commits:

- c61764b0f9 (Руслан Ижбулатов)
- c073a062b6 (Chun-wei Fan)
- ba6522d3f2 (Vasiliy Nuzha)
- 41026987be (Руслан Ижбулатов)
- 6dede1a0b7 (Руслан Ижбулатов)
2026-10-18 10:41:33 +02:00
b413703921 ms-windows: draw theme parts at the native resolution 2026-10-18 10:41:33 +02:00
b7f819f037 win32: add HiDPI support
GDK declares itself DPI aware, and at 192 dpi or more (or with
GDK_SCALE) it draws every pixel as two or more device pixels, so
windows keep their 96 dpi size. A remaining fraction goes to the
fonts. GDK_WIN32_DPI_AWARE=0 leaves the scaling to Windows.
2026-10-18 10:41:33 +02:00
62deba5c41 win32: add WM_TOUCH support
Windows 7 and later. Mouse messages that Windows makes from a finger
are marked as emulated.

Modelled on the multitouch support of Ardour's YTK (c88d3701 by
Robin Gareus).
2026-10-18 10:36:53 +02:00
d82c6516ae win32: only wait for the input types GDK handles
Programs built with newer headers spun on Windows 8 or missed events
on XP and 7.

Taken from Ardour's YTK:

- ddbe15fd (Robin Gareus)
2026-10-18 10:18:41 +02:00
de123d8ed5 print: PPD translations and print-to-file fixes from GTK 3
Backported from GTK 3:

- PPD options in the language of the user
- Print to File writes to Documents and adds to recent files
- the scale is applied after rotation and margins
- cancel stops a preview
- conflicts are checked for a new printer
- option widgets let go of their option
- radio options take their mnemonic

Upstream commits:

- 97ee5efb4b (Matthias Clasen)
- c85c3510e7 (Leo Wolf)
- 2c1839ae5f (Marek Kasik)
- d80953666e (Morten Welinder)
- ad764c8a58 (Alban Browaeys)
- f682aabf74 (Siegfried Gevatter (RainCT))
- 0fe9e481dd (Marek Kasik)
- da85312097 (Marek Kasik)
2026-10-18 10:18:40 +02:00
6eedf81e1e print: callback, title and driver fixes from GTK 3
Backported from GTK 3:

- a printer list callback stops when a handler destroys the backend
- CUPS job titles are cut to 255 bytes at a character boundary
- a second source file no longer leaks the first
- Windows driver settings stay with their printer

Upstream commits:

- 255225584e (Carlos Garcia Campos)
- 446659e80f (Rick Yorgason)
- 0387486407 (Marek Kasik)
- 90950b2d3d (Marek Kasik)
2026-10-18 10:18:40 +02:00
a1dec5205d cups: fix connection and request leaks
A connection and a request leaked with every job, a borrowed connection
was closed twice, and the TXT records of network printers weren't
freed. Avahi requests close their own connections now.

Upstream commits:

- 118b09c68c (Marek Kasik)
- 083f834dd7 (Marek Kasik)
- 9513d3b2a4 (Marek Kasik)
2026-10-18 10:18:40 +02:00
9caeed54ad cups: option, Kerberos and leak fixes from GTK 3
Backported from GTK 3:

- custom option values are checked before use
- Kerberos printers no longer ask for a password
- options of printer instances stay with the instance
- a resolution from the settings wins
- printer references no longer leak

Upstream commits:

- b9e91b9419 (Till Kamppeter)
- 9a0700e20c (Marek Kasik)
- e99e282b5a (Andre Heinecke)
- 315bb30220 (Matthias Clasen)
- 36effbb307 (Timothy Arceri)
2026-10-18 10:18:40 +02:00
d83328cd72 print: stop waiting for printers after five seconds
A print server that never answered blocked the print dialog forever.
2026-10-18 10:18:40 +02:00
ace34b5212 po: add "Remember password" translations from GTK 3
The translations are the ones of GTK 3, by the GNOME translation teams.
2026-10-18 10:18:40 +02:00
11b04da889 cups: store job passwords in the keyring like GTK 3
Based on GTK 3 commit 382d68ff8e by Andre Heinecke.
2026-10-18 10:18:40 +02:00
cd6e01acde cups: don't leak the entered password 2026-10-17 23:59:00 +02:00
aaccf7898a widgets: dnd, tooltip and menu fixes from GTK 3
Backported from GTK 3:

- selections to a vanished window and drags without targets are safe
- drag source events no longer leak
- tooltips hide on scroll, their window is freed with the display
- menu paging reads no stale heights
- a paned keeps a position set to its current value
- hidden active radio buttons let focus in
- small pages scroll at most half a page per wheel step
- tool buttons without an icon show their label
- a NULL title clears it

Upstream commits:

- d632474b74 (Matthias Clasen)
- 48770fda30 (Olivier Brunel)
- 057a50d58e (Behdad Esfahbod)
- 92ddf14457 (William Jon McCann)
- a265d8f32d (Philip Withnall)
- df0e5cc8e6 (Philip Chimento)
- c3deff17a6 (John Ralls)
- 276a510b4b (Cosimo Cecchi)
- 01136618b8 (Owen W. Taylor)
- 73e799474a (Matthias Clasen)
- 9a03fc906a (Matthias Clasen)
- c0ba041c73 (Michael Natterer)
- d38bf4825a (Javier Jardón)
2026-10-17 23:47:18 +02:00
7511c8ec00 treeview, combobox: fixes from GTK 3
Backported from GTK 3:

- a custom search entry is released with the view
- deleting a row with a selected child emits changed
- the first pixel of a column belongs to it
- grid lines in right-to-left order
- row deletions reach views that don't ref rows
- autosize columns outside a view are quiet
- combo popups free paths and read no uninitialized cells

Upstream commits:

- 55012318a6 (Vadim Godunko)
- 7faf5ee765 (Claudio Saavedra)
- c4224bf9d0 (Matthias Clasen)
- c15a7877e9 (Guillaume Desmottes)
- 67a00991b7 (Matthias Clasen)
2026-10-17 23:45:28 +02:00
4623eaed8e text: entry, label and text view fixes from GTK 3
Backported from GTK 3:

- setters during the first style of a text view no longer crash
- a text view destroyed during a selection drag keeps its buffer
- tags up to the end relayout
- a link handler that changes the label is safe
- label selections survive setting the same text
- cut, copy and paste with the keypad
- Select All only when there is text
- IM cursor positions in characters
- accelerator labels without XF86
- spin buttons take digits of other scripts

Upstream commits:

- ad1c0f7155 (Matthias Clasen)
- d7696bd25f (Tristan Van Berkom)
- c6a7a0889c (Bastien Nocera)
- 8f6cd8d86d (Sébastien Granjoux)
- f19ecbb850 (Matthias Clasen)
- 0d6cff45c3 (Matthias Clasen)
- b23eabbd64 (Sébastien Wilmet)
- 8da5111edd (Marek Kasik)
- f74a75ae7e (Matthias Clasen)
- 0840f13c15 (Timm Bäder)
- fa69e5f42d (Matthias Clasen)
- b6783933c9 (Matthias Clasen)
- 54c3f05848 (Matthew Barnes)
2026-10-17 23:32:21 +02:00
02596a975f gdk: visibility, RandR and event time fixes from GTK 3
Backported from GTK 3:

- client-side windows get visibility events when they ask
- unplugging a monitor while RandR is read no longer kills the program
- transient-for an offscreen window is ignored
- win32 event times survive 49.7 days of uptime
- win32 modifier keys are marked as such
- quartz moves windows in begin_move_drag
- quartz skips offscreen windows on monitor changes

Upstream commits:

- 7ec927a386 (Alexander Larsson)
- 4cf5ce2e08 (Charles Reiss)
- 394fe4b57e (Ryan Lortie)
- f3f998efd7 (fiddlerwoaroof)
- 0c72ce94ea (Luca Bacci)
- f74f81f06b (Руслан Ижбулатов)
- 0274b2c94e (Руслан Ижбулатов)
2026-10-17 20:34:36 +02:00
25d594e965 widgets: show-hidden, tool palette and -0 fixes from GTK 3
Backported from GTK 3:

- show-hidden set by the program isn't overridden by the settings
- tool palette groups move where asked
- no leaks in tool item group headers and unknown builder actions
- an entry icon replaced during a click keeps its release
- the sort order of the default sort column changes
- scales and spin buttons show 0 instead of -0

Upstream commits:

- e2b9caf26a (Matthias Clasen)
- 9753bea6a4 (Matthias Clasen)
- 18e8842a7e (Matthias Clasen)
- 88e372cd09 (Matthias Clasen)
- 5ca860dcaf (Matthias Clasen)
- f23e99b063 (Matthias Clasen)
- 53bc2566b3 (Matthias Clasen)
- 6a507c0b63 (Tristan Partin)
2026-10-17 19:31:18 +02:00
bb636048f2 gdk: event filter, X11 and quartz fixes from GTK 3
Backported from GTK 3:

- an event filter removed and re-added while running runs again
- an untrusted X client no longer dies on a beep
- no pid in a Flatpak sandbox that the window manager could kill
- quartz drops the pointers of a destroyed window
- win32 centers on a fully set rectangle

Upstream commits:

- 5ac848d229 (Руслан Ижбулатов)
- a73fa04e92 (Matthias Clasen)
- 9c84f7645e (Matthias Clasen)
- 749c863073 (John Ralls)
2026-10-17 19:31:18 +02:00
8b50a92bbd widgets: more fixes from GTK 3
Backported from GTK 3:

- mnemonics of markup labels with hidden underlines
- selecting in a label without a screen
- notebook action widgets get their requested size
- a window presented while hidden keeps the timestamp
- drag destinations start zeroed
- about dialog cursors belong to its display
- radio menu items accept a NULL group

Upstream commits:

- b5d678dab0 (Dan Winship)
- c2d1e3eeb0 (Matthias Clasen)
- 8e65fa1b43 (Sébastien Wilmet)
- f2279d5e51 (Tristan Van Berkom)
- bc6a3f8cd8 (Matthias Clasen)
- 5fa4a05ccc (Philip Withnall)
- e916568781 (jjacky)
- 8aecf2c06a (Matthias Clasen)
- ad05d84897 (Matthias Clasen)
2026-10-17 19:31:18 +02:00
1ee8565630 treeview, stores: transform and column drag fixes from GTK 3
Backported from GTK 3:

- stores convert values of a transformable type
- dragging a column header shows a window of that column's size

Upstream commits:

- a24f7564b5 (Cosimo Cecchi)
- e92e767246 (Cosimo Cecchi)
- 3c7a6581dc (Stefano Facchini)
2026-10-17 18:50:32 +02:00
8ea216978b x11: caps lock and translate queue fixes from GTK 3
Backported from GTK 3:

- the caps lock state is known before the first key event
- the translate queue is freed with its display

Upstream commits:

- 2226996b80 (Matthias Clasen)
- fbf1093d5c (Matthias Clasen)
2026-10-17 18:50:32 +02:00
0ff855d560 widgets: assorted fixes from GTK 3
Backported from GTK 3:

- about dialog links
- assistant pages changed in prepare
- radio menu items joining a group with an active item
- scale marks, tool palettes, notebook tab drags
- menu scrolling, tooltips
- startup notification of popups
- window group lists

Upstream commits:

- 2cabfcc801 (Matthias Clasen)
- 8e1878bc32 (Matthias Clasen)
- eeb9de80e1 (Xan Lopez)
- 04e727709d (Jasper St. Pierre)
- 00be62546f (Matthias Clasen)
- c298c7acce (Philip Chimento)
- 38dc4733c0 (Tristan Van Berkom)
- a37976dae0 (Tristan Van Berkom)
2026-10-17 18:50:25 +02:00
fafda6f9bf treeview, iconview, combobox: fixes from GTK 3
Backported from GTK 3:

- drags from empty views
- extra mouse buttons
- keys that only close the search
- cursor changes during destruction
- filter reordering
- expander clicks in combo popups
- combo box text items split by markup

Upstream commits:

- e8157126d8 (Tristan Van Berkom)
- 295ed0033e (Cosimo Cecchi)
- 510d84f682 (Kristian Rietveld)
- 1dcd209cdd (Matthias Clasen)
- a20ff44b09 (Daniel Boles)
- 2934482aee (Emmanuele Bassi)
- e60fa49fa7 (Rui Matos)
- 44a064fe30 (Kristian Rietveld)
- e35378ba37 (Thomas Holder)
- 63fe6de94d (Benjamin Otte)
- d3c427a767 (Matthias Clasen)
2026-10-17 18:13:35 +02:00
ff6019ff8d entry, textview: fixes from GTK 3
Backported from GTK 3:

- activatable defaults of entry icons
- display text ranges
- primary selection ownership
- empty inserts
- tag toggles at the end
- line width of justified text
- control characters in input methods

Upstream commits:

- 67efefde49 (Carlos Garnacho)
- 5fe9ebfe11 (Carlos Garnacho)
- 056acf92ec (Matthias Clasen)
- 73c8f30928 (Sebastien Lafargue)
- ff9eb56c6e (Jasper St. Pierre)
- 3511215730 (Paolo Borelli)
2026-10-17 18:13:35 +02:00
aa1a304fe9 gdk: event, shape, grab and focus fixes from GTK 3
Backported from GTK 3:

- event freeing
- child window shapes
- root coordinates of destroyed windows
- implicit grabs
- windows that don't take focus no longer offer WM_TAKE_FOCUS

Upstream commits:

- 809aab2c8e (Jasper St. Pierre)
- f96437317b (Carlos Garnacho)
- 651410fa2a (Carlos Garcia Campos)
- 3f78b251b9 (Carlos Garnacho)
- 41f4fd94df (Tomeu Vizoso)
2026-10-17 18:13:35 +02:00
62cba3edca entry, textview: add the emoji chooser from GTK 3.22
Opens with Ctrl+. or Ctrl+; or from the context menu. The search uses
the desktop language and recently used ones come first. The emoji data
from GTK 3 is only loaded when the chooser first opens.

Backported from GTK 3:

- 45b2e162ae (Matthias Clasen)
- a584bcb88e (Matthias Clasen)
- d56505f74d (Matthias Clasen)
- f922aee5e2 (Matthias Clasen)
- 90faa49a70 (Jeremy Bícha)

The emoji data comes from emojibase (MIT) and the Unicode CLDR
(Unicode License V3); both notices are in gtk/emoji/COPYING.
2026-10-17 18:04:50 +02:00
ac42292095 entry, textview: add placeholder text and input hints
Placeholder text from GTK 3.2, input purpose and hints from 3.6.
Password entries and spin buttons set them on their own.

Backported from GTK 3:

- ef061c4e96 (Carlos Garcia Campos)
- c27ddc66c5 (Jonh Wendell)
- 8a8c434737 (Krzesimir Nowak)
- 3cb4aa44b3 (Matthias Clasen)
- eaaee081b1 (Matthias Clasen)
- 7d1c1a8d20 (Matthias Clasen)
2026-10-17 18:04:50 +02:00
94bf53e488 gtk: add GtkFileChooserNative and GtkNativeDialog
Same API as GTK 3.20. Uses IFileDialog on Windows (the old common
dialogs on XP and ReactOS), NSOpenPanel/NSSavePanel on Mac OS X 10.4
and later, and the portal under Flatpak or with GTK_USE_PORTAL=1.
Otherwise it falls back to the GTK dialog. Also adds
gtk_file_filter_to_gvariant() and _new_from_gvariant() from 3.22.

Backported from GTK 3:

- 5094900180 (Alexander Larsson)
- 81cef0091e (Alexander Larsson)
- 01d0bac83e (Alexander Larsson)
- 693db082a1 (Alexander Larsson)
- 35181e793d (Matthias Clasen)
- 15e361e793 (Matthias Clasen)
- 0acb6a0e98 (Matthias Clasen)
- ce4c9a9ad6 (Tom Schoonjans)
- 32d87ac907 (Emilio Cobos Álvarez)
2026-10-17 18:04:49 +02:00
fdf1b58816 x11: per-monitor HiDPI
Each window takes the scale of the monitor it's on and switches when
it's moved, keeping its size in GDK pixels. Scales come from the
per-output resolution on Xlibre or GDK_MONITOR_SCALES. Changes apply
right away.
2026-10-17 18:04:49 +02:00
c475fe052f icons: high-resolution pictures on scaled screens 2026-10-17 17:22:24 +02:00
c717e77123 x11: add HiDPI support like GTK 3
With a scale of 2 or more (GDK_SCALE, Gdk/WindowScalingFactor, the
per-output resolution on Xlibre, Xft.dpi) everything is drawn in device
pixels while programs keep their sizes. Adds
gdk_window_get_scale_factor() and gdk_screen_get_monitor_scale_factor().

The scale factor API is the one of GTK 3 (8ad851f725 by
Michael Natterer).
2026-10-17 17:22:24 +02:00
57b1fcdede scrolledwindow: kinetic scrolling with a finger
Works in old programs too. Taps and a resting finger still go to the
widgets as before.

Modelled on the kinetic scrolling of GTK 3 (f6393199be by
Carlos Garcia Campos).
2026-10-17 17:22:23 +02:00
58a9c7bf63 gtk: add the touch-event signal
Backported from GTK 3 commit 680872815b by Matthias Clasen.
2026-10-17 17:22:23 +02:00
743c7a7e33 gdk: add touch events like GTK 3
GDK_TOUCH_MASK and the touch event types, using XInput 2.2 on X11.
Windows without the mask get the first finger as pointer events,
marked as emulated.

The touch API is the one of GTK 3 (commits 7f35708cee and bc8401d1ed by
Carlos Garnacho). The pointer emulation for windows without the
mask follows Ardour's YTK (952ec57a by Robin Gareus).
2026-10-17 17:22:23 +02:00
fd7f7b780f gdk: add GDK_SMOOTH_SCROLL_MASK
Same as in GTK 3.4: windows that ask for it get smooth scroll deltas,
all others keep the plain steps.

The API is the one of GTK 3.4 (commits 7b48a3c0bd by Carlos Garnacho
and 0efbbc6435 by Michael Natterer).
2026-10-17 17:22:23 +02:00
d4c2a29d9e scrolledwindow: drop leftover steps of an unused direction 2026-10-17 17:22:23 +02:00
3ac60bfbcf scrolledwindow: keep the wheel while scrolling
A child that scrolls too no longer takes the wheel away in the middle
of scrolling the outer window.
2026-10-17 17:22:23 +02:00
63aeeb1e37 scrolledwindow: animate wheel steps, scroll sideways with Shift 2026-10-17 17:22:23 +02:00
c33a268060 gdk: smooth scrolling on Windows and macOS 2026-10-17 17:11:15 +02:00
d298391bc9 gdk: smooth scrolling for high-resolution wheels and touchpads 2026-10-17 17:04:03 +02:00
6acf191fb0 filesystemmodel: free large folder models in idle slices 2026-10-17 16:59:09 +02:00