Commit Graph

69681 Commits

Author SHA1 Message Date
Matthias Clasen
10f8636316 Merge branch 'for-4-2' into 'gtk-4-2'
gdk/x11: Do not set PPosition hint

See merge request GNOME/gtk!3783
2021-07-24 23:57:18 +00:00
Florian Müllner
da62ff6322 gdk/x11: Do not set PPosition hint
It is good practice for (floating) window managers to respect explicit
position hints from clients (as long as the window wouldn't end up
off-screen etc.).

Before commit 13d3afa56e, GTK had a flag for setting the PPosition hint,
but now does so unconditionally. However the real intention is to *not*
request a fixed position, so don't do that.

(cherry picked from commit 4d0c2997cf)
2021-07-24 13:53:50 +02:00
Matthias Clasen
27cc20a440 Merge branch 'pango-main-4-2' into 'gtk-4-2'
Use pango from the main branch

See merge request GNOME/gtk!3765
2021-07-17 13:29:39 +00:00
Matthias Clasen
1a6e2f1d19 Use pango from the main branch
Change the Pango subproject to use the main branch.

This depends on
https://gitlab.gnome.org/GNOME/pango/-/merge_requests/379
2021-07-17 08:21:21 -04:00
Matthias Clasen
4f7d03909c Merge branch 'cherry-pick-a76f5155' into 'gtk-4-2'
cssimagecrossfade: Don't abort() when failing to parse image

See merge request GNOME/gtk!3759
2021-07-17 00:37:59 +00:00
Matthias Clasen
8251e40809 Merge branch 'fix-neg-scales-4.2' into 'gtk-4-2'
ngl: Handle negative scales

See merge request GNOME/gtk!3760
2021-07-17 00:37:33 +00:00
Benjamin Otte
14df31b509 testsuite: Add test for crasher
Test for the crasher in !4096
2021-07-16 19:34:43 -04:00
Matthias Clasen
3d0c23597d ngl: Handle negative scales
Scale factors can be negative, but we were not
looking out for that, triggering an assertion when
trying to create a render target with negative
width of height. Avoid that.

Fixes: #4096
2021-07-16 19:34:43 -04:00
Matthias Clasen
e669f73f29 Merge branch 'glib-main' into 'gtk-4-2'
Point the glib subproject at the main branch

See merge request GNOME/gtk!3764
2021-07-16 23:34:05 +00:00
Matthias Clasen
aed88e8cc2 Merge branch 'silence-failing-reftest' into 'gtk-4-2'
testsuite: Disable label-wrap-justify

See merge request GNOME/gtk!3763
2021-07-16 23:33:45 +00:00
Matthias Clasen
9d79595bc0 Point the glib subproject at the main branch
GLib has switched from master to main. Follow along.
2021-07-16 19:07:56 -04:00
Matthias Clasen
143091009a testsuite: Disable label-wrap-justify
It is already disabled on master, and it is just as
unreliable on 4.2, so turn it off here too.
2021-07-16 19:04:50 -04:00
Benjamin Otte
a5b1a86ab7 cssimagecrossfade: Don't abort() when failing to parse image
The code wasn't checking if parsing an image failed and just returning
success.

Testcase from bug is attached.

Fixes #4101


(cherry picked from commit a76f515569)
2021-07-16 15:53:42 +00:00
Matej Urbančič
82b2558e46 Update Slovenian translation 2021-07-15 20:11:13 +00:00
Matej Urbančič
a1064ff842 Update Slovenian translation 2021-07-15 20:08:33 +00:00
Rafael Fontenelle
c7a7fc4de6 Update Brazilian Portuguese translation 2021-07-10 19:29:56 +00:00
Rafael Fontenelle
72c3026764 Update Brazilian Portuguese translation 2021-07-10 17:13:59 +00:00
Chao-Hsiung Liao
913629d61a Update Chinese (Taiwan) translation 2021-07-10 08:50:37 +00:00
Chao-Hsiung Liao
03749bb52f Update Chinese (Taiwan) translation 2021-07-10 08:44:33 +00:00
Źmicier Turok
95706d267c Update Belarusian translation 2021-07-06 06:23:36 +00:00
Florentina Mușat
6ff90954dc Update Romanian translation 2021-07-05 20:01:41 +00:00
Florentina Mușat
e5bd6312be Update Romanian translation 2021-07-05 19:47:15 +00:00
Robert Mader
08e12d3316 Merge branch 'gtk-4-2-pointer-gestures-version' into 'gtk-4-2'
gdk/wayland: Fix pointer-gestures version selection

