Matthias Clasen
f779832861
Tweak profiling strings
...
Capitalize our mark names, and use GTK as category.
The justification is: it looks better in sysprof.
2024-01-21 14:02:08 -05:00
Matthias Clasen
a482cb5d25
Merge branch 'matthiasc/for-main' into 'main'
...
gl: Fix text carets going missing on NVidia
Closes #6348
See merge request GNOME/gtk!6795
2024-01-21 14:42:54 +00:00
Matthias Clasen
f781039aa2
gsk: Add a testcase for underlines and carets
...
The gl renderer has an optimization where it uses the glyph atlas
to render color nodes that show up in the middle of text (e.g. for
underlines and carets). This adds a simple test for that scenario,
which hits this codepath.
2024-01-21 09:29:57 -05:00
Matthias Clasen
6e8a70ada1
Drop gdk_gl_context_has_bgra
...
This private api turned out to be more problematic than useful,
and it isn't used anymore.
2024-01-21 08:29:33 -05:00
Matthias Clasen
c43294c837
gl: Fix text carets going missing on NVidia
...
Use the same logic for uploading the 'corner pixel' that we use
for uploading glyphs, since that works.
Fixes : #6348
2024-01-21 08:22:47 -05:00
Matthias Clasen
761995ce3c
Merge branch 'bilelmoussaoui/file-fixes' into 'main'
...
gtk: Allow a nullable file in FileChooser.set_current_folder
See merge request GNOME/gtk!6794
2024-01-21 12:01:33 +00:00
Bilal Elmoussaoui
d164dd3146
gtk: Allow a nullable file in FileChooser.set_current_folder
...
To match the annotation
2024-01-21 09:36:30 +01:00
Matthias Clasen
4b9b55ab17
Merge branch 'gl-fix-big-glyphs' into 'main'
...
gl: Avoid a use-after-free
Closes #6347
See merge request GNOME/gtk!6791
2024-01-20 19:16:56 +00:00
Artur S0
6e9767c7c1
Update Russian translation
2024-01-20 18:59:41 +00:00
Matthias Clasen
b2f783b70b
gl: Avoid a use-after-free
...
This only happens with big, non-atlased glyphs, so it is rare, but
it gets triggered by the Masking demo in gtk4-demo.
Fixes : #6347
2024-01-20 13:33:54 -05:00
Matthias Clasen
5a68426c9a
Merge branch 'bilelmoussaoui/gi-stuff' into 'main'
...
gi/docs: Document GtkGraphicsOffloadEnabled
See merge request GNOME/gtk!6790
2024-01-20 17:48:21 +00:00
Bilal Elmoussaoui
32d77fa874
gi/docs: Document GtkGraphicsOffloadEnabled
...
Mostly to add since annotation
2024-01-20 17:18:26 +00:00
Matthias Clasen
8d00af6351
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Inline some more rect functions
See merge request GNOME/gtk!6789
2024-01-20 17:11:48 +00:00
Matthias Clasen
a91a0720f5
gl: Consistently use float apis
2024-01-20 11:52:42 -05:00
Matthias Clasen
f01208ad94
gpu: Consistently use ceilf
...
There was a mix of ceil() and ceilf() calls here, but the arguments
are always floats, so use ceilf() throughout.
2024-01-20 11:33:59 -05:00
Matthias Clasen
56b955f819
roundedrect: Use fabsf
...
The arguments are floats.
2024-01-20 11:33:59 -05:00
Matthias Clasen
0d7761269c
gpu: Use gsk_rect_scale
2024-01-20 11:33:59 -05:00
Matthias Clasen
9ebaafa2af
gsk: Inline some more rect functions
...
When we use graphene_rect_scale, the rect is always normalized,
so we can avoid some overhead here.
2024-01-20 11:33:59 -05:00
Matthias Clasen
25ea6beb39
inspector: Fix a typo
2024-01-20 09:38:53 -05:00
Matthias Clasen
905bb2c6fd
Merge branch 'matthiasc/for-main' into 'main'
...
gpu: Cosmetics
See merge request GNOME/gtk!6788
2024-01-20 13:51:43 +00:00
Matthias Clasen
b4b7e9b040
gpu: Fix up gc
...
Make the gc loop free the the right item.
2024-01-20 08:04:43 -05:00
Matthias Clasen
c3fcf0f7b0
gpu: Plug a memory leak
...
This looks like just a leftover line.
2024-01-20 08:02:20 -05:00
Matthias Clasen
60fc48e71f
gpu: Cosmetics
...
s/timestsamp/timestamp/
2024-01-20 08:01:59 -05:00
Danial Behzadi
01d9886eea
Update Persian translation
2024-01-20 11:22:43 +00:00
Danial Behzadi
a97231c8bf
Update Persian translation
...
(cherry picked from commit 58425405d2
)
2024-01-20 11:13:44 +00:00
Matthias Clasen
8ac8a027b2
Merge branch 'wip/no-seat' into 'main'
...
Fix possible crashers if no seats are available
See merge request GNOME/gtk!6787
2024-01-20 03:30:12 +00:00
Carlos Garnacho
070f3a61ac
gdk/wayland: Bail out on titlebar gestures with no seat
...
This API might be called programmatically at a time that there's no
seats, handle this situation by returning FALSE in the GDK API.
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/6335
2024-01-20 01:27:27 +01:00
Carlos Garnacho
022347fa85
gdk/wayland: Avoid activation paths with no seats
...
When a toplevel is focused programmatically and there is no
underlying seat, we cannot attempt to focus it with no
focus to be obtained, nor serials serials to use.
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/6335
2024-01-20 01:27:27 +01:00
Matthias Clasen
ebb6076aca
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Update logging tab
See merge request GNOME/gtk!6783
2024-01-19 16:46:06 +00:00
Matthias Clasen
7b66bc45aa
Cosmetics
...
Add some vim modelines.
2024-01-19 09:26:32 -05:00
Matthias Clasen
698aa7c0f3
inspector: Update logging tab
...
The verbose flag was missing in the gsk section.
2024-01-19 09:26:32 -05:00
Matthias Clasen
70699efc71
Merge branch 'matthiasc/for-main' into 'main'
...
Automate profile setting
See merge request GNOME/gtk!6781
2024-01-19 03:49:58 +00:00
Matthias Clasen
cebc95f253
Automate profile setting
...
We can derive whether we are build a developement snapshot or
a stable version from the minor version number. So do that.
This way, we'll get the devel profile selected in the nightly
SDK, which will make the commit sha appear in the inspector,
which is useful to determine what nightly users are testing.
2024-01-18 21:26:39 -05:00
Matthias Clasen
f9c6bd125b
Merge branch 'inspector-git-sha' into 'main'
...
build: Move demo header generation
See merge request GNOME/gtk!6780
2024-01-19 01:41:40 +00:00
Matthias Clasen
4733ca193b
inspector: Show git sha for the build
2024-01-18 20:22:00 -05:00
Matthias Clasen
c7b345f73e
build: Move and rename demo_conf.h header
...
We want to use the same header in the inspector, so move it to
the toplevel. And since it is no longer for demos only, rename
it to profile_conf.h, and also rename the build option back
to profile.
2024-01-18 20:20:58 -05:00
Matthias Clasen
1fbc61f2cb
Merge branch 'static_text_widgets_are_not_special' into 'main'
...
a11y: Remove special handling of accessible names for static text widgets
See merge request GNOME/gtk!6776
2024-01-18 16:01:29 +00:00
Matthias Clasen
565694ede5
Merge branch 'wip/chergert/fix-expression-weak-ref-uaf' into 'main'
...
expression: use indirection to safely finalize object expression
See merge request GNOME/gtk!6778
2024-01-18 16:00:55 +00:00
Christian Hergert
0df03b054d
expression: guard against UAF with indirection
...
When using g_object_weak_ref(), it is important that you can discover
weather or not it is safe to call g_object_weak_unref(). That is
problematic if you use a naked pointer to structure. Additionally,
if a GWeakRef is used, and things are not cleaned up carefully,
GObject itself will try to write to it. So ensuring that the GWeakRef
is cleared safely before the owning struct is finalized is paramount.
That is difficult if you are unsure wheather or not your weak_ref
callback has been called.
This introduces WeakRefGuard which is an indirection pointer that is
cleared on the first unref. There are only ever two references. When
the owning struct is finalized or the weak ref callback is called, an
unref will occur and the guard will clear the data pointer.
2024-01-17 19:25:31 -08:00
Christian Hergert
73d01d3130
expression: release target if evaulation fails
...
Related #6341
2024-01-17 19:25:00 -08:00
Matthias Clasen
80f3357117
Merge branch 'dboles/Notebook-DropTarget-GTK4' into 'main'
...
Notebook: Update doc on how to accept dropped tabs
See merge request GNOME/gtk!6450
2024-01-18 02:28:18 +00:00
Lukáš Tyrychtr
d5b34aecdd
a11y: Remove special handling of accessible names for static text widgets
...
By doing this, we gain the capability to send notifications when their
accessible names change. Also, it simplifies the accessible name
generation logic.
2024-01-17 12:49:38 +01:00
Matthias Clasen
d16d2135e6
Merge branch 'demos-fix-commit-sha' into 'main'
...
Flatpak demos fix missing commit sha
See merge request GNOME/gtk!6774
2024-01-17 02:51:35 +00:00
Matthias Clasen
53b52abd30
Merge branch 'matthiasc/for-main' into 'main'
...
Shrink the repeat-repeats tests
See merge request GNOME/gtk!6775
2024-01-17 02:40:22 +00:00
Matthias Clasen
e55e9e3b36
Shrink the repeat-repeats tests
...
This was triggering timeouts in ci.
2024-01-16 20:58:02 -05:00
Matthias Clasen
9f9cea219f
Merge branch 'dnd-cursor-names' into 'main'
...
dnd: Use standard cursor names
Closes #6337
See merge request GNOME/gtk!6770
2024-01-17 01:33:41 +00:00
Matthias Clasen
dbee1a8160
dnd: Use standard cursor names
...
The css spec doesn't cover the fringe 'ask' feature of DND, but
apart from that, we should use the names in the spec.
Fixes : #6337
2024-01-16 19:45:53 -05:00
Matthias Clasen
133cd87bdf
Merge branch 'ebassi/doc-fixes' into 'main'
...
docs: Clean up the note on nVidia on Windows
See merge request GNOME/gtk!6773
2024-01-17 00:20:35 +00:00
Benjamin Otte
9f8e84cb60
Merge branch 'wip/otte/for-main' into 'main'
...
gl: BGRA formats need a different internal format
Closes #6333
See merge request GNOME/gtk!6772
2024-01-16 21:21:17 +00:00
Emmanuele Bassi
b8057b088e
docs: Clean up the note on nVidia on Windows
...
Turn the URL to the nVidia forums into an actual link, and put the whole
paragraph into an aside.
2024-01-16 20:14:21 +00:00