Matthias Clasen
f609d9cd59
Merge branch 'wip/baedert/for-master' into 'main'
...
gl: Imply that node_supports_transforms() means 2D transforms
Closes #4501
See merge request GNOME/gtk!4232
2021-12-13 12:55:04 +00:00
Matthias Clasen
3901c6ab91
Merge branch 'fix-x11-drag-icons' into 'main'
...
colorswatch: Make drag source optional
See merge request GNOME/gtk!4244
2021-12-13 03:39:48 +00:00
Matthias Clasen
da6f86bd79
colorbutton: No nested drag sources, please
...
This is causing trouble on X11.
2021-12-12 22:23:31 -05:00
Matthias Clasen
42fd499af4
dragicon: Make color icons work in X11
...
We need to disable the DND support in
GtkColorSwatch completely for this to work
in X11.
2021-12-12 22:09:28 -05:00
Matthias Clasen
de5b88477a
colorswatch: Make drag source optional
...
When using a colorswatch as a drag icon,
this can get in the way, so make it optional.
2021-12-12 22:09:16 -05:00
Matthias Clasen
cd49a7f9e9
Merge branch 'matthiasc/for-main' into 'main'
...
dragicon: Provide default icons for paintables
See merge request GNOME/gtk!4243
2021-12-13 02:43:48 +00:00
Matthias Clasen
df025fcb88
dragicon: Provide default icons for more types
...
Provide default icons for paintables and files.
This is easy to do, and makes sense.
fixup drag icon
2021-12-12 21:29:36 -05:00
Matthias Clasen
bbb1404bd3
dragicon: No events, please
...
We run into trouble on X11 if the widgets
in the drag icon have drop targets attached.
Prevent this by suppressing event delivery
to drag icons outright.
2021-12-12 21:28:34 -05:00
Benjamin Otte
af2a172197
Merge branch 'wip/otte/for-main' into 'main'
...
x11: Fix a deadlock in INCR transfers
See merge request GNOME/gtk!4242
2021-12-13 01:17:00 +00:00
Benjamin Otte
252b9fc39c
x11: Don't delete important signal handlers randomly
...
We finish the write to the output stream long after the stream has been
closed, so we want to keep the event handler around to do just that.
Instead, remove the handler on finalize.
2021-12-13 01:54:21 +01:00
Benjamin Otte
6fc5e04d7c
x11: Explicitly track end of stream
...
The OutputStream needs to write a 0 byte end of stream Property. We need
to track if that has been written, and we do that with that new
property.
We also use that property to always request flushes when the stream is
being closed, so that we don't wait for another flush() call.
2021-12-13 01:52:30 +01:00
Benjamin Otte
66f1fef083
x11: Explicitly close_async() the output stream
...
We need to be very careful when writing data, because if we aren't, sync
functions will be called on the output stream and X11 does not like that
at all.
2021-12-13 01:51:35 +01:00
Benjamin Otte
645d4807c3
x11: Keep a reference to the SelectionOutputStream while writing
...
This ensures close() isn't called from dispose() while we're still busy
writing.
In theory this should never happen, but in practice it just did.
2021-12-13 01:42:45 +01:00
Matthias Clasen
e2c360ada0
Merge branch 'clipboard-demo-improvements' into 'main'
...
inspector: Show more datatypes for the clipboard
See merge request GNOME/gtk!4241
2021-12-12 23:51:30 +00:00
Matthias Clasen
a463ead739
gdk: Drop some pointless code
...
There is no point in sorting png first when
registering (de)serializers, since we ignore
the png format now when walking the list.
2021-12-12 18:36:58 -05:00
Matthias Clasen
dbe5e57b8e
inspector: Show more datatypes for the clipboard
...
It is easy enough to show colors, files and pixbufs.
2021-12-12 18:36:58 -05:00
Matthias Clasen
99b99d7b23
Merge branch 'clipboard-demo-improvements' into 'main'
...
droptarget: Improve the docs
See merge request GNOME/gtk!4240
2021-12-12 21:42:31 +00:00
Matthias Clasen
787111a145
gtk-demo: Add dnd back to the clipboard demo
2021-12-12 16:27:36 -05:00
Matthias Clasen
9a872f059f
droptarget: Improve the docs
...
Add the signal connection to the example.
2021-12-12 16:27:36 -05:00
Matthias Clasen
eadc94e0a1
Merge branch 'clipboard-demo-improvements' into 'main'
...
gtk-demo: Small followup fixes
See merge request GNOME/gtk!4239
2021-12-12 18:58:07 +00:00
Matthias Clasen
f8855e892a
gtk-demo: Small followup fixes
...
Make image copy work remotely.
2021-12-12 13:41:24 -05:00
Matthias Clasen
27d05014e3
Merge branch 'new-clipboard-demo' into 'main'
...
docs: Small improvement
See merge request GNOME/gtk!4238
2021-12-12 18:30:27 +00:00
Matthias Clasen
ebb58b7cbc
gtk-demo: Rewrite the clipboard demo
...
This is more in line with the current clipboard
api, and shows handling colors and files.
2021-12-12 13:13:11 -05:00
Yuri Chornoivan
7f6895a4bb
Update Ukrainian translation
2021-12-12 17:18:14 +00:00
Hugo Carvalho
80ae4c1a69
Update Portuguese translation
2021-12-12 16:26:05 +00:00
Matthias Clasen
e72df9cd5f
docs: Small improvement
...
I could not find the attributes of the <binding>
element mentioned anywhere in the docs.
2021-12-12 09:03:11 -05:00
Piotr Drąg
80ba529fb9
Update POTFILES.in and POTFILES.skip
2021-12-12 13:54:41 +01:00
Timm Bäder
fd6b3ef5a0
gl: Linear gradients don't support 3d transforms
...
Add another helper similar to the one for transforms, but that only
works on 2d transforms.
Fixes #4501
2021-12-12 12:57:44 +01:00
Benjamin Otte
4cd0a39794
Merge branch 'wip/otte/inspector' into 'main'
...
inspector: Add a clipboard page
See merge request GNOME/gtk!4237
2021-12-11 22:46:30 +00:00
Benjamin Otte
5fbc510f94
contentformats: Make sure 0 elements means the array is NULL
...
Don't return arrays with 0 elements, return NULL.
2021-12-11 23:21:53 +01:00
Benjamin Otte
600ab5ba5f
inspector: Add a clipboard page
...
Shows all the formats supported by the clipboard (and primary clipboard)
and allows displaying them (by potentially downloading them)
2021-12-11 23:01:42 +01:00
Matthias Clasen
ae92181d02
Merge branch 'fix-textchild-abi' into 'main'
...
Restore the GtkTextchild abi
Closes #4531
See merge request GNOME/gtk!4236
2021-12-11 16:32:45 +00:00
Matthias Clasen
66910ed998
Restore the GtkTextchild abi
...
Move the new chars field to a private struct.
Fixes : #4531
2021-12-11 10:58:58 -05:00
Matthias Clasen
5371e4403e
Merge branch 'deprecate-device-source' into 'main'
...
Deprecate GdkDevice:source
See merge request GNOME/gtk!4207
2021-12-10 18:35:00 +00:00
Matthias Clasen
79375dd7dd
Merge branch 'fix-printer-enumeration' into 'main'
...
Fix dialog-less printing
Closes #4439
See merge request GNOME/gtk!4215
2021-12-10 18:01:59 +00:00
Matthias Clasen
6889609ab9
Merge branch 'bump-meson-dep' into 'main'
...
Require meson 0.59
Closes #4486
See merge request GNOME/gtk!4230
2021-12-10 18:00:50 +00:00
Matthias Clasen
0bf87281e0
Merge branch 'missing-since-tag' into 'main'
...
Add a missing since tag
See merge request GNOME/gtk!4229
2021-12-10 17:15:32 +00:00
Matthias Clasen
bc7bed7517
ci: Use meson 0.59 for msvc
2021-12-10 12:14:04 -05:00
Matthias Clasen
cfac6fd752
ci: Use meson 0.59 on macos
2021-12-10 12:12:52 -05:00
Matthias Clasen
97c09c827b
Fix the targets variable in pc files
...
This is meant as a space-separated list of
string, so escaping the spaces is uncalled
for.
Fixes : #4486
2021-12-10 11:36:07 -05:00
Matthias Clasen
0370672886
Require meson 0.59
...
This is needed to fix a regression in our pc file
generation.
2021-12-10 11:34:23 -05:00
Matthias Clasen
2d062fedd9
Add a missing since tag
...
gtk_text_child_anchor_new_with_replacement was
recently added.
2021-12-10 11:26:46 -05:00
Matthias Clasen
c6a68f3de2
Fix dialog-less printing
...
We were sometimes ending printer enumeration prematurely,
and the code was confused about the meaning of found_printer.
The new setup follows these rules:
- We *only* end the search prematurely if found_printer
is set, which indicates that we found the right printer
- We *always* call find_printer_idle exactly once, and
make it return less than perfect matches like the
default printer, or the first printer we found
Fixes : #4439
2021-12-10 11:26:23 -05:00
Matthias Clasen
d6181b2335
Merge branch 'wip/jimmac/unfocused-selection-dejavu' into 'main'
...
Revert "styling: Have unfocused selections"
Closes #4393
See merge request GNOME/gtk!4228
2021-12-10 13:17:32 +00:00
Jakub Steiner
d74e62886c
selections: have unfocused state
...
- text selections for unfocused elements - textview, label, entry,
spinbutton
fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4393
2021-12-10 12:00:12 +01:00
Jakub Steiner
d8505f09eb
Revert "styling: Have unfocused selections"
...
This reverts commit 96f63a6bf3
.
2021-12-10 11:36:10 +01:00
Matthias Clasen
935c6aade0
Merge branch 'bilelmoussaoui/header' into 'main'
...
gdk: drop removed method from the header
See merge request GNOME/gtk!4225
2021-12-09 23:50:21 +00:00
Matthias Clasen
a35c35f849
Merge branch 'wip/chergert/fix-macos-crash' into 'main'
...
macos: fix crash in imcontextquartz
See merge request GNOME/gtk!4226
2021-12-09 23:49:39 +00:00
Bilal Elmoussaoui
57518a2bb4
gdk: drop removed method from the header
2021-12-09 20:29:17 +00:00
Christian Hergert
99a8202015
macos: fix crash in imcontextquartz
2021-12-09 12:26:33 -08:00