See merge request GNOME/gtk!3695
2021-07-05 13:40:56 +00:00
Benjamin Otte
d12521572d Merge branch 'gtk-4-2-asdf2' into 'gtk-4-2'
icontheme: Fix binding annotation

See merge request GNOME/gtk!3710
2021-06-30 21:34:17 +00:00
Benjamin Otte
2afdbd3644 icontheme: Fix binding annotation 2021-06-30 19:40:50 +00:00
Alexey Rubtsov
477117803b Update Russian translation 2021-06-28 10:48:05 +00:00
Hugo Carvalho
a9c68757b5 Update Portuguese translation 2021-06-27 09:44:44 +00:00
Vlad Zahorodnii
b2e8e1c1cb gdk/wayland: Fix pointer-gestures version selection
version == GDK_ZWP_POINTER_GESTURES_V1_VERSION will fail if the
compositor implements version 2 of pointer-gestures-v1.
2021-06-22 08:52:02 +03:00
Matthias Clasen
c1816408c0 Merge branch 'backports-for-4-2' into 'gtk-4-2'
Assorted bugfix backports

See merge request GNOME/gtk!3687
2021-06-19 01:38:51 +00:00
Matthias Clasen
5699e5ba71 gsk: Respect max element vertices limitation
We are pretty good at batching commands now, and we can easily
produce batches that exceed the maximum number of elements per
draw call that the hw can handle. Query that number, and respect
it when merging batches.

This fixes the rendering of the overview map in GtkSourceView.
2021-06-18 10:22:50 -07:00
Matthias Clasen
5356202ba3 listitemwidget: Claim gesture when activating
Claim the gesture when we are activating a list item.

Otherwise we end up with double activations in
columnviews: first GtkColumnViewCell handles
the event, and then GtkListItemWidget handles
it again.

Fixes: #4015
2021-06-18 10:19:54 -07:00
Matthias Clasen
15a574976e listitemwidget: Match activation conditions
Make the conditions used for activation in the single-
and double-click case properly match, so that it is
obvious that we won't trigger both of them.
2021-06-18 10:19:47 -07:00
Zhi
f9c7b68853 fix: make the new nsview as the first responder.
Make the new view as the first responder(focused) so the new view can
accept events from input method.

Fixes #3968.
2021-06-18 10:19:29 -07:00
Matthias Clasen
741603c838 label: Fix mnemonic handling
We were not handling the case right in which we
want to use underlines, but not use markup. Since
we are now using pango_parse_markup for this case,
we need to escape the xml markup.

Fixes: #4041
2021-06-18 10:19:07 -07:00
Benjamin Otte
5ab6eca84d cellarea: Don't shrink area too much
Do not compute rectangles with negative width/height. This avoids
assertion failures further down when those rectangles were actually
checked.

https://bugzilla.redhat.com/show_bug.cgi?id=1962215


(cherry picked from commit 4ba89f25b8)
2021-06-18 10:18:27 -07:00
Matthias Clasen
024151fe2c treeviewcolumn: Clip header buttons
We don't want to overdraw when dragging a narrow column
around, and we also need the clipping to avoid picking
the wrong column, when a later column button overlaps
an earlier one.

