Matthias Clasen
6bb2e5625a
inspector: Remove debug spew
2021-12-14 22:03:52 -05:00
Matthias Clasen
d57a5dffa1
inspector: Add event recording
...
Make the recorder also keep track of events,
and show them in some detail.
2021-12-14 22:01:40 -05:00
Matthias Clasen
1028ca0841
inspector: More tweaks to the recorder
...
Put the two left columns in a stack, and add
an empty page there. This will let us add
other recording types in the future, with
their own pages.
2021-12-14 19:51:35 -05:00
Matthias Clasen
6dbe6b42c2
inspector: Tweaks to the recorder
...
Don't show the profiler data in the frame list,
instead show timestamps there.
2021-12-14 19:34:53 -05:00
Matthias Clasen
7611c3ea03
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Use a listview in the recorder
See merge request GNOME/gtk!4255
2021-12-15 00:06:11 +00:00
Christian Hergert
2fa9f934b6
a11y: return -1 if parent is NULL
2021-12-14 21:18:13 +01:00
Matthias Clasen
e9fd7b7ed6
inspector: Use a listview in the recorder
...
Its the awesome new list widget, lets use it!
2021-12-14 15:10:11 -05:00
Matthias Clasen
075e954b71
Merge branch 'ebassi/issue-4543' into 'main'
...
Add a boxed GType for GtkBitsetIter
Closes #4543
See merge request GNOME/gtk!4253
2021-12-14 18:09:01 +00:00
Emmanuele Bassi
3f7122b3d2
Add a boxed GType for GtkBitsetIter
...
This way language bindings have a chance at managing the memory of
GtkBitset iterators.
Fixes : #4543
2021-12-14 15:51:13 +00:00
Hugo Carvalho
35251c6d9c
Update Portuguese translation
2021-12-14 14:20:25 +00:00
Hugo Carvalho
173594365c
Update Portuguese translation
2021-12-14 14:03:49 +00:00
Yuri Chornoivan
2fc44fb27d
Update Ukrainian translation
2021-12-14 13:21:33 +00:00
Aurimas Černius
0264630c90
Updated Lithuanian translation
2021-12-14 13:41:59 +02:00
Matthias Clasen
208769f70f
Merge branch 'optimize-precompile' into 'main'
...
builder: Use a string chunk for precompile
See merge request GNOME/gtk!4233
2021-12-14 06:34:49 +00:00
Matthias Clasen
c5bffb9fb5
builder: Drop empty text chunks when precompiling
...
These don't add any value either.
2021-12-14 01:21:06 -05:00
Matthias Clasen
c7afa5452b
builder: Drop irrelevant whitespace in precompile
...
Drop text nodes that won't contribute to the end result.
This gets rid of a lot of text nodes in the replay.
2021-12-14 00:35:35 -05:00
Matthias Clasen
c7c6e83779
Merge branch 'matthiasc/for-main' into 'main'
...
builder: Use GMarkup properly
See merge request GNOME/gtk!4250
2021-12-14 04:58:06 +00:00
Garrett Regier
fcb6adaaaa
builder: Use g_slice_free_chain() for strings in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
9c12b58e32
builder: Remove root special case from precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
6c8b505f93
builder: Avoid g_hash_table_get_values() in precompile
...
Embed the GList link in the RecordDataString.
2021-12-13 23:44:02 -05:00
Garrett Regier
8b228e7471
builder: Use a flexible array for attributes in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
4ce07f41ca
builder: Reduce memory usage in precompile
...
Split the Element and Text nodes into separate structures.
2021-12-13 23:44:02 -05:00
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
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
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