Lukáš Tyrychtr
94695bb276
a11y: Use GtkAccessible for tree traversal
...
Remove the widget tree dependence from GtkAtSpiContext.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
be36113826
a11y: Implement the new GtkAccessible vfuncs
...
Implement the gtk_accessible functions and begin removing the old widget
based tree calls.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
5dfbaa53fc
a11y: Add DOM-like API to GtkAccessible
...
Add get_parent and get_child_at_index to GtkAccessible so we can
decouple the a11y tree from the widget tree.
2023-02-03 11:49:17 +01:00
Matthias Clasen
a13ddcb67b
Merge branch 'filechooser-sidebar' into 'main'
...
placessidebar: Make all rows ellipsize
Closes #4710
See merge request GNOME/gtk!5471
2023-02-03 09:41:21 +00:00
Carlos Garnacho
d228bae365
Merge branch 'drag-button-issue' into 'main'
...
Fix button mask calculation for Wayland
Closes #5561
See merge request GNOME/gtk!5468
2023-02-03 09:28:01 +00:00
Matthias Clasen
463f12a3bb
placessidebar: Make all rows ellipsize
...
Otherwise, we end up with a single long row
pushing the content of all the other rows
off to the left, which is much worse than
ellipsizing.
Fixes : #4710
2023-02-03 10:00:03 +01:00
Matthias Clasen
3f87b130ba
NEWS: Updates
2023-02-03 09:26:50 +01:00
Benjamin Otte
c17049c6d1
Merge branch 'wip/otte/gl-is-current' into 'main'
...
gdk: Add private GLContext::is_current() check
Closes #5392
See merge request GNOME/gtk!5463
2023-02-02 21:56:32 +00:00
Arjan Molenaar
f000baf0d6
wayland: Fix button mask for button 2 and 3
...
Wayland and GTK order mouse button 2 and 3 differently.
Fixes #5561 .
2023-02-02 21:48:58 +01:00
Arjan Molenaar
aef4c50155
Allow all mouse buttons to be used for the drawingarea demo
...
So we can test if the drag gesture works with all mouse buttons.
2023-02-02 21:29:45 +01:00
Matthias Clasen
2a1e4b8621
Merge branch 'matthiasc/for-main' into 'main'
...
Matthiasc/for main
See merge request GNOME/gtk!5467
2023-02-02 17:36:44 +00:00
Matthias Clasen
cabd18fba0
textbtree: Fix a compiler warning
2023-02-02 17:15:28 +01:00
Matthias Clasen
1da4782262
gsk: Fix a compiler warning
2023-02-02 17:15:28 +01:00
Matthias Clasen
8911ed5d9b
Merge branch 'monitor-description' into 'main'
...
Add GdkMonitor::description
See merge request GNOME/gtk!5466
2023-02-02 14:12:23 +00:00
Matthias Clasen
294b659dc1
Merge branch 'wip/carlosg/deprecations' into 'main'
...
Some deprecations and cleanups
See merge request GNOME/gtk!5465
2023-02-02 14:11:58 +00:00
Carlos Garnacho
7ad74ad6c3
gdk/wayland: Deprecate GdkDisplay windowing-specific for startup IDs
...
This is currently just used as a convenience storage of the startup ID
between the GtkApplication and the GtkWindow (after it's ready to notify
on it).
This could be untangled in the GTK layers so there is no involvement
from GDK in keeping the startup ID around, in the mean time just deprecate
these gdk_wayland* API calls.
2023-02-02 12:50:59 +01:00
Carlos Garnacho
bb777507ce
gtkmodelbutton: Avoid gtk_gesture_set_sequence_state()
...
It is not necessary for this widget to know about the specific
sequence that is interacting.
2023-02-02 12:50:59 +01:00
Carlos Garnacho
1e1d79d4f7
gtktextview: Avoid gtk_gesture_set_sequence_state()
...
Use gtk_gesture_set_state() as this widget does not need specific
knowledge on the sequence being used for interaction.
2023-02-02 12:50:59 +01:00
Carlos Garnacho
a254a4529f
gtkscrolledwindow: Clean up input handling a bit
...
These pieces were added in commit 8d2f81cca4
, but are no longer
necessary since there's no capture_button_press special behavior
toggle.
This can be simplified again.
2023-02-02 12:50:59 +01:00
Matthias Clasen
e7bd691532
inspector: Show monitor descriptions
2023-02-02 12:32:28 +01:00
Matthias Clasen
4e62350232
wayland: Set up monitor descriptions
...
We get this information in the xdg_output protocol.
2023-02-02 12:32:28 +01:00
Matthias Clasen
2c883a70e2
Add GdkMonitor::description
...
This is the right string to when showing
monitors in the UI.
2023-02-02 12:32:28 +01:00
Matthias Clasen
3dfeb2fd37
monitor: Document connector names better
2023-02-02 12:32:28 +01:00
Carlos Garnacho
3ba3e8286f
gtkwindowhandle: Refactor click handling a bit
...
Do not get a GdkEvent first and foremost, and only do that in the
parts where the GdkEvent is absolutely necessary (i.e. popping up
the WM menu for the window).
2023-02-02 11:21:22 +01:00
Carlos Garnacho
fbf4817ef5
gtkgesture: Deprecate gtk_gesture_set_sequence_state()
...
We can abstract widgets about the specific ongoing sequences that
are triggering a GtkGesture. This used to be more necessary in
GTK3 world where complex widgets might have required handling
different events in different areas, but in GTK4 world that would
be done with multiple widgets.
This is no longer necessary to carry forward.
2023-02-02 11:21:22 +01:00
Carlos Garnacho
db43e0669f
gtkscrolledwindow: Avoid gtk_gesture_set_sequence_state()
...
This widget does not require special knowledge about the ongoing
event sequences, just make it use gtk_gesture_set_state() generically.
2023-02-02 11:21:22 +01:00
Carlos Garnacho
386c77b13d
gtkwindowhandle: Avoid gtk_gesture_set_sequence_state()
...
It does not require special knowledge about the ongoing event
sequences, and it can instead trust the event controller. Make
it use gtk_gesture_set_state() generically.
2023-02-02 11:21:21 +01:00
Matthias Clasen
e6998dffe8
Merge branch 'small-gltexture-cleanup' into 'main'
...
gltexture: Small refactoring
See merge request GNOME/gtk!5464
2023-02-02 09:16:09 +00:00
Matthias Clasen
12057c8a30
gltexture: Small refactoring
...
We do this in two places, so factor out
the dropping of GL resources into a helper.
2023-02-02 10:01:36 +01:00
Matthias Clasen
b7c422cb98
ci: Stop running the asan build every time
...
It fails because of address sanitizer crashes,
and takes a long time. It is not that useful
in this shape.
2023-02-02 09:07:10 +01:00
Matthias Clasen
1c76f6586b
Update po/POTFILES.in
...
Deprecations affect this file.
2023-02-02 09:05:31 +01:00
Matthias Clasen
d43968f7b6
Fix a deprecation warning
2023-02-02 09:03:26 +01:00
Matthias Clasen
26650787e1
main: Compiler warnin gfixes
2023-02-02 08:44:53 +01:00
Matthias Clasen
b4ef072188
icontheme: Compiler warning fixes
2023-02-02 08:44:28 +01:00
Matthias Clasen
3858c5282c
Deprecate GtkAssistant
...
It is a dialog-like toplevel, and libadwaita has
replacement parts (like AdwCarousel).
2023-02-02 08:39:25 +01:00
Matthias Clasen
1ff8dad8ec
Deprecate GtkLockButton
...
This is a very specialized widget, and should really just
live with the applications where it is used.
2023-02-02 08:39:25 +01:00
Matthias Clasen
d8cb11ec4a
Deprecate GtkStatusbar
...
The design patterns using statusbar are no longer popular,
and it is pretty easy to make a statusbar yourself with boxes
and labels, if you need one. The only thing special about
GtkStatusbar was its window resize handle, but that has
been gone for a long time.
2023-02-02 08:39:24 +01:00
Matthias Clasen
8796950651
Deprecate more startup-notification API
2023-02-02 08:30:32 +01:00
Benjamin Otte
c6cef6db52
gdk: Add private GLContext::is_current() check
...
... and use this check in gdk_gl_context_make_current() and
gdk_gl_context_get_current() to make sure the context really is still
current.
The context no longer being current can happen when external GL
implementations make their own contexts current in the same threads GDK
contexts are used in.
And that can happen for example by WebKit.
Theoretically, this should also allow external EGL code to run in X11
applications when GDK chooses to use GLX, but I didn't try it.
Fixes #5392
2023-02-02 04:23:51 +01:00
Benjamin Otte
fdea27c04d
win32: Remove unused variable
2023-02-02 04:23:51 +01:00
Fran Dieguez
a52f9d6def
Update Galician translation
2023-02-01 19:12:29 +00:00
Benjamin Otte
ee272646c9
Merge branch 'fix-gltexture-confusion' into 'main'
...
gltexture: Use the right context
See merge request GNOME/gtk!5461
2023-02-01 18:47:28 +00:00
Matthias Clasen
6655177a0b
Cosmetics
2023-02-01 18:38:22 +01:00
Daniel Mustieles
cb78f0d10a
Update Spanish translation
2023-02-01 15:28:00 +00:00
Matthias Clasen
1cb621633c
gltexture: Use the right context
...
When checking characteristics of the context
for downloading, we were using self->context,
even though we are using a possibly different
context for downloading.
Pass the right context along and use it.
2023-02-01 11:32:07 +01:00
Kukuh Syafaat
ce25efeee7
Update Indonesian translation
2023-02-01 03:14:46 +00:00
Matthias Clasen
375b554924
Merge branch 'fix-gst-sync' into 'main'
...
gst: Fix synchronization
See merge request GNOME/gtk!5459
2023-01-31 12:28:27 +00:00
Matthias Clasen
69eed999bb
gst: Rename a field for clarity
...
gst_gdk_context is clearer than gst_app_context. Maybe
2023-01-30 15:01:31 -05:00
Matthias Clasen
cab5f2bd8d
Merge branch 'file-chooser-dnd-crash' into 'main'
...
filechooserwidget: Fix file chooser crash when dropping empty file list
See merge request GNOME/gtk!5456
2023-01-30 19:28:24 +00:00
Fina Wilke
35e3c22832
filechooserwidget: Fix file chooser crash when dropping empty file list
2023-01-30 19:28:24 +00:00