Commit Graph

77583 Commits

Author SHA1 Message Date
Kukuh Syafaat
f83514c639 Update Indonesian translation 2024-02-06 04:11:30 +00:00
Yaron Shahrabani
24b0d08249 Update Hebrew translation 2024-02-02 08:52:34 +00:00
Aurimas Černius
3dad92b380 Update Lithuanian translation 2024-01-30 20:51:03 +00:00
Sabri Ünal
a345df255d Update Turkish translation 2024-01-22 12:40:12 +00:00
Alexandre Franke
92862dfeec Update French translation 2024-01-22 12:09:15 +00:00
Artur S0
5a021e229f Update Russian translation 2024-01-20 19:01:53 +00:00
Florentina Mușat
a48424c249 Update Romanian translation 2024-01-20 18:31:18 +00:00
Danial Behzadi
466da30208 Update Persian translation 2024-01-20 11:25:27 +00:00
Danial Behzadi
58425405d2 Update Persian translation 2024-01-20 11:13:32 +00:00
Yuri Chornoivan
af984f2503 Update Ukrainian translation 2024-01-18 17:42:57 +00:00
Anders Jonsson
b94a3eeb1c Update Swedish translation 2024-01-18 07:13:55 +00:00
Ekaterine Papava
26ff449343 Update Georgian translation 2024-01-18 06:09:41 +00:00
Matthias Clasen
750c2ff7fb Post-release version bump 2024-01-17 23:05:21 -05:00
Matthias Clasen
48f6ffad7f 4.12.5 4.12.5 2024-01-17 22:50:47 -05:00
Benjamin Otte
508970a7fa tests: Fix gio API usage
Related: glib!3261
2024-01-17 22:32:14 -05:00
Florian Müllner
9d57e9bce4 docs: Update link to GitLab documentation
The original link no longer works, so update the reference to
point to the currently correct location.
2024-01-17 22:31:29 -05:00
Guido Günther
616a685818 stack: Add automatic cleanup for GtkStackPage
Useful when iterating over the pages via g_list_model_get_item ().
2024-01-17 22:31:05 -05:00
Matthias Clasen
a09e6f4f5c glarea: Add some details to the docs
Mention that the rendering is integrated into the GTK scene graph
as a texture and that the initial framebuffer contents are
transparent.

Fixes: #6317
2024-01-17 22:30:23 -05:00
Christian Hergert
1db48174b4 texthistory: fix potential NULL dereference
Fixes #6308
2024-01-17 22:26:14 -05:00
Mohammed Sadiq
67690f69e9 shortcutswindow: Reduce default width of search entry
Reduce the default width of search entry so that it fits on smaller
screens (ie, screens having 360px or less width).  Also, set max width
to the old value of 40, so that the search entry will have the same
old size if window width permits.

This commit won't make any difference on larger screens.
2024-01-17 22:25:59 -05:00
Matthias Clasen
9ba39ff7aa dropdown: Fix initial checkmark
When the ::bind signal is emitted, the list item may not be added
to the list view yet, so we can't consult the widget hierarchy at
that point to decide whether to show or hide the icon. List for
notify::root instead.

Fixes: #6305
2024-01-17 22:25:48 -05:00
Matthias Clasen
3420a12104 Annotate gtk_ordering_from_cmpfunc as skip
We do extra work here to make the introspection scanner pick up
the docs for the static inline function, but that doesn't make the
function actually work in language bindings, so mark it as skip.

Fixes: #6298
2024-01-17 22:25:29 -05:00
Benjamin Otte
cbb0cbb5bd rendernode: Allocate right amount of memory
asan randomly failed when this almost correct code wasn't quite correct.

Hopefully this is the correct incantation to compute the size.

Related: glib#205
2024-01-17 22:24:57 -05:00
Benjamin Otte
a302672ca8 rendernode: Fix a memleak 2024-01-17 22:24:34 -05:00
Benjamin Otte
6e93cd8803 gdkpng: Make the png loader safer against overflows
Load images that result in a texture >4GB in size.

And now let me keep playing with my 60k x 60k image, thanks.
I'm trying to OOM my GPU.
2024-01-17 22:24:12 -05:00
Benjamin Otte
2223abd432 roundedrect: Fix an intersection cornercase
These 2 rectangles used to intersect fine:
  0 0 50 50 / 50 0
  0 0 50 50 / 0 50
But the computed result was:
  0 0 50 50 / 50
which is not a valid rectangle, because the corners overlap.

Make sure such rectangles return NOT_REPRESENTABLE.

The above rectangle has been added to the testsuite.
2024-01-17 22:22:44 -05:00
Emmanuele Bassi
58861ef18e docs: Clarify behaviour of GtkScrolledWindow child accessors
Right now, it's mentioned only in the class description of
GtkScrolledWindow that the accessors of the child property don't
necessarily roundtrip.

Let's make it more clear by expanding the documentation of the setter,
getter, and property.

See: #6275
2024-01-17 22:20:02 -05:00
Emmanuele Bassi
fa817ae092 Fix typo in GtkAspectFrame.yalign accessor
Copy-paste error.

Fixes: #6273
2024-01-17 22:19:26 -05:00
Carlos Garnacho
9c804b3fd7 gtk-demo: Fix typo
Close the quotes in alert dialog message.
2024-01-17 22:18:15 -05:00
FeRD (Frank Dana)
db0a97f374 Docs: Fix unfenced HTML tag in GtkLabel docs 2024-01-17 22:17:17 -05:00
Emmanuele Bassi
a78439a42c Add fallback string for empty inhibit reason
The public gtk_application_inhibit() API allows a NULL reason argument,
and we have a fallback in place when going through the session manager
proxy; when using the inhibit D-Bus API directly, though, we're just
passing a potentially NULL value to g_variant_new_string(), which will
rightfully complain.
2024-01-17 22:17:05 -05:00
g.willems
0347ea896b gtktexthistory: allow set modified in irreversible action
Allow setting the modified flag, but skip propagating the history state update
as it will be done by gtk_text_history_end_irreversible_action().

Fixes #6236
Closes #6236
2024-01-17 22:15:48 -05:00
Matthias Clasen
cf0d017682 Use O_CLOEXEC instead of FD_CLOEXEC
GLib is complaining vocally about this.
2024-01-17 22:15:25 -05:00
Matthias Clasen
9ad7f3cd60 css: Fix opacity handling
We were using the invert value for opacity.
2024-01-17 22:14:45 -05:00
Matthias Clasen
9afe65bc7f wayland: Be more careful when loading cursors
Make sure we don't access the cursor_images array out of bounds.

Related: #6234
2024-01-17 22:14:35 -05:00
Val Och
c1b9a575b7 GtkFontDialog: fix annotation for choose_font_and_features_finish
Parameters in question have callee-allocated semantics.
2024-01-17 22:14:21 -05:00
Emilio Cobos Álvarez
6854078338 [gtk4] gtkopenuriportal: Fix portal close signal.
Same fix. The other instance of this pattern in gtkapplication-dbus.c
does it right.
2024-01-17 22:13:27 -05:00
Emilio Cobos Álvarez
a64c2ed6f0 [gtk4] GtkFileChooserNative: Fix portal close.
This makes closing a portal file chooser work.

Fixes the GTK4 bits of #6225.
2024-01-17 22:13:20 -05:00
Benjamin Otte
a0c632b0d3 columnview: Make sure cells disconnect from their column
When a cell is removed from the columnview, we need to make sure it s
not just removed from the cell (via unset_parent()) but also from the
column.

Previously, we were doing this from dispose(), but this is broken
because dispose() only runs when the refcount goes to zero. But if some
code still has a reference for whatever reason, this won't happen.

So now we do it explicitly together with unset_parent().
2024-01-17 22:09:37 -05:00
Matthias Clasen
38b14c8b0b Merge branch 'fix-wgl-leak-backport-to-gtk-4-12' into 'gtk-4-12'
GdkWin32: Do not create multiple WGL contexts for the dummy window [4.12]

See merge request GNOME/gtk!6697
2024-01-18 03:06:35 +00:00
Ngọc Quân Trần
cbc44e202a Update Vietnamese translation 2024-01-13 07:19:18 +00:00
Emmanuele Bassi
081b8af597 Merge branch 'ebassi/doc-link-fixes-stable' into 'gtk-4-12'
Backport doc fixes from main

See merge request GNOME/gtk!6740
2024-01-12 13:16:41 +00:00
Emmanuele Bassi
39f7f8615b docs: Fix link to GtkSnapshot.restore() 2024-01-12 12:50:51 +00:00
Emmanuele Bassi
d310c9dd92 docs: Fix link to GtkLabel.set_mnemonic_widget() 2024-01-12 12:50:37 +00:00
Matthias Clasen
dbe1804c3a docs: Fix: gdk->gtk and gdk->gsk links
gi-docgen can only generate links for dependencies, so we have
to manually expand to a relative url here.

fixup
2024-01-12 12:46:03 +00:00
Carlos Garnacho
cbf471436a Merge branch 'gtk-4-12-backports' into 'gtk-4-12'
[4.12 backport] gdk/wayland: Reset cursor_is_default on proximity out

See merge request GNOME/gtk!6738
2024-01-12 11:16:45 +00:00
Peter Hutterer
5216670901 gdk/wayland: Reset cursor_is_default on proximity out
For tablet tools if we have NULL cursor, we use the default cursor
instead. This provides us with a tablet cursor when an application never
sets the cursor.

However, on proximity out when we clear said cursor we also
need to toggle off cursor_is_default, otherwise on the next proximity in
we assume we already have a cursor and never update it again.

This leads to an invisible cursor over GTK application when the tablet
tool is brought into proximity over the widget (but not when moving into
the widget from the outside).

Closes: #6312
(cherry picked from commit 04870fc1a1)
2024-01-12 11:57:56 +10:00
Matej Urbančič
274f485248 Update Slovenian translation 2023-12-27 20:44:50 +00:00
Luca Bacci
0345e80770 GdkWin32: Do not create multiple WGL contexts for the dummy window
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6285
2023-12-27 16:31:34 +01:00
Asier Sarasua Garmendia
5ccbcbbec8 Update Basque translation 2023-12-24 07:29:58 +00:00