Matthias Clasen
e111f688c2
Merge branch 'null-display' into 'main'
...
gdkdisplaymanager: Add missing nullable to display name
See merge request GNOME/gtk!5866
2023-04-25 07:46:21 +00:00
Takao Fujiwara
26e3824d1d
gdkdisplaymanager: Add missing nullable to display name
2023-04-25 12:08:08 +09:00
Matthias Clasen
63d7756658
Merge branch 'ebassi/button-can-shrink' into 'main'
...
Add GtkButton:can-shrink
See merge request GNOME/gtk!5552
2023-04-24 12:28:12 +00:00
Emmanuele Bassi
e28676869e
Add GtkMenuButton:can-shrink
...
Map the GtkMenuButton property to the underlying GtkButton widget.
2023-04-24 11:09:01 +01:00
Sabri Ünal
fabfc1eefa
Update Turkish translation
2023-04-23 21:12:44 +00:00
Benjamin Otte
72016341c6
Merge branch 'wip/otte/for-main' into 'main'
...
surface: Clean up drawing code
See merge request GNOME/gtk!5861
2023-04-22 15:10:02 +00:00
Benjamin Otte
104b5ef157
surface: reformat function
...
Make the function follow usual coding conventions.
And while doing that, remove duplicate functionality.
2023-04-22 16:35:16 +02:00
Benjamin Otte
893862a51a
surface: Refactor code
...
Move the early exit conditions to the top and turn them into early exits
instead of nesting if statements.
2023-04-22 16:33:35 +02:00
Benjamin Otte
823eb4c6d9
surface: Fold function into its only caller
...
No other changes
2023-04-22 16:29:58 +02:00
Benjamin Otte
be0ed15b40
surface: Stop maintaining an unused linked list
...
wat?
2023-04-22 16:27:27 +02:00
Benjamin Otte
040af44b00
surface: Remove in_update tracking
...
It's 2023, we use frame clocks now and don't have nested surface drawing
anymore.
2023-04-22 16:24:16 +02:00
Benjamin Otte
4154f87418
surface: Stop tracking the active update area
...
It's unused.
2023-04-22 16:10:24 +02:00
Aleksandr Melman
27e3ac5fc5
Update Russian translation
2023-04-22 12:03:07 +00:00
Piotr Drąg
eaaddd2647
Update Polish translation
2023-04-22 11:16:24 +02:00
Matthias Clasen
6d0659a83a
Merge branch 'gtkfilesystemmodel-emit-items-changed-on-modifying-attributes' into 'main'
...
filesystemmodel: Emit items-changed when modifying attributes
Closes #5758
See merge request GNOME/gtk!5853
2023-04-22 05:54:58 +00:00
Olivier Crête
0ce6bc677e
filesystemmodel: Emit items-changed when modifying attributes
2023-04-22 05:54:57 +00:00
Matthias Clasen
b579a39a47
Merge branch 'wip/corey/file-chooser-signal' into 'main'
...
Port filechooserwidget to GtkSignalListItemFactory
See merge request GNOME/gtk!5858
2023-04-22 05:26:43 +00:00
Corey Berla
aeaaead2bd
filechoosercell: Drop show-time property
...
Now that we are using GtkSignalListItemFactory, the convoluted show-time
property is no longer necessary.
2023-04-21 08:14:32 -07:00
Corey Berla
056237fc04
filechooserwidget: Port to GtkSignalListItemFactory
...
BuilderListItemFactory isn't quite suited for our purposes, primarily
because you can't pass user data to BuilderListItemFactory. Because
we can't get the data we are using a workaround to get the
GtkFileChooserWidget ancestory, which used to work, but with the
recent list view changes no longer doesn't. Use GtkSignalListItemFactory
with the GtkFileChooserWidget as the user data.
2023-04-21 08:14:32 -07:00
Corey Berla
1a7e808c27
Revert "filechooser: Set date and time after cell is a child of filechooserwidget"
...
This reverts commit 2a70093a30 .
This fix was incomplete, the actual fix is to use signal factory.
2023-04-21 08:14:24 -07:00
Corey Berla
3de47fa5c6
Revert "filechoosercell: Store type_format in filechoosercell"
...
This reverts commit dd407dab00 .
This fix was incomplete, the actual fix is to use signal factory.
2023-04-21 08:14:14 -07:00
Hugo Carvalho
9f7c8f7d42
Update Portuguese translation
...
(cherry picked from commit 5bc3284dd8 )
2023-04-21 14:30:55 +00:00
Yosef Or Boczko
feb3254a6a
Update Hebrew translation
2023-04-21 09:10:12 +00:00
Benjamin Otte
03b71a9759
Merge branch 'wip/otte/for-main' into 'main'
...
testsuite: Be less verbose in accessor-apis test
Closes #5763
See merge request GNOME/gtk!5851
2023-04-20 21:50:44 +00:00
Benjamin Otte
f393f70ee2
listbase: Don't warn on scroll in empty list
...
Empty lists can still be scrolled if the scroll happens in the same
frame as the emptying of the list.
Related: #5763
2023-04-20 23:33:28 +02:00
Benjamin Otte
75c47755e3
adjustment: sanity-check values when setting them
...
It's not enough to sanitize values when starting an animation, as the
adjustment can reconfigure itself while the animation runs.
So as a simple way to handle this, we sanitize every value right before
setting it, too.
In the future we might also want to look at sanitizing start/end values
of the animation.
Fixes #5763
2023-04-20 23:33:28 +02:00
Benjamin Otte
e47c076048
adjustment: Split out a function
2023-04-20 23:33:28 +02:00
Matthias Clasen
6ecd57eba8
Merge branch 'dark_theme_fix_hover_toolbar_buttons' into 'main'
...
theme: fix 'hover' and 'check' colors for buttons under .toolbar
See merge request GNOME/gtk!5844
2023-04-20 20:08:31 +00:00
Matthias Clasen
8b3831d43a
Merge branch 'dark_theme_increase_selection_color' into 'main'
...
Increase contrast for text entry selection color on dark theme
See merge request GNOME/gtk!5843
2023-04-20 20:08:01 +00:00
Benjamin Otte
39583e40ef
testsuite: Allow accessors in interfaces
...
There are a lot of cases where properties are implemented in classes but
the getters for these exist in an interface that class implements.
A common Example is g_list_model_get_n_items() being the getter for
GtkWhateverListModel::n-items.
But also property implementations that don't use override_property()
(usually because they have a different default) are handled by this.
2023-04-20 17:47:54 +02:00
Benjamin Otte
be5f225022
testsuite: Be less verbose in accessor-apis test
...
Only print the tried names when --verbose is passed to the test.
2023-04-20 17:47:54 +02:00
Emin Tufan Çetin
427ed50759
Update Turkish translation
2023-04-19 13:22:31 +00:00
Matthias Clasen
9892243df6
Merge branch 'mask-node-transforms' into 'main'
...
Fix a comment
See merge request GNOME/gtk!5848
2023-04-19 07:44:45 +00:00
Matthias Clasen
83091c4f15
gsk: Use explicit switches
...
This makes it harder to forget to add new
node types here.
2023-04-19 09:19:12 +02:00
Matthias Clasen
503a5de7d1
gsk: Mask nodes support 2d transforms
...
When adding mask nodes, I overlooked that
we have two separate functions for determining
what transforms a node supports without offlines.
Since we claim that mask nodes support general
transform, they must certainly support 2d transforms
as well.
2023-04-19 08:13:55 +02:00
Matthias Clasen
d7d75f0b26
Fix a comment
...
I tried to improve things in d67101d46e ,
but I made it worse. The original note was meant
to be removed. Pointed out be Sebastian Bacher.
2023-04-19 07:49:36 +02:00
Benjamin Otte
40ac37245d
Merge branch 'angle-gles' into 'main'
...
gdk: prefer GLES when on win32/ANGLE
See merge request GNOME/gtk!5829
2023-04-17 11:56:03 +00:00
Marc-André Lureau
250414d6b3
gdk/win32: drop some unused variables
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
2023-04-17 04:50:17 +00:00
Marc-André Lureau
d69cdf6c05
gdk: drop libangle GLES minimum version
...
GLES 2.0 version is fine now with current gtk according to B. Otte.
Let's use the same minimum requirement for all implementations.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
2023-04-17 04:50:17 +00:00
Marc-André Lureau
9532657fa2
gdk: use GLES when on win32/ANGLE
...
When using GDK_DEBUG=gl-egl, we end up using GL, but that is not well supported:
Creating EGL context version 3.0 (debug:no, forward:no, legacy:yes, es:no)
Created EGL context[0000000000000004]
OpenGL version: 0.0 (legacy)
* GLSL version: (NULL)
* Max texture size: -1059701680
* Extensions checked:
- GL_KHR_debug: no
- GL_EXT_unpack_subimage: yes
- OES_vertex_half_float: no
** (gtk4-demo.exe:14324): WARNING **: 19:16:41.468: Compile failure in
vertex shader:
ERROR: 0:7: 'gl_Position' : undeclared identifier
---8<---
Use GLES when EGL implementation is ANGLE.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
2023-04-17 04:50:17 +00:00
Marc-André Lureau
3cb2115212
gdk: drop unused vertex_array_object
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
2023-04-17 04:50:17 +00:00
Benjamin Otte
dd7c85adc3
Merge branch 'wip/otte/for-main' into 'main'
...
glrenderer: Don't try to use float framebuffers on GLES2
See merge request GNOME/gtk!5845
2023-04-17 04:49:59 +00:00
Benjamin Otte
8965d6c7f8
gl: Only allow RGB(A)8 on GLES2
...
GLES2 has no idea what 16bit textures even are, let alone floating point.
2023-04-17 05:57:44 +02:00
Benjamin Otte
d7309a009c
glrenderer: Don't try to use float framebuffers on GLES2
...
GLES doesn't know what that is.
2023-04-17 05:57:44 +02:00
Nelson Benítez León
bd9b117517
theme: more contrast for text entry selection color on dark theme
...
Part of #5725
2023-04-16 16:33:54 -04:00
Nelson Benítez León
a309a56acf
theme: fix 'hover' and 'check' colors for buttons under .toolbar
...
Buttons under .toolbar were using for their 'hover', 'active'
and 'check' colors the default ones from %button_basic_flat
which are very dimmed, so we explicitly darken them.
Part of #5725
2023-04-16 16:16:10 -04:00
Matthias Clasen
b6fac448d7
Merge branch 'matthiasc/for-main' into 'main'
...
Try harder to fix focus tests
See merge request GNOME/gtk!5842
2023-04-16 20:00:46 +00:00
Matthias Clasen
765f55dfbe
testsuite: Skip focus tests when necessary
...
If our window does not get focus, we can't reliably
test things that depend on widgets being focused.
2023-04-16 20:58:26 +02:00
Matthias Clasen
bebaad3e1f
Merge branch 'ccook/doc-changes' into 'main'
...
Two corrections that show up in docs
See merge request GNOME/gtk!5838
2023-04-16 18:16:36 +00:00
Matthias Clasen
db6a116d49
Try harder to fix focus tests
...
The focus test now asserts that its window is active.
So we should not run them in parallel with other tests,
since those might steal the focus.
2023-04-16 20:08:03 +02:00