Fixes: #4045
2021-06-18 10:17:49 -07:00
Matthias Clasen
d5bfcdc218 Merge branch 'fix-3793-4-2' into 'gtk-4-2'
gdksurface-win32.c: Fix up popup placement (fix issue #3793 for gtk-4-2)

See merge request GNOME/gtk!3675
2021-06-18 17:17:01 +00:00
Chun-wei Fan
90bd5a04fd gdksurface-win32.c: Fix up popup placement
If we are undergoing a surface move, just apply the next_layout anyways,
even if we are not moving a toplevel surface.

Update the way how we obtain the x and y coordinates of a surface, if it
is a toplevel, apply the x and y coordinates from the results from we
obtained the underlying Win32 HWND, as we did before.  But if it is a
popup, use gdk_win32_surface_get_geometry() to obtain the correct x and
y coordinates to place our popup surface.

Also correct how we compute the shadow dimensions, and the final popup
rectangle as we attempt to layout the popup surface, since GDK-Win32
keeps track of the shadow dimensions in system (unscaled) units, not GDK
units.

Fixes issue #3793.
2021-06-18 10:18:56 +08:00
Chun-wei Fan
16da71f1ce gdksurface-win32.c: Fix formatting for popup functions 2021-06-18 10:18:56 +08:00
Hugo Carvalho
807537dd5d Update Portuguese translation 2021-06-17 14:44:36 +00:00
Daniel Mustieles
b3fa74d1ac Updated Spanish translation 2021-06-15 13:04:34 +02:00
Daniel Mustieles
dcb620e103 Updated Spanish translation 2021-06-15 13:04:26 +02:00
Matthias Clasen
c573732ef1 Merge branch 'alatiera-gtk-4-2-patch-27279' into 'gtk-4-2'
NEWS: use the correct version for the header

See merge request GNOME/gtk!3657
2021-06-11 00:17:40 +00:00
Jordan Petridis
69e72341a2 NEWS: use the correct version for the header 2021-06-10 20:54:06 +00:00
Matthias Clasen
2a0a55ae97 Merge branch 'wip/carlosg/spin-button-swipe-gesture-4-2' into 'gtk-4-2'
spinbutton: Connect swipe gesture to the text entry

See merge request GNOME/gtk!3651
2021-06-08 17:07:53 +00:00
Carlos Garnacho
6df3296211 spinbutton: Mind the step in the swipe gesture
The swipe gesture forces values in the spin button that are
"impossible" according to the adjustment. This can break things
in creative ways.

Ensure the steps provided are always multiples of the adjustment
step value, and keep the remainder for further interaction.
2021-06-08 18:35:39 +02:00
Carlos Garnacho
a00d3b107e spinbutton: Connect swipe gesture to the text entry
In the GTK3 days, the spin button was an entry, with buttons on
top, and the swipe gesture affected the input on the entry bits.
Now the spin button is a container, so this gesture in the capture
phase applies to all contained children (incl. buttons).

Attach this gesture to the entry itself, so the buttons are left
outside this business. The gesture is still in the capture phase
in order to prevent text selection/edition/etc to happen.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4008
2021-06-08 18:35:38 +02:00
Matthias Clasen
4ffcc9aa26 Merge branch 'wip/carlosg/no-early-popup-ungrabs-4-2' into 'gtk-4-2'
gdk/wayland: Break only implicit grabs on wl_pointer.leave w/ pressed buttons (4.2)

See merge request GNOME/gtk!3640
2021-06-06 12:31:59 +00:00
Carlos Garnacho
e7fdb43499 gdk/wayland: Break only implicit grabs on wl_pointer.leave w/ pressed buttons
The releasing of grabs while a button is pressed (e.g. after starting dnd, or
dragging the window, or going to overview with a pressed button, etc...) was
generalized here in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1879.

However we shouldn't break all grabs here. In the case of grabbing popups,
compositors will still emit crossing events between client surfaces (e.g.
popping up and selecting a menu item via press-drag-release), breaking all
grabs here means inconsistent client state, that was
https://gitlab.gnome.org/GNOME/gtk/-/issues/2746.

That was fixed in mutter, by essentially making implicit grabs
owner_events=FALSE, however that breaks the mentioned use pattern entirely.
Mutter is changing this behavior back, so GTK should handle these crossing
events.

The grab that we are interested in breaking here is the implicit pointer
one. Popups will be dismissed via other means if the compositor says their
active grab needs breaking. This still leaves dnd/move/resize drags in
one place, while not allowing #2746 to happen with popups.
2021-06-05 18:29:39 +02:00
Matthias Clasen
03be0994ad Merge branch 'imcontext-ignore-more-4-2' into 'gtk-4-2'
imcontext: Ignore more keysyms

See merge request GNOME/gtk!3635
2021-06-05 02:39:51 +00:00