Garrett Regier
1bfd0e5e38
builder: Use a GQueue in precompile
...
This avoids g_list_last() and
embeds the GList link in the RecordDataTree.
2021-12-13 23:44:02 -05:00
Garrett Regier
b962d37f79
builder: Use a reasonable default string size in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
c6ecf02a07
builder: Embed text length in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
8b7d4b423c
builder: Combine attribute name and value allocations
2021-12-13 23:44:02 -05:00
Garrett Regier
83dc126565
builder: Use a string chunk for precompile
...
Also use an explicit length and avoid g_strndup().
2021-12-13 23:44:02 -05:00
Garrett Regier
f2d3d7e710
builder: Avoid double string lookup in precompile
2021-12-13 23:44:02 -05:00
Matthias Clasen
f991428cb9
builder: Use GMarkup properly
...
We must call end_parse to ensure we get errors
for incomplete documents.
2021-12-13 23:42:47 -05:00
Chun-wei Fan
e2b4108377
Revert "gtk/meson.build: Fix linking on Visual Studio 2013"
...
We now require a Pango version that requires Visual Studio 2015 or later to
build, and non-UCRT-based (VS2013) binaries may not bode well with
UCRT-based binaries (VS2015+). Drop the support for VS2013 as a result.
This reverts commit e208e0e07886248d4d86118aa5591c9882f0ed5c.
2021-12-14 10:29:28 +08:00
Matthias Clasen
c9cf7b1e08
Merge branch 'matthiasc/for-main' into 'main'
...
tiff loader: Catch more errors
See merge request GNOME/gtk!4248
2021-12-14 00:31:49 +00:00
Matthias Clasen
4d865cd7ba
tiff loader: Catch more errors
...
tiff_open_read may fail, and we should not crash
in that case but return an error.
2021-12-13 17:54:11 -05:00
Matthias Clasen
a55458a84a
Merge branch 'builder-tool-fixes' into 'main'
...
builderparser: Be more robust
See merge request GNOME/gtk!4247
2021-12-13 21:29:48 +00:00
Matthias Clasen
66d8631c23
buildertool: Be more robust
...
Don't pass a NULL string to gtk_builder_value_from_string.
2021-12-13 15:09:48 -05:00
Matthias Clasen
5c1ad88137
builderparser: Be more robust
...
If a document contains no useful content,
just say so instead of crashing.
2021-12-13 15:09:48 -05:00
Matthias Clasen
e230c9c6f0
Merge branch 'builder-tool-fixes' into 'main'
...
buildertool: Fix a possible crash
See merge request GNOME/gtk!4246
2021-12-13 19:54:56 +00:00
Matthias Clasen
6d24a2c942
buildertool: Be more robust
...
A lot of crashes in simplify can be avoided
if get_class_name does not return NULL.
2021-12-13 14:33:19 -05:00
Matthias Clasen
5222dc0cd1
buildertool: Fix a possible crash
...
We need to call g_markup_parse_context_end_parse
to catch incomplete documents that we might not
handle well later.
2021-12-13 13:52:50 -05:00
Benjamin Otte
02c484e844
label: Fix docs
2021-12-13 18:23:32 +01:00
Benjamin Otte
5face79cd0
label: word-char wrapping should word-wrap for natural size
...
Testcase added
Fixes #4535
2021-12-13 14:49:39 +01:00
Yuri Chornoivan
51a72a9c53
Update Ukrainian translation
2021-12-13 13:16:42 +00:00
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