Alexander Shopov
b549a52f54
Update Bulgarian translation
...
(cherry picked from commit f15aa82eaf
)
2023-04-07 16:27:04 +00:00
Matthias Clasen
6c97667be1
inspector: Be more careful
...
Tweak the variant-editor code to handle some
cases more explicitly.
2023-04-07 09:16:21 -04:00
Matthias Clasen
ce597cf034
inspector: Plug a memory leak
2023-04-07 08:55:40 -04:00
Matthias Clasen
cdcb55da58
inspector: Be safer when handling actions
...
Those query apis are serious about not ignoring
their return value, and may not set their our
arguments to anything if they return FALSE.
2023-04-07 08:52:51 -04:00
Matthias Clasen
b8d02c9398
actionmuxer: Make the compiler warn
...
Warn when the boolean return isn't used, since we
may not initialize the out arguments in the FALSE
case (see the previous commits).
2023-04-07 08:03:46 -04:00
Matthias Clasen
d97514ec67
textview: Handle a return value
2023-04-07 08:03:46 -04:00
Matthias Clasen
a96df553e0
Merge branch '5729_fix_inspector_crash' into 'main'
...
inspector: fix crash caused by uninitialized GVariant
Closes #5729
See merge request GNOME/gtk!5799
2023-04-07 12:01:22 +00:00
Nelson Benítez León
ed8148bd07
inspector: fix crash caused by uninitialized GVariant
...
we were not checking the return gboolean of
gtk_action_muxer_query_action() which was
returning FALSE for the crash case, meaning
it didn't set the passed in GVariant, but
we were still using it as it was non-null.
Fixes #5729
2023-04-06 20:05:53 -04:00
Matthias Clasen
e0dbc6a0ee
Merge branch 'media-controls' into 'main'
...
mediacontrols: Add tooltip text to play button
See merge request GNOME/gtk!5794
2023-04-06 17:59:54 +00:00
Matthias Clasen
fb91418edd
Merge branch 'alert_dialog_role_mapping_fix' into 'main'
...
a11y: Map GTK_ACCESSIBLE_ROLE_ALERT_DIALOG to ATSPI_ROLE_ALERT
See merge request GNOME/gtk!5796
2023-04-06 17:59:05 +00:00
Matthias Clasen
154ff6fe03
Merge branch 'matthiasc/for-main' into 'main'
...
glarea: Fix property notification
See merge request GNOME/gtk!5797
2023-04-06 15:06:26 +00:00
Matthias Clasen
a65dc036b1
glarea: Fix property notification
...
This was broken in 9c26262e3e
.
2023-04-06 10:37:58 -04:00
Maximiliano Sandoval R
62865bc52d
mediacontrols: Add tooltip text to play button
...
This makes the button accessible.
2023-04-06 16:16:41 +02:00
Lukáš Tyrychtr
19b280be4c
a11y: Map GTK_ACCESSIBLE_ROLE_ALERT_DIALOG to ATSPI_ROLE_ALERT
...
By doing this, alert dialogs will be read automatically, or at least
they should be, because a screen reader know that these are special.
2023-04-06 13:55:16 +02:00
Matthias Clasen
9608e4e503
Merge branch 'wip/exalm/centerlayout-shrink' into 'main'
...
centerlayout/box: Add :shrink-center-last
See merge request GNOME/gtk!5790
2023-04-05 22:23:19 +00:00
Matthias Clasen
1859193c5d
Merge branch 'wip/exalm/shortcuts' into 'main'
...
Add style classes to standard dialogs
See merge request GNOME/gtk!5791
2023-04-05 22:05:33 +00:00
Alexander Mikhaylenko
9138d91c1c
pagesetupunixdialog: Add "pagesetup" style class
2023-04-06 00:58:38 +04:00
Alexander Mikhaylenko
f1dff40391
fontchooserdialog: Add "fontchooser" style class
2023-04-06 00:58:38 +04:00
Alexander Mikhaylenko
fff98d94f9
filechooserdialog: Add "filechooser" style class
2023-04-06 00:58:38 +04:00
Alexander Mikhaylenko
1d0f0d4229
colorchooserdialog: Add "colorchooser" style class
2023-04-06 00:58:38 +04:00
Alexander Mikhaylenko
80a11b1a1c
appchooserdialog: Add "appchooser" style class
2023-04-06 00:58:38 +04:00
Alexander Mikhaylenko
399ee3db3f
shortcutswindow: Add "shortcuts" style class
2023-04-06 00:58:38 +04:00
Alexander Mikhaylenko
c40fa8db98
centerbox: Expose GtkCenterLayout:shrink-center-last
2023-04-05 16:15:49 +04:00
Alexander Mikhaylenko
8fd9de23bb
centerlayout: Add :shrink-center-last
...
Allow to prioritize start and end children and have them keep their natural
size instead of center child if possible.
See https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5552#note_1708864
2023-04-05 16:15:49 +04:00
Matthias Clasen
450490bcf6
Merge branch 'ebassi/listbox-dispose' into 'main'
...
listbox: Unbind the model before removing children
See merge request GNOME/gtk!5789
2023-04-05 02:35:20 +00:00
Emmanuele Bassi
fb3f817f69
listbox: Unbind the model before removing children
...
Calling gtk_list_box_remove_all() is a no-op with a bound model; after
the introduction of the remove_all() method in 49e56fc7
, we were left
with row widgets after the dispose() call chained up.
We could restore the explicit unparenting inside dispose() instead of
calling remove_all(), but since the bound list model is provided by the
user of GtkListBox, it's more appropriate to unbind it in the dispose()
implementation, to avoid any potential reference cycle (especially in
higher level languages that have no explicit reference acquisition).
We clean up the bound model, and its associated state, if any; and then
we remove all the row widgets that are left.
2023-04-04 13:47:36 +01:00
Matthias Clasen
6a2f715250
Merge branch 'glarea-allowed-apis' into 'main'
...
glarea: Add GtkGLArea::allowed-apis
Closes #5330
See merge request GNOME/gtk!5786
2023-04-04 03:14:21 +00:00
Matthias Clasen
b1f0ca7dc4
gtk-demo: Update the GLArea examples
2023-04-03 23:05:38 -04:00
Matthias Clasen
9c26262e3e
glarea: Add GtkGLArea::allowed-apis
...
Add api that mirrors the new GdkGLContext api
for selecting OpenGL variants, and deprecate
the old use_es api.
Fixes : #5330
2023-04-03 23:05:38 -04:00
Matthias Clasen
7723045e9a
Merge branch 'matthiasc/for-main' into 'main'
...
expander: Fix the css docs
Closes #5723
See merge request GNOME/gtk!5787
2023-04-04 02:50:08 +00:00
Matthias Clasen
a9a6371ceb
Merge branch 'node-editor-things' into 'main'
...
Revert "rendernodepaintable: Provide accurate aspect ratio"
See merge request GNOME/gtk!5788
2023-04-04 02:47:39 +00:00
Matthias Clasen
6182f4a332
node-editor: Improve the scaling
...
We only want to scale the main rendering, not whats
shown in the sidebar. Also, make the scale logarithmic.
2023-04-03 22:33:34 -04:00
Matthias Clasen
9ccde8b913
rendernodepaintable: Preserve aspect ratio in snapshot()
...
This is the better fix.
2023-04-03 22:33:34 -04:00
Matthias Clasen
70e56f0dea
Revert "rendernodepaintable: Provide accurate aspect ratio"
...
This reverts commit 52a8492887
.
It turned out to be the wrong fix.
2023-04-03 22:33:34 -04:00
Matthias Clasen
8785391238
expander: Fix the css docs
...
The docs were not matching reality since the
css node names were changed in 6d20fe0b
.
Fixes : #5723
2023-04-03 19:33:31 -04:00
Benjamin Otte
231b12124e
Merge branch 'wip/otte/for-main' into 'main'
...
rendernode: Remove instance_init() function
See merge request GNOME/gtk!5785
2023-04-03 18:14:51 +00:00
Matthias Clasen
409c6556ec
Merge branch 'bilelmoussaoui/return-fix' into 'main'
...
gtk: Fix *_get_tab_behaviour return type
See merge request GNOME/gtk!5784
2023-04-03 18:04:08 +00:00
Benjamin Otte
4d86954fb5
rendernode: Cosmetics
...
Simplify a function.
2023-04-03 19:27:58 +02:00
Benjamin Otte
6e8c3fc3ff
rendernode: Get rid of GskRenderNodeTypeInfo
...
Instead, use class_init functions.
2023-04-03 19:27:58 +02:00
Benjamin Otte
0d139a81c7
rendernode: Remove instance_init() function
...
It's not used.
2023-04-03 19:27:58 +02:00
Bilal Elmoussaoui
d56815e98e
gtk: Fix *_get_tab_behaviour return type
2023-04-03 18:55:04 +02:00
Matthias Clasen
9752395a1d
Post-release version bump
2023-04-03 10:54:11 -04:00
Matthias Clasen
7467701818
4.11.1
2023-04-03 10:40:16 -04:00
Matthias Clasen
d82559345a
NEWS: Updates
2023-04-03 10:36:40 -04:00
Matthias Clasen
ac61376c32
Add comment on versions
...
Some versions are specfied in multiple places.
Add a reminder to update all places.
2023-04-03 10:35:36 -04:00
Benjamin Otte
362bdaa852
Merge branch 'gbsneto/vulkan-layout-fixes' into 'main'
...
Vulkan fractional scale support, image layout and clip region fixes, cleanups
See merge request GNOME/gtk!5783
2023-04-03 14:27:24 +00:00
Georges Basile Stavracas Neto
5c27a0dd2b
vulkan: Support fractional scaling
...
Basically what GL does, but without any debug or feature flag
to gatekeep it, since the Vulkan backend itself is experimental
already.
Ceil surface sizes, and floor coordinates, to the fractional scale
value.
2023-04-03 11:10:27 -03:00
Georges Basile Stavracas Neto
db1d278100
gsk/vulkan/renderpass: Don't scale scissor and render area
...
The rects passed to the clip region are in buffer coordinates, and
must not be scaled. Consider the following scenario: Wayland, with
a 1024x768@2 window. That gives us a 2048x1536 raw image. To setup
the Vulkan render pass code, we'd scale 2048x1536 *again*, to an
unreasonable 4196x3072, which is (1) incorrect and (2) really
incorrect and (3) can lead to crashes at best, full GPU resets
at worst - and a GPU reset is incredibly not fun!
Now that we pass the right clip regions at the right coordinates
at all times, remove the extra scaling from the render pass.
2023-04-03 10:59:45 -03:00
Georges Basile Stavracas Neto
dde029c3d1
gsk/vulkan: Cosmetics
...
No functional changes. Use a variable that already exists instead
of calling gdk_draw_context_get_surface() again. Cleanup some
newlines.
2023-04-03 10:59:45 -03:00
Georges Basile Stavracas Neto
a2a05acc6b
gsk/vulkan/renderer: Pass appropriate clip region
...
This part of the Vulkan renderer is almost exactly equal to the GL
renderer, and the GL renderer already does that since at least
2a38cecd33
. Copy that into the Vulkan renderer.
A nice side effect from this commit is that resizing a window now
actually works again.
Sneak in a trivial cleanup by using a variable to hold the draw
index.
2023-04-03 10:59:45 -03:00