Matthias Clasen
49e93f6ee4
textview: Don't validate during snapshot
...
Do it during size_allocate, and go back there
if needed.
2023-02-21 15:04:30 -05:00
Matthias Clasen
4ec2234537
widget: Warn for invalidation during paint
2023-02-21 15:04:30 -05:00
Matthias Clasen
5a3755b233
frameclock: Add a debug helper
...
Begin able to query the current phase
is useful for debugging purposes.
2023-02-21 15:04:30 -05:00
Daniel
cad5771a66
Updated Spanish translation
2023-02-21 12:07:49 +01:00
Emmanuele Bassi
378f1421f0
Merge branch 'main' into 'main'
...
button: Remove nullable annotation for new_from_icon_name()
Closes #5606
See merge request GNOME/gtk!5544
2023-02-20 21:30:05 +00:00
Philipp Hörist
a209a73c69
button: Remove nullable annotation for new_from_icon_name()
...
This makes it more consistent with set_icon_name() which
does also not accept NULL.
Fixes #5606
2023-02-20 20:33:42 +01:00
Matthias Clasen
624458df9d
Merge branch 'builder-tool-child-properties' into 'main'
...
gtk4-builder-tool: Prefer child properties
Closes #5609
See merge request GNOME/gtk!5543
2023-02-20 13:12:27 +00:00
Matthias Clasen
fbfbaa484d
Merge branch 'matthiasc/for-main' into 'main'
...
filechooser: Fix paned limits
See merge request GNOME/gtk!5542
2023-02-20 13:04:33 +00:00
Matthias Clasen
3de10847b9
gtk4-builder-tool: Prefer child properties
...
Rewrite <child> elements to use child properties
where that is easily possible.
Fixes : #5609
2023-02-19 21:48:56 -05:00
Kukuh Syafaat
8be601da4f
Update Indonesian translation
2023-02-20 01:20:48 +00:00
Matthias Clasen
07b9a6fb75
filechooser: Fix paned limits
...
The intention of the ui file was to not let
the paned shrink both children down to nothing,
but using <child> for the children effectively
overrides the setting of the shrink properties.
Fix that by using child properties instead of
<child>.
2023-02-19 19:12:30 -05:00
Matthias Clasen
5105d607de
Merge branch 'builder-tool-template-parent' into 'main'
...
builder-tool: Try harder to find template parents
Closes #5232
See merge request GNOME/gtk!5541
2023-02-20 00:05:06 +00:00
Matthias Clasen
a9f03be588
builder-tool: Try harder to find template parents
...
This will make it work (in some cases) to add extra
libraries via LD_PRELOAD.
Based on work by Julian Sparber,
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5084
Fixes : #5232
2023-02-19 18:17:34 -05:00
Asier Sarasua Garmendia
d67bdb96ad
Update Basque translation
2023-02-19 20:44:24 +00:00
Yuri Chornoivan
c8f4535ed2
Update Ukrainian translation
2023-02-19 20:23:35 +00:00
Aurimas Černius
21cbf98942
Update Lithuanian translation
2023-02-19 19:06:03 +00:00
Emmanuele Bassi
300540f6b8
Merge branch 'texturescalenode-type-annotations' into 'main'
...
Fix self-`(type)` annotations for `TextureScaleNode` methods
See merge request GNOME/gtk!5539
2023-02-19 17:18:01 +00:00
Sebastian Dröge
323ba14dde
Fix self-(type)
annotations for TextureScaleNode
methods
2023-02-19 19:00:34 +02:00
Matthias Clasen
aaee1ee5bd
Merge branch 'fix_custom_accessible_hierarchy' into 'main'
...
Allow setting accessible parent and next sibling
See merge request GNOME/gtk!5517
2023-02-19 16:15:49 +00:00
Matthias Clasen
70a711882c
Fix the build
2023-02-19 15:26:27 +00:00
Matthias Clasen
5717b95cad
Miscellaneous formatting and documentation fixes
2023-02-19 15:09:25 +00:00
Matthias Clasen
1b0f324be5
Merge branch 'missing-since-markers' into 'main'
...
Add two missing `Since` markers
See merge request GNOME/gtk!5537
2023-02-19 14:56:51 +00:00
Sebastian Dröge
ca93512106
Add two missing Since
markers
2023-02-19 11:18:15 +02:00
Ekaterine Papava
fbd4f06ee2
Update Georgian translation
2023-02-19 05:48:04 +00:00
Benjamin Otte
d553f6941d
Merge branch 'wip/otte/for-main' into 'main'
...
listview: Measure children only, not self
See merge request GNOME/gtk!5535
2023-02-19 05:33:59 +00:00
Matthias Clasen
2173b7ccaa
Merge branch 'matthiasc/for-main' into 'main'
...
Drop some unnecessary includes
See merge request GNOME/gtk!5536
2023-02-19 05:01:53 +00:00
Matthias Clasen
ca6642deed
Drop some unnecessary includes
2023-02-18 23:42:04 -05:00
Benjamin Otte
be6a4722c0
listview: Measure children only, not self
...
The previous code would include CSS padding/margin/border in the
measurement and that is wrong.
Until commit a96c75ff02
this was not actually visible, but afterwards
listitems were allocated 16px too wide.
Test included
2023-02-19 05:41:29 +01:00
Matthias Clasen
3b3b63062d
Revert "Merge branch 'inscription-single-line' into 'main'"
...
This reverts commit 7ec90abf24
, reversing
changes made to ec49a912aa
.
We did not have agreement on this after all.
2023-02-18 19:04:00 -05:00
Matthias Clasen
7ec90abf24
Merge branch 'inscription-single-line' into 'main'
...
inscription: Add single-line-mode property
Closes #5444
See merge request GNOME/gtk!5504
2023-02-18 23:34:17 +00:00
Matthias Clasen
ec49a912aa
Merge branch 'wip/carlosg/dnd-x11-keys' into 'main'
...
gdk/x11: Also grab keyboard during XDnD grabs
Closes #5604
See merge request GNOME/gtk!5533
2023-02-18 22:20:30 +00:00
Carlos Garnacho
ae94417f80
gdk/x11: Also grab keyboard during XDnD grabs
...
The drag source must handle events and messaging, this also
includes keyboard handling for accessibility and cancellation.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5604
2023-02-18 23:02:22 +01:00
Matthias Clasen
24a6803958
Merge branch 'matthiasc/for-main' into 'main'
...
gtksearchentry: Apply header capitalization to the "Clear entry" tooltip
See merge request GNOME/gtk!5532
2023-02-18 21:10:16 +00:00
Automeris naranja
4073371416
gtksearchentry: Apply header capitalization to the "Clear entry" tooltip
...
HIG advises to use header capitalization in tooltip texts.
https://developer.gnome.org/hig/patterns/feedback/tooltips.html
2023-02-18 15:53:54 -05:00
Matthias Clasen
e5a391c0b9
Merge branch 'matthiasc/for-main' into 'main'
...
securememory: use function checks
Closes #5070
See merge request GNOME/gtk!5531
2023-02-18 17:21:15 +00:00
Matthias Clasen
6cb612ac15
gtk-demo: Fix build without sincos
...
We are getting into trouble here if
sincos isn't detected but still present
in headers. Avoid that.
Also fix the other copy of gtkgears.c.
2023-02-18 10:41:02 -05:00
Matthias Clasen
9f64202a60
meson: Consolidate function checks
...
Put all the function checks in one place.
Remove functions we don't actually use,
and add ones that we have #ifdefs for in
in the code. Also add enough includes to
make these checks actually work.
Fixes : #5070
2023-02-18 09:37:36 -05:00
Matthias Clasen
19c362f638
securememory: use function checks
...
Checking for getpagesize in meson.build is
useless if we don't check the resulting define
in the code. So do that.
2023-02-18 09:34:50 -05:00
Matthias Clasen
e51fa8b65b
Merge branch 'matthiasc/for-main' into 'main'
...
printing: Avoid getrandom
See merge request GNOME/gtk!5530
2023-02-17 22:39:04 +00:00
Matthias Clasen
06d3bbafaf
printing: Avoid getrandom
...
GLib has perfectly serviceable random number
apis, and this breaks the macOs build.
2023-02-17 17:20:44 -05:00
Matthias Clasen
da8a1f4683
Merge branch 'scalebutton-active-since-marker' into 'main'
...
Add missing `Since` marker to `GtkScaleButton:active`
See merge request GNOME/gtk!5529
2023-02-17 19:54:03 +00:00
Sebastian Dröge
ad7d9bc409
Add missing Since
marker to GtkScaleButton:active
2023-02-17 19:41:55 +02:00
Emmanuele Bassi
94cde8d702
Merge branch 'ebassi/ci-update-v41' into 'main'
...
ci: Update image
See merge request GNOME/gtk!5528
2023-02-17 12:55:50 +00:00
Emmanuele Bassi
ec7b1f7208
ci: Add no-cache option to run-docker.sh script
...
Use `run-docker.sh build --no-cache` to discard the cached layers if you
need to rebuild the image without modifying the Dockerfile.
2023-02-17 12:24:09 +00:00
Emmanuele Bassi
864fbf89cd
ci: Update image
...
Refresh the Fedora base (still at 37), and add the Python packaging
module for gi-docgen.
2023-02-17 12:24:09 +00:00
Emmanuele Bassi
b8e928d703
Merge branch 'matthiasc/for-main' into 'main'
...
mask: Fix glsl
See merge request GNOME/gtk!5527
2023-02-17 12:23:36 +00:00
Matthias Clasen
0b4d41698b
mask: Fix glsl
2023-02-17 06:26:42 -05:00
Matthias Clasen
a9eca60b84
Merge branch 'wip/fix-mask-modes-regression' into 'main'
...
wayland/glcontext: Don't call wl_surface.offset on old objects
See merge request GNOME/gtk!5526
2023-02-17 11:25:06 +00:00
Jonas Ådahl
53c3f497f1
wayland: Clean up some dead code
2023-02-17 12:03:58 +01:00
Jonas Ådahl
3183a21347
wayland/glcontext: Don't call wl_surface.offset on old objects
...
The availability of wl_surface.offset depends on the compositor, so we
can't call it unconditionally. Add a version check to so we only call
offset if we know we won't raise a protocol error.
Fixes: 0eb791eaaa
("Make mask nodes more versatile")
2023-02-17 12:03:27 +01:00
Matthias Clasen
07f090f947
Merge branch 'test-invisible-text' into 'main'
...
Add a test for invisible text navigation
See merge request GNOME/gtk!5525
2023-02-17 03:01:42 +00:00
Matthias Clasen
ad111087cc
Add a test for invisible text navigation
...
This shows that (at least some) things
work as expected.
See: #1811
2023-02-16 14:27:44 -05:00
Jürgen Benvenuti
5092581be8
Update German translation
2023-02-16 17:18:16 +00:00
Matthias Clasen
b261f7f533
Merge branch 'nielsdg/set-action-enabled-doc-ref' into 'main'
...
widget: mention action_set_enabled in install_action
See merge request GNOME/gtk!5524
2023-02-16 11:24:15 +00:00
Niels De Graef
779f9e5071
widget: mention action_set_enabled in install_action
...
When looking at `gtk_widget_class_install_action()`, it isn't
immediately obvious how actions can be enabled or disabled. Add a
reference to the `gtk_widget_action_set_enabled()` method so people have
a quick link to that.
2023-02-16 08:47:06 +01:00
Matthias Clasen
b07d9d1912
Merge branch 'alatiera/flatpak-ci' into 'main'
...
ci: Build and publish aarch64 flatpaks
Closes #5594
See merge request GNOME/gtk!5523
2023-02-15 19:54:32 +00:00
Jordan Petridis
7b4692bcb0
ci: Add a simple auto-retry policy
2023-02-15 21:38:24 +02:00
Jordan Petridis
f0a2b6f165
ci: Build and publish aarch64 flatpaks
...
Close GNOME/gtk#5594
2023-02-15 21:19:56 +02:00
Jordan Petridis
2dc6efd9ce
ci: Switch from only/except to rules: keyword
...
It's more flexible and allows us to combine the flatpak jobs
2023-02-15 21:10:40 +02:00
Emmanuele Bassi
1f4adb60bb
Merge branch 'fix-annotations' into 'main'
...
Fix a couple incorrect annotations for optional parameters
See merge request GNOME/gtk!5503
2023-02-15 16:27:11 +00:00
Lukáš Tyrychtr
f507dd4962
Allow updating the next accessible sibling for a GtkAccessible
2023-02-15 12:29:16 +01:00
Matthias Clasen
1bdb368e8b
Merge branch 'more-mask-modes' into 'main'
...
rendernodeparser: Fix mask mode handling
See merge request GNOME/gtk!5522
2023-02-15 03:54:01 +00:00
Matthias Clasen
aec4bfcf3b
gsk: Add a node parser test for mask modes
2023-02-14 21:47:54 -05:00
Matthias Clasen
7e18c2849b
gsk: Add a render test for mask modes
2023-02-14 21:47:54 -05:00
Matthias Clasen
351abadee7
Make make not fallback match GL
...
We were not handling the inverted-luminance
case the same way, and it caused a test to
fail. Yay for tests.
2023-02-14 21:47:54 -05:00
Matthias Clasen
951db28f71
rendernodeparser: Fix mask mode handling
...
I had forgotten inverted-luminance, and also
to print an error.
2023-02-14 21:01:12 -05:00
Benjamin Otte
40e7a265a7
rendernodeparser: Print an error when failing to parse an enum
2023-02-14 21:01:12 -05:00
Matthias Clasen
9a539cec57
Merge branch 'mask-modes' into 'main'
...
Make mask nodes more versatile
See merge request GNOME/gtk!5521
2023-02-15 00:57:17 +00:00
Matthias Clasen
724cf6bd70
Merge branch 'wip/cdavis/menubutton-active' into 'main'
...
menubutton: Add `active` property and getter/setter
See merge request GNOME/gtk!5506
2023-02-15 00:44:17 +00:00
Matthias Clasen
5e4b43dcce
Merge branch 'wip/otte/downloader' into 'main'
...
Add GdkTextureDownloader
See merge request GNOME/gtk!5515
2023-02-15 00:41:26 +00:00
Matthias Clasen
fa43282695
Merge branch 'wip/otte/disable-style-check' into 'main'
...
CI: Don't run style-check-diff by default
See merge request GNOME/gtk!5520
2023-02-15 00:36:53 +00:00
Benjamin Otte
662c251cd0
demo: Spice up the mask demo
...
Also use all the mask modes, weeeee!
2023-02-14 19:07:01 -05:00
Matthias Clasen
0d97d03fc1
Document mask node parser format
2023-02-14 19:07:01 -05:00
Matthias Clasen
cb0aaf0b2c
Add more mask node tests
2023-02-14 19:07:01 -05:00
Matthias Clasen
0eb791eaaa
Make mask nodes more versatile
...
Add a GskMaskMode enumeration and implement it
in the GL and cairo renderers.
2023-02-14 19:07:01 -05:00
Benjamin Otte
073c836f96
CI: Don't run style-check-diff by default
...
We don't use it most of the time and it's also confusing to new contributors who think it's important to fix it.
Keep it for manual runs, so that interested people can just click a button to see the results. It also makes it easy to turn back on later.
2023-02-14 23:53:02 +00:00
Matthias Clasen
0a0a03d913
Merge branch 'fix_4258' into 'main'
...
Don't tell the screen reader that a button is related to an image which has no useful label
Closes #4258
See merge request GNOME/gtk!4665
2023-02-14 23:50:18 +00:00
Lukáš Tyrychtr
d43724f5fc
Don't tell the screen reader that a button is related to an image which has no useful label
2023-02-14 23:50:18 +00:00
Matthias Clasen
abf3cdb187
Merge branch 'cpdb' into 'main'
...
Update dependencies for CPDB print backend
Closes #5589
See merge request GNOME/gtk!5518
2023-02-14 23:48:43 +00:00
Benjamin Otte
cca5de3c7f
memorytexture: Export less private API
...
It's not needed anymore with GdkTextureDownloader now.
2023-02-15 00:39:18 +01:00
Benjamin Otte
774696011d
glrenderer: Use GdkTexureDownloader
2023-02-15 00:39:18 +01:00
Benjamin Otte
c9f54ca371
texture: Export gdk_texture_get_format()
...
The API docs outline why quite well.
This should make it possible to do saving of textures to image files
without any private API with the same featureset that GTK uses.
Also remove the gsktextureprivate.h include where
gdk_texture_get_format() was the only reason for it.
2023-02-15 00:39:18 +01:00
Benjamin Otte
ce0123ea58
docs: Link from gdk_texture_download() to GdkTextureDownloader
2023-02-15 00:39:18 +01:00
Benjamin Otte
b30af72125
tiff: Use GdkTexureDownloader when saving
2023-02-15 00:39:18 +01:00
Benjamin Otte
eb45b8083a
png: Use GdkTexureDownloader when saving
2023-02-15 00:39:18 +01:00
Benjamin Otte
f05d801e28
jpeg: Use GdkTexureDownloader when saving
2023-02-15 00:39:18 +01:00
Benjamin Otte
4afec951c7
pixbuf: Use GdkTextureDownloader when downloading pixbufs
2023-02-15 00:39:18 +01:00
Benjamin Otte
51ed1442a2
gdk: Add GdkTextureDownloader
...
It's the new object that allows more control about accessing texture
data.
2023-02-15 00:39:18 +01:00
Benjamin Otte
01ff6c1c22
memorytexture: Use right size for GBytes
...
The GBytes were created with the wrong size.
Nobody seems to have looked at it.
2023-02-14 23:42:17 +01:00
Fran Dieguez
73f3ea9511
Update Galician translation
2023-02-14 20:04:07 +00:00
Emmanuele Bassi
f1311dc053
Merge branch 'gsk-render-node-type-abi-breakage' into 'main'
...
gsk: Move new 4.10 `GskRenderNodeType`s to the end instead of inserting them in the middle
See merge request GNOME/gtk!5519
2023-02-14 19:28:36 +00:00
Sebastian Dröge
a252aadadf
gsk: Move new 4.10 GskRenderNodeType
s to the end instead of inserting them in the middle
2023-02-14 21:04:41 +02:00
tinytrebuchet
300670dad4
Update dependencies for CPDB print backend
...
Require cpdb-frontend 2.x for building CPDB print backend.
2023-02-14 23:39:13 +05:30
Matthias Clasen
44c95d3c96
Merge branch 'kjellahl/clang' into 'main'
...
gskglrenderjob: Fix compilation with clang
See merge request GNOME/gtk!5516
2023-02-14 14:18:29 +00:00
Lukáš Tyrychtr
d566771262
Preserve the correct a11y tree in GtkStack
...
Now, when we can, ensure that the GtkStackPage is the parent of its widget.
2023-02-14 14:44:20 +01:00
Lukáš Tyrychtr
5f72b51105
Allow setting accessible parent and sibling explicitly
...
This allows to maintain the correct a11y hierarchy even when it contains
objects which are only GtkAccessibles.
2023-02-14 14:43:57 +01:00
Hugo Carvalho
e0afd22c84
Update Portuguese translation
2023-02-14 11:39:50 +00:00
Kjell Ahlstedt
869ab1cd1b
gskglrenderjob: Fix compilation with clang
2023-02-14 10:29:25 +01:00
Matthias Clasen
730593fab5
Merge branch 'texttag_textview_documentation' into 'main'
...
Update TextTag and TextView indent Documentation
See merge request GNOME/gtk!5507
2023-02-14 00:08:39 +00:00
Matthias Clasen
d0798c9526
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Fix hotspot handling in dnd
See merge request GNOME/gtk!5513
2023-02-14 00:03:55 +00:00
Matthias Clasen
e6dfb8732a
gtk-demo: Fix hotspot handling in dnd
...
We were not remembering the pointer coordinates.
2023-02-13 18:39:45 -05:00
Aurimas Černius
453ef8c7e1
Update Lithuanian translation
2023-02-13 21:07:37 +00:00
Sabri Ünal
819595d1a9
Update Turkish translation
2023-02-13 18:08:05 +00:00
Andre Klapper
306276b689
Fix invalid markup in Belarusian UI translation
2023-02-13 18:32:03 +01:00
Emmanuele Bassi
bb15a7ef46
Merge branch 'faq-updates' into 'main'
...
faq: Some updates
See merge request GNOME/gtk!5512
2023-02-13 14:50:35 +00:00
Matthias Clasen
cd0fe13dae
faq: Add a question about parallel UIs
2023-02-13 08:54:36 -05:00
Matthias Clasen
3dcea74e85
faq: Don't number questions
...
The numbering makes it unnecessarily hard to add
and remove questions, and does not really seem
necessary. Just use bullets.
2023-02-13 08:52:04 -05:00
Matthias Clasen
537c2f6c7a
faq: Some updates
...
Miscellaneous tweaks and changes, after reading
the whole thing.
2023-02-13 08:52:03 -05:00
Matthias Clasen
72379f64e9
Merge branch 'fix-font-chooser-filter' into 'main'
...
Fix an assertion in GtkFontChooserWidget when setting a filter.
See merge request GNOME/gtk!5511
2023-02-13 12:41:48 +00:00
Akira TAGOH
4532c3020b
Fix an assertion in GtkFontChooserWidget when setting a filter.
2023-02-13 12:49:02 +09:00
Kukuh Syafaat
b60bd8a73d
Update Indonesian translation
2023-02-13 02:47:33 +00:00
Matthias Clasen
37f12e4bf9
Post-release version bump
2023-02-12 21:04:15 -05:00
Matthias Clasen
8967b2da01
4.9.4
2023-02-12 20:36:13 -05:00
Matthias Clasen
dfb019509d
docs: Document new build options
2023-02-12 20:36:13 -05:00
Matthias Clasen
a770b429ec
Merge branch 'fix-gst-gl-use' into 'main'
...
gstreamer: Fix gl context use
Closes #5586
See merge request GNOME/gtk!5508
2023-02-13 00:41:51 +00:00
Matthias Clasen
7430bd7780
gstreamer: Fix gl context use
...
We were not activating the context in which
we want to wait for the fence. This caused
a stream of critical warnings.
Fixes : #5586
2023-02-12 19:29:04 -05:00
Jacob Mealey
272a40a01a
Update TextTag and TextView indent Documentation
...
Change the documentation for both to be in line with Pango documentation
specifically regarding hanging indentation.
2023-02-12 23:12:51 +00:00
Matthias Clasen
f121f607ae
Merge branch 'search_entry_placeholder' into 'main'
...
gtksearchentry: Add getter/setter for placeholder text
See merge request GNOME/gtk!4312
2023-02-12 22:06:36 +00:00
Christopher Davis
ff45145eac
menubutton: Add active
property and getter/setter
...
GtkMenuButton currently does not provide a way to tell
if it's open programmatically. The existing methods,
`popup()` and `popdown()`, do not expose any state
to callers. If someone wanted to know whether or not
a menubutton was open, they needed the popover. Given
that GtkMenuButton can manage the popovers itself,
that's not always an option for app developers.
This commit adds the `active` property and associated
methods, where `gtk_menu_button_set_active ()` replaces
both `gtk_menu_popup ()` and `gtk_menu_popdown ()`.
This addition also mirrors changes in other places,
Such as `GtkWidget:visible` vs `show()`/`hide()`.
2023-02-12 16:47:59 -05:00
Matthias Clasen
83c5f5ff0f
Apply 4 suggestion(s) to 2 file(s)
2023-02-13 06:47:06 +09:00
Alexandros Theodotou
87d21dc5c9
gtksearchentry: Add getter/setter for placeholder text
2023-02-13 06:46:31 +09:00
Matthias Clasen
cef7e6b741
Merge branch 'mark-deprecations' into 'main'
...
docs: Mark various deprecations
See merge request GNOME/gtk!5502
2023-02-12 21:44:00 +00:00
Yuri Chornoivan
84b5e94ffd
Update Ukrainian translation
2023-02-12 17:56:09 +00:00
Matthias Clasen
679d510059
Merge branch 'template-child-dispose-order' into 'main'
...
gtk: Set widget template children to NULL before destroy unref
See merge request GNOME/gtk!4611
2023-02-12 16:36:52 +00:00
Marco Melorio
d2755e0385
inscription: Add single-line-mode property
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5444 .
2023-02-12 17:35:56 +01:00
Matthias Clasen
0c2b437643
Merge branch 'main' into 'main'
...
Add note about widgets implementing the interface adding the `horizontal`/`vertical` CSS classes
See merge request GNOME/gtk!5391
2023-02-12 16:28:12 +00:00
madmurphy
0764cf0c9c
Add note about widgets implementing the interface adding the horizontal
/vertical
CSS classes
2023-02-12 16:28:12 +00:00
Marco Melorio
2504215459
docs: Mark everything in GtkVolumeButton as deprecated
2023-02-12 17:20:11 +01:00
Marco Melorio
d45db3a961
docs: Mark everything in GtkStatusBar as deprecated
2023-02-12 17:20:11 +01:00
Matthias Clasen
557a1ed879
Merge branch 'no-more-lpr' into 'main'
...
printing: Drop the lpr backend
See merge request GNOME/gtk!5500
2023-02-12 15:29:27 +00:00
Matthias Clasen
c28b6a3ee6
Merge branch 'texture-atlas-crash' into 'main'
...
gl: Avoid a crash in the texture library
Closes #5175
See merge request GNOME/gtk!5501
2023-02-12 15:28:06 +00:00
Marco Melorio
b34c139028
docs: Mark everything in GtkLockButton as deprecated
2023-02-12 16:12:17 +01:00
Matthias Clasen
dd22e2aea9
printing: Drop the lpr backend
...
We want to consolidate and get to fewer print
backends (ideally only one), and the future is cpdb.
2023-02-12 10:10:06 -05:00
Marco Melorio
6e6f2f652c
docs: Mark everything in GtkCellAreaContext as deprecated
2023-02-12 16:09:39 +01:00
Marco Melorio
3aac70f245
docs: Mark everything in GtkAssistant as deprecated
2023-02-12 16:09:25 +01:00
Matthias Clasen
7f3ea15d80
Update POTFILES.in
2023-02-12 10:09:22 -05:00
Matthias Clasen
d3dfdd214f
gl: Avoid a crash in the texture library
...
entry->texture can be NULL, so check before
using it.
Fixes : #5175
2023-02-12 10:01:11 -05:00
Matthias Clasen
b6c3cf4eee
gl: Maintain state when truncating
...
When we truncate the command queue because it
is too big, we were messing up our state accounting
and running into criticals as a consequence.
This can be reproduced by opening a well-populated
fishbowl demo in the inspectors recorder.
Fixes : #5188
2023-02-12 09:56:32 -05:00
Matthias Clasen
157ef1d395
Deprecate GtkVolumeButton
...
Too specialized.
2023-02-12 09:48:49 -05:00
Matthias Clasen
d0263f563a
NEWS: Updates
2023-02-12 09:21:38 -05:00
Matthias Clasen
83b48bb25f
Merge branch 'mask-nodes-rebased' into 'main'
...
gsk: Introduce mask nodes
See merge request GNOME/gtk!5497
2023-02-12 14:11:47 +00:00
Matthias Clasen
81e9eca256
Merge branch 'nacho/scalebutton-active' into 'main'
...
gtkscalebutton: add active property
See merge request GNOME/gtk!5492
2023-02-12 14:01:27 +00:00
Ignacio Casal Quinteiro
44c2d585b8
gtkscalebutton: add active property
2023-02-12 14:01:26 +00:00
Matthias Clasen
348803af7d
Add a mask node demo
2023-02-12 08:35:25 -05:00
Matthias Clasen
c8bfea7aa1
Add a test for mask nodes
2023-02-12 08:35:25 -05:00
Matthias Clasen
8f47e885f0
Add gtk_snapshot_push_mask
2023-02-12 08:35:25 -05:00
Matthias Clasen
a9f50f1f7a
gl: Support mask nodes
...
Add a shader for masking.
2023-02-12 08:35:25 -05:00
Matthias Clasen
0d58e5365d
gsk: Introduce mask nodes
...
Add GskMaskNode, and support it in the render node
parser, in the inspector and in GtkSnapshot.
The rendering is just fallback for now.
Based on old work by Timm Bäder.
2023-02-12 08:35:25 -05:00
Ekaterine Papava
d00d4c4475
Update Georgian translation
2023-02-12 12:30:05 +00:00
Piotr Drąg
a6e7c38236
Update POTFILES.in
2023-02-12 13:20:48 +01:00
Matthias Clasen
eee7e59265
Merge branch 'fix_editable_label' into 'main'
...
Remove timeout when disposing GtkEditableLabel
Closes #5584
See merge request GNOME/gtk!5499
2023-02-12 02:55:45 +00:00
Matthias Clasen
c2cb1ffe9e
Merge branch 'wip/wl-dispatch-helper' into 'main'
...
wayland: Add event queue dispatch helper
See merge request GNOME/gtk!5498
2023-02-12 01:01:29 +00:00
Alexandros Theodotou
d918a77d34
Remove timeout when disposing GtkEditableLabel
...
Fixes : #5584
2023-02-12 09:45:07 +09:00
Matthias Clasen
2285ef3824
Merge branch 'scaled-textures' into 'main'
...
Scaled textures
See merge request GNOME/gtk!5488
2023-02-11 22:16:43 +00:00
Jonas Ådahl
b2a2bf819d
wayland/launch-context: Use dispatch helper
...
Otherwise we risk a busy loop if e.g. the pipe broke.
2023-02-11 23:14:53 +01:00
Jonas Ådahl
dd9433b50e
wayland: Add event queue dispatch helper
...
Dispatch failing should always fatal; use a helper to centralize the
error handling everywhere.
2023-02-11 23:13:39 +01:00
Matthias Clasen
67c53e46f9
Add gtk_snapshot_append_scaled_texture
...
This is the snapshot api corresponding to
gsk_texture_scale_node_new.
2023-02-11 15:09:38 -05:00
Matthias Clasen
238e7ec351
Add a test for scaled textures
2023-02-11 15:09:38 -05:00
Matthias Clasen
d916659781
gl: Handle GskTextureScaleNodes
2023-02-11 15:09:38 -05:00
Matthias Clasen
82c02574f1
gl: Make texture slicing more flexible
...
Allow to specify the filtering to use for the slices,
and allow forcing the number of slices. This will be
used in the next commit.
2023-02-11 15:09:38 -05:00
Matthias Clasen
26e6d2106b
gl: Pass filters down from visit_texture_node
...
For now, we always pass GL_LINEAR.
2023-02-11 15:09:38 -05:00
Matthias Clasen
625ffa2d96
gtk-demo: Add filtering to the zoom demo
2023-02-11 15:09:38 -05:00
Matthias Clasen
dd3eedd510
gtk-demo: Rewrite the zoom demo slightly
...
Use a texture directly instead of a paintable.
This will be used in the following commit to
introduce filters.
2023-02-11 15:09:38 -05:00
Matthias Clasen
dc3a72cf38
nodeparser: Support texture-scale nodes
2023-02-11 15:09:38 -05:00
Matthias Clasen
b937c19dd4
gsk: Introduce GskTextureScaleNode
2023-02-11 15:09:38 -05:00
Matthias Clasen
04c3af537c
Merge branch 'wip/handle-more-wl-dispatch-failures' into 'main'
...
wayland: Handle dispatch failing in a couple of more places
See merge request GNOME/gtk!5495
2023-02-11 19:56:45 +00:00
Matthias Clasen
cc43f5dcde
gsk: Generate mipmaps when requested
...
If the min_filter requires it, call
glGenerateMipmap for our textures.
2023-02-11 09:29:03 -05:00
Matthias Clasen
c74d7afce5
gsk: Don't limit filters too much
...
GL does not allow mipmapping for mag filters,
but it doesn't have a problem with it for min
filters.
2023-02-11 09:29:03 -05:00
Matthias Clasen
52e18eb7fb
Merge branch 'matthiasc/for-main' into 'main'
...
gdkevents.c: Fix up folding
See merge request GNOME/gtk!5496
2023-02-11 14:18:42 +00:00
Matthias Clasen
c0b5b4b8c1
gskrendernodeimpl.c: Use folding
...
Instead of homegrown markup.
2023-02-11 09:00:07 -05:00
Matthias Clasen
d497e721c9
gdkevents.c: Fix up folding
...
The modeline was lost at some point,
and superfluous spacing inserted.
2023-02-11 08:59:51 -05:00
Jonas Ådahl
a7fb9a6865
wayland: Handle dispatch failing in a couple of more places
...
Without doing this, we'll end up with risking GTK processes sitting
eating 100% CPU instead of just exit(1):ing.
2023-02-11 11:42:21 +01:00
Marek Kašík
2365d9be18
Merge branch 'cpdb' into 'main'
...
New CPDB print backend for GTK Print Dialog
See merge request GNOME/gtk!4930
2023-02-10 23:10:20 +00:00
tinytrebuchet
41b60bbd6c
New CPDB print backend for GTK Print Dialog
...
The Common Print Dialog Backends (CPDB) concept has GUI-toolkit-independent
backends for each print technology (CUPS, Print to File, cloud printing
services, ...) and each print dialog (GTK, Qt, Chromium, ...) is supposed
to use this backend, so that changes in print technologies can be centrally
and quickly covered by changing the backends and everything new gets available
in all print dialogs.
This commit provides a GTK print dialog backend to add support for the CPDB
concept. It communicates with all installed CPDB backends and so gives support
for all these print technologies to the GTK print dialog.
To make use of CPDB the GTK print dialog is supposed to be installed with this
backend and the 'Print To File' backend, and not any others to prevent printer
duplication.
2023-02-11 01:13:48 +05:30
Emin Tufan Çetin
f0d3d011ea
Update Turkish translation
2023-02-10 05:57:42 +00:00
Cameron White
0cb3555a65
Fix a couple incorrect annotations for optional parameters
...
The 'optional' annotation should be used in these cases rather than 'nullable'.
NULL can provided to ignore these output parameters, but the function is
not setting the output parameter to NULL.
2023-02-09 22:46:43 -05:00
Matthias Clasen
48e141a42c
Merge branch 'avoid-criticals-tracker' into 'main'
...
searchengine: Avoid criticals when tracker init failed
See merge request GNOME/gtk!5489
2023-02-09 19:43:31 +00:00
Gaël Bonithon
6215b38e64
searchengine: Emit a simple warning when tracker init failed
...
Failure is allowed by nature of GInitable, and this avoids unnecessary
crashing of programs running with G_DEBUG=fatal-criticals.
2023-02-09 19:46:30 +01:00
Gaël Bonithon
41490f9624
searchengine: Add missing sanity check
2023-02-09 19:25:04 +01:00
Vasil Pupkin
45e6e9a7d1
Update Belarusian translation
2023-02-08 21:48:28 +00:00
Matthias Clasen
9991d6834d
Merge branch 'stop-testing-pixbuf-formats' into 'main'
...
Drop pixbuf format tests
See merge request GNOME/gtk!5486
2023-02-07 18:48:39 +00:00
Matthias Clasen
ddf8c4dd1a
Drop pixbuf format tests
...
We have our own loaders for the formats we
always want to support, so we don't need to
check for what gdk-pixbuf supports.
2023-02-07 07:54:22 -05:00
Matthias Clasen
970072ef65
Merge branch 'file-dialog-fixes' into 'main'
...
filedialog: Robustness fixes
See merge request GNOME/gtk!5485
2023-02-07 12:42:09 +00:00
Matthias Clasen
f8321029fc
filedialog: Robustness fixes
...
This code was not working well.
2023-02-06 23:16:17 +01:00
Matthias Clasen
f83cab01ec
filechooserportal: Fix an oversight
2023-02-06 20:28:35 +01:00
Sabri Ünal
8a74770ec1
Update Turkish translation
2023-02-06 09:19:35 +00:00
Matthias Clasen
39c503c108
Merge branch 'matthiasc/for-main' into 'main'
...
CONTRIBUTING: Updates
See merge request GNOME/gtk!5483
2023-02-06 06:53:14 +00:00
Matthias Clasen
fc32b8242b
CONTRIBUTING: Updates
...
Mention matrix instead of irc, and ask
for display/graphics as essential info
in issues.
2023-02-06 07:35:11 +01:00
Piotr Drąg
7c2b4eb0e7
Update Polish translation
2023-02-05 15:22:00 +01:00
Matthias Clasen
d8b0aea6b7
Merge branch 'rename-openuri-portal' into 'main'
...
Use a Gtk prefix for dbus-generated code
Closes #5572
See merge request GNOME/gtk!5482
2023-02-05 08:27:09 +00:00
Matthias Clasen
190d8ef8ff
Use a Gtk prefix for dbus-generated code
...
Copying this file from GIO without renaming it
was not the greatest idea in retrospect.
Fixes : #5572
2023-02-05 09:09:22 +01:00
Cheng-Chia Tseng
15e9194b59
Update Chinese (Taiwan) translation
2023-02-04 16:28:15 +00:00
Matthias Clasen
0257da6cc0
Post-release version bump
2023-02-04 17:01:51 +01:00
Matthias Clasen
907f878c9f
make-release: Explicily enable introspection
2023-02-04 16:31:55 +01:00
Matthias Clasen
b2071cdeb5
4.9.3
2023-02-04 16:16:54 +01:00
Matthias Clasen
1a292bf8ab
Merge branch 'wip/carlosg/scroll-fix' into 'main'
...
gdk/x11: Reset all scroll valuators on enter
Closes #4160
See merge request GNOME/gtk!5479
2023-02-04 13:14:02 +00:00
Matthias Clasen
7e07d63a6c
Merge branch 'ebassi/stack-at-context' into 'main'
...
a11y: Clear the GtkATContext in a single step
See merge request GNOME/gtk!5477
2023-02-04 12:37:20 +00:00
Carlos Garnacho
824e983372
gdk/x11: Reset all scroll valuators on enter
...
We no longer need to make much distinction between multiple logical
devices, plus it breaks esp. with the Xwayland input device distribution.
Just iterate across all devices and reset their scroll valuators.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4160
2023-02-04 13:13:19 +01:00
Matthias Clasen
9e5417c6c7
Merge branch 'wip/carlosg/wayland-device-refactor' into 'main'
...
Refactor some wayland code
See merge request GNOME/gtk!5473
2023-02-04 07:48:33 +00:00
Matthias Clasen
e94dae8536
Merge branch 'rgba-free-checked' into 'main'
...
gtktextview: Avoid calling gdk_rgba_free for NULL values
See merge request GNOME/gtk!5474
2023-02-04 07:48:24 +00:00
Matthias Clasen
0dd163254d
Merge branch 'ebassi/accessible-editable' into 'main'
...
a11y: Simplify GtkAccessible implementation for editables
See merge request GNOME/gtk!5475
2023-02-04 07:47:36 +00:00
Emmanuele Bassi
341ecab41a
a11y: Clear the GtkATContext in a single step
...
There's no need to unrealize the GtkATContext inside dispose() and then
drop its reference inside finalize().
2023-02-03 17:11:22 +01:00
Marco Trevisan (Treviño)
9eac7ed8b9
gtktextview: Avoid calling gdk_rgba_free for NULL values
...
Related to glib#2908
2023-02-03 16:41:56 +01:00
Carlos Garnacho
4005eb8fe8
gdk/wayland: Rename gdkkeys-wayland.c file
...
Since it contains the GdkKeymap implementation, give it a more
obvious name.
2023-02-03 16:15:34 +01:00
Carlos Garnacho
1d4ceac2c5
gdk/wayland: "Split" GdkWaylandDevice implementation out
...
This is a bit spaghetti right now, since seats and devices were
heavily entangled there are a number of crossed private API calls that
should ideally not be there.
Let this be a first step, so more bits may move from the seat
implementation to devices.
2023-02-03 16:15:34 +01:00
Carlos Garnacho
a5246a6856
gdk/wayland: Split GdkDevicePad wayland implementation
...
This now lives in its own C file.
2023-02-03 16:08:07 +01:00
Lukáš Tyrychtr
11d235d165
a11y: Simplify GtkAccessible implementation for editables
...
This commit implements the idea brought up in #5032 , and provides a
simple function for GtkEditable implementations using a delegate object.
The accessible state is proxied from the outher GtkEditable to the
delegate.
2023-02-03 16:08:06 +01:00
Carlos Garnacho
af00beb772
gdk/wayland: Move struct declarations to header
...
These will be used from outside the main file, after we are
done splitting it.
2023-02-03 16:00:01 +01:00
Carlos Garnacho
e5cd9354d5
gdk/wayland: Move GdkWaylandDevice data to private struct
...
Before splitting this object, avoid leaking details in its struct.
2023-02-03 15:58:11 +01:00
Carlos Garnacho
6426ab7466
gdk/wayland: Rename gdkdevice-wayland.c to gdkseat-wayland.c
...
This file, event though a clump of input-y objects, has more of
seats than anything else. Rename it so that we can start splitting
these objects out of it.
2023-02-03 15:58:11 +01:00
Matthias Clasen
b710df6f45
Merge branch 'file-chooser-context-menu' into 'main'
...
filechooser: Fix context menus
Closes #5554
See merge request GNOME/gtk!5472
2023-02-03 13:39:21 +00:00
Matthias Clasen
50998b0ee9
Merge branch 'drag-icon-robustness' into 'main'
...
dragicon: Handle files without info
See merge request GNOME/gtk!5460
2023-02-03 13:19:26 +00:00
Matthias Clasen
92c2c68c7b
filechooser: Fix context menus
...
We only want to show the file list context menu
when we are over the file list.
Fixes : #5554
2023-02-03 14:17:34 +01:00
Matthias Clasen
c2f5b64b5d
Merge branch 'ebassi/public-accessible' into 'main'
...
Make GtkAccessible public
Closes #4240
See merge request GNOME/gtk!5470
2023-02-03 11:31:06 +00:00
Matthias Clasen
460bf6d8b9
inspector: Show if accessibles aren't realized
...
This prevents confusion and makes it clear
what is going on.
2023-02-03 11:49:17 +01:00
Emmanuele Bassi
a0dff87c86
a11y: Documentation and code style fixes
2023-02-03 11:49:17 +01:00
Emmanuele Bassi
3015b9f120
a11y: Fix get_bounds() implementation
...
Don't allocate graphene_rect_t, and fix the size retrieval.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
01549e3c91
Take the widget transform into account when computing the bounds for a11y
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
bc48bfc2b6
a11y: Use a DOM-like API for iterating accessible objects
...
The `get_child_at_index()` API model comes from AT-SPI, and it's not an
efficient design, especially when coupled with large widgets.
Replace `get_child_at_index()` with `get_first_accessible_child()` and
`get_next_accessible_sibling()`.
That allows efficiently retrieving all the children, simplifies the
implementation of GtkAccessible in GtkWidget and closely resembeles the
GtkWidget API.
Getting the last child and previous sibling for iterating backwards is
not a part of the interface at the moment, but they can be added at a
later date.
Note that this change required tracking the next stack page in
GtkStackPage.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
6100258ba2
a11y: Rename GtkAccessible.get_parent
...
Avoid a collision when the type implementing the GtkAccessible interface
already has a `get_parent()` method—like GtkWidget.
2023-02-03 11:49:17 +01:00
Emmanuele Bassi
e083bd7920
Apply trivial review suggestions
2023-02-03 11:49:17 +01:00
Emmanuele Bassi
e915546b44
Add versioned symbol annotations
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
b6cfe35940
Style fixes
...
Documentation and coding style updates.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
4cd9fd9b15
stack: Use a pointer array for children
...
Reduce our dependency on linked lists; pointer arrays are better at
cache locality.
Additionally, we can avoid quadratic behaviors when finding a child at a
given index.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
6f8cab0e9d
Style fix
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
6eb9161906
Improve documentation
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
d13695f586
a11y: Implement new GtkAccessible vfuncs in GtkStack
...
Implement the virtual a11y children for GtkStack.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
749919c551
Update API docs
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
58980e0b4a
Make GtkAccessible public
...
Out of tree classes need to be able to implement the GtkAccessible
interface, in order to implement custom accessible objects.
Fixes : #4240
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
5813a5cace
a11y: Add bounds rectangle to GtkAccessible
...
Make the bounds calculation part of the accessible interface.
Bounds are used by ATs like Orca to implement features like Flat Review:
https://help.gnome.org/users/orca/stable/howto_flat_review.html.en
Or to determine the area of a non-presentational widget.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
f88b777fe5
widget: Implement new GtkAccessible vfuncs
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
a80af681b8
a11y: Skip non-presentable objects
...
Don't get confused with non-presentable objects when iterating the list
of children.
2023-02-03 11:49:17 +01:00
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
Matthias Clasen
92612c2265
filetransfer: Be more careful around files
...
File may not have paths, and we should handle
that without incident. While we are at it, add
some logging so GDK_DEBUG=dnd gives us enough
output to see what is going on.
2023-01-30 14:03:13 -05:00
Matthias Clasen
4e1b46a7ec
dragicon: Handle files without info
...
g_file_query_info can (and does) fail,
occasionally. Handle it.
2023-01-30 14:03:13 -05:00
Matthias Clasen
55f7f7d0ee
gst: Fix synchronization
...
It does not make sense to sync and wait in the
same context, that is just a no-op. The intention
of this code clearly was to sync in the gst
context, and wait in the gdk one.
That also matches what the gtk sink implementation
in gstreamer does.
2023-01-30 12:04:49 -05:00
Matthias Clasen
442cd4a369
Merge branch 'password-entry-unrealize' into 'main'
...
passwordentry: Fix an asymmetry
Closes #5285
See merge request GNOME/gtk!5457
2023-01-30 12:29:33 +00:00
Matthias Clasen
53af41e2fa
passwordentry: Fix an asymmetry
...
When connecting a signal in realize,
we should disconnect in unrealize.
Fixes : #5285
2023-01-29 22:39:28 -05:00
Matthias Clasen
c43e1f3d0a
gsk: Quiet a compiler warning
2023-01-28 21:13:10 -05:00
Jürgen Benvenuti
32e855ad61
Update German translation
2023-01-28 19:59:19 +00:00
Benjamin Otte
034a8a5501
Merge branch 'tooltip-size-simplification' into 'main'
...
tooltip: Don't play games with max-width-chars
Closes #4470 and #5521
See merge request GNOME/gtk!5455
2023-01-28 18:26:00 +00:00
Matthias Clasen
1e9dbf2df0
tooltip: Prevent too-wide tooltip windows
...
Set the label to expand, so it actually fills
the width that we allocated for it, instead
of shrinking back to the minimum width for
its height.
Fixes : #5521
2023-01-28 13:07:26 -05:00
Matthias Clasen
dce21f06dd
tooltip: Don't play games with max-width-chars
...
Setting max-width-chars to the number of characters
in the string works ok only as long as the average
char width we get from Pango matches reality. Sadly
that seems not always the case, and this code was
causing short Chinese tooltips to always be broken
into two lines.
Fixes : #4470
2023-01-28 13:06:30 -05:00
Piotr Drąg
56c1c4152f
Update POTFILES.in
2023-01-28 14:05:01 +01:00
Matthias Clasen
a9d2fa296e
Merge branch 'position-as-double' into 'main'
...
Boyscouting: fix position type in `gtk_drag_source_drag_begin()`
See merge request GNOME/gtk!5437
2023-01-28 03:24:19 +00:00
Carlos Garnacho
5bccb106c2
Merge branch 'work/zzag/activation-token-dbus' into 'main'
...
wayland: Fix handling of activation-token in org.freedesktop.Application requests
See merge request GNOME/gtk!5151
2023-01-28 00:44:25 +00:00
Yuri Chornoivan
45086487f1
Update Ukrainian translation
2023-01-27 19:23:39 +00:00
Vlad Zahorodnii
65f03121a4
wayland: Fix handling of activation-token in org.freedesktop.Application requests
...
At the moment, GTK applications search for "desktop-startup-id" in the
platform data on Wayland , but desktop environments such as plasma set
"activation-token" property instead as indicated in the spec:
activation-token: This should be a string of the same value as would
be stored in the XDG_ACTIVATION_TOKEN environment variable, as specified
by the XDG Activation protocol for Wayland.
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#dbus
2023-01-27 19:20:53 +00:00
Carlos Garnacho
09769193d7
Merge branch 'wip/carlosg/broadway-fix' into 'main'
...
gdk/broadway: Add deprecation guards around gdk_display_put_event()
See merge request GNOME/gtk!5450
2023-01-27 19:20:28 +00:00
Carlos Garnacho
7f8acf960b
gdk/broadway: Add deprecation guards around gdk_display_put_event()
...
This went missing.
2023-01-27 19:59:36 +01:00
Matthias Clasen
ee0e026237
Merge branch 'fix_5551' into 'main'
...
object_tree.c: One gtk_list_item_get_child call is redundant
Closes #5551
See merge request GNOME/gtk!5449
2023-01-27 16:22:17 +00:00
Matthias Clasen
6bfd581a72
Merge branch 'wip/sophie-h/scrolled-window-propagate-event' into 'main'
...
scrolledWindow: Propagate event for no scrolling
See merge request GNOME/gtk!5447
2023-01-27 14:54:33 +00:00
Lukáš Tyrychtr
7b6f254e64
object_tree.c: One gtk_list_item_get_child call is redundant
...
Fixes #5551
2023-01-27 15:43:33 +01:00
Hugo Carvalho
47955cfe62
Update Portuguese translation
2023-01-27 14:26:32 +00:00
Sophie Herold
e62ca17f88
scrolledWindow: Propagate event for no scrolling
2023-01-26 20:12:10 +01:00
Matthias Clasen
c24ba58acb
Merge branch 'broadway-modal-hint' into 'main'
...
[GTK4] gdk/broadway: Implements modal hint for Broadway surface
See merge request GNOME/gtk!4428
2023-01-26 02:44:54 +00:00
Matthias Clasen
30987168fb
Merge branch 'fix_5543' into 'main'
...
GtkCssProvider: fix element type in docs
Closes #5543
See merge request GNOME/gtk!5441
2023-01-25 13:08:07 +00:00
Lukáš Tyrychtr
93a875bf20
Actually, the annotation is not needed in this case
2023-01-25 11:46:53 +01:00
Yosef Or Boczko
aac3bf581a
Update Hebrew translation
2023-01-25 08:15:09 +00:00
Matthias Clasen
869f07521c
Merge branch 'macos-fix-popups' into 'main'
...
macos: Fix popup event handling
Closes #5528
See merge request GNOME/gtk!5436
2023-01-24 16:37:23 +00:00
Matthias Clasen
7e392a1186
Merge branch 'wip/abono/gtk-switch-state-off' into 'main'
...
gtkswitch: Allow to set state FALSE while keeping active TRUE
See merge request GNOME/gtk!5442
2023-01-24 16:08:57 +00:00
Alessandro Bono
53d87e42a5
gtkswitch: Decouple set_state with set_active.
...
Allow the user to set a state that doesn't reflect the active property.
2023-01-24 14:55:16 +01:00
Arjan Molenaar
6757a1b409
macos: Propagate events for child surfaces
...
Before, popup windows did not respond to mouse clicks.
This change fixes that.
Fixes #5528 .
2023-01-24 09:07:33 +01:00
Maxim Zakharov
115738dd2f
remove unused variable
2023-01-24 11:41:27 +11:00
Matthias Clasen
5caa66ffb7
Merge branch 'macos-native-dnd' into 'main'
...
macos: DnD Drag support
Closes #3423
See merge request GNOME/gtk!5416
2023-01-23 22:01:30 +00:00
Emmanuele Bassi
7df73c4fd2
Use wording from a suggestion
2023-01-23 11:50:28 +00:00
Lukáš Tyrychtr
1ea5a08c8f
GtkCssProvider: fix element type in docs
...
The method takes an array of char, which actually is UTF-8, so make the docs say so.
Fixes #5543
2023-01-23 12:12:00 +01:00
Matthias Clasen
9c669cbe90
Merge branch 'matthiasc/for-main' into 'main'
...
iconhelper: Handle GtkSymbolicPaintable
See merge request GNOME/gtk!5440
2023-01-22 18:36:11 +00:00
Matthias Clasen
1a5184bc85
iconhelper: Handle GtkSymbolicPaintable
...
If we are given a GtkSymbolicPaintable,
treat it as symbolic.
2023-01-22 13:18:18 -05:00
Jordi Mas
8f2ad8f154
Update Catalan translation
2023-01-21 16:58:51 +01:00
Arjan Molenaar
d6ef39b9a2
macos: remove dead code
2023-01-21 15:22:13 +01:00
Arjan Molenaar
52f6acd398
macos: Send dragging events directly to the display
...
Instead of adding events to the application event queue, dispatch
them directly to the right display. We know this when the event is
to be dispatched.
This is the same as used for the `sendEvent` method in `GdkMacosWindow`.
To achieve this I factored out the generic NSEvent to GdkEvent translation.
We can send an event directly, when we receive it in the GdkMacosWindow
directly from the OS.
2023-01-21 14:54:12 +01:00
Ekaterine Papava
2f894bb4ef
Update Georgian translation
2023-01-20 16:04:31 +00:00
Matthias Clasen
2509fe0d17
Merge branch 'matthiasc/for-main' into 'main'
...
Cosmetics
See merge request GNOME/gtk!5434
2023-01-17 21:37:39 +00:00
Matthias Clasen
83a5611ce8
settings: Modernize the code
...
Drop some things that are no longer relevant,
and make this code look like modern GObject code.
2023-01-17 15:19:50 -05:00
Arjan Molenaar
136c1ccd2c
macos: Update event source doc
...
Update the documentation with the interaction pattern we
need to support DnD.
2023-01-17 16:37:21 +01:00
Arjan Molenaar
16e23b3f9e
macos: align functions in gdkmacosdrag-private.h
2023-01-17 16:12:57 +01:00
Matthias Clasen
af088d5e11
settings: Drop object_list
...
This code came from a time when we were installing
additional settings at runtime. We no longer do that,
so this code is unnecessary.
2023-01-17 08:30:37 -05:00
Matthias Clasen
a6e1c5c96a
modules: Cosmetics
...
Use g_strv_length, instead of open-coding it.
2023-01-17 07:47:28 -05:00
Matthias Clasen
3c8c54ed15
stylecascade: Avoid some allocations
2023-01-17 07:39:51 -05:00
Arjan Molenaar
628aeda7ee
macos: Provide the right drag action
...
We should use the drag action/operation provided by the
drag handlers, not rely on our internal bookkeeping.
2023-01-16 23:21:35 +01:00
Arjan Molenaar
2669dc269b
macos: Default kCFRunLoopAllActivities
...
It's actually a mask, but we'll keep it in to
avoid compiler warnings.
2023-01-16 20:28:38 +01:00
Matthias Clasen
c4d3d72c57
Merge branch 'fix-hidpi-pictures' into 'main'
...
picture: Fix hi-dpi image handling
See merge request GNOME/gtk!5430
2023-01-16 14:32:01 +00:00
Matthias Clasen
cd79159420
picture: Fix hi-dpi image handling
...
The idea behind this code was to let scalable
images (i.e. mainly SVGs) provide twice as much
detail when the scale is 2. But we were also
using a scaler for pngs, causing them to be too
small on a hidpi screen. Fix that.
Note that there are cases where you want scaling
for pngs (when you display them scaled down, so
the image has 'hidden' detail). But we are not
attempting to handle that situation automatically.
2023-01-16 08:48:37 -05:00
Arjan Molenaar
1bc63eeadb
macos: Queue events during drag
...
By passing the events during a (midal-ish) drag operation to the main loop,
we're able to keep up with what's happening. This allows the internal
drag state (GtkDragSource) to be updated and be done when the drag is
done.
2023-01-16 14:47:49 +01:00
Emin Tufan Çetin
071c6c60c0
Update Turkish translation
2023-01-15 22:47:27 +00:00
Matthias Clasen
fc24f401b7
Merge branch 'matthiasc/for-main' into 'main'
...
Use GtkUriLauncher where appropriate
See merge request GNOME/gtk!5432
2023-01-15 18:48:22 +00:00
Matthias Clasen
6c96e51b07
Use GtkUriLauncher where appropriate
...
GtkLabel, GtkLinkButton and GtkAboutDialog
all have a uri, not a file, so it makes more
sense to use a GtkUriLauncher.
2023-01-15 13:26:53 -05:00
Matthias Clasen
e703163bc4
Merge branch 'uri-launcher-demo' into 'main'
...
urilauncher: Fix finish function mismatch
See merge request GNOME/gtk!5431
2023-01-15 17:47:18 +00:00
Matthias Clasen
ad549cbded
gtk-demo: Add a uri launcher demo
2023-01-15 11:58:43 -05:00
Matthias Clasen
673beef210
urilauncher: Fix finish function mismatch
...
We need to call the finish function that
matches the async function.
2023-01-15 11:58:09 -05:00
Matthias Clasen
55baa1f2e1
Merge branch 'docs-escape-xml-tag' into 'main'
...
Escape GtkBuilder XML tag in comment with backtick
Closes #5312
See merge request GNOME/gtk!5429
2023-01-15 15:12:28 +00:00
Arjan Molenaar
1d8a23e97b
macos: Provide fallback pasteboard for gtype Dnd
...
The Drag data should pass through the macos pasteboard system.
We need to provide some pasteboard type. Let's make it a "URL",
which is a pretty generic type anyway.
2023-01-15 10:03:47 +01:00
Arjan Molenaar
422b4b6561
macos: No need to drag handle events
...
This is handled by the DraggingSource object.
2023-01-15 10:03:47 +01:00
Arjan Molenaar
27ee8b23fd
macos: No need to grab a seat
...
The macOS DnD logic will take over anyway.
2023-01-15 10:03:47 +01:00
Arjan Molenaar
b9847795a7
macos: Support dragging from GdkMacosWindow
...
The handling is done similar to drag targets.
Note that dragging is a modal action on macos: no events
are sent to the main window. This could cause trouble when
we finish the drag, and not finish the gesture in GTK.
2023-01-15 10:01:56 +01:00
sunce
b13f05537b
Escape GtkBuilder XML tag in comment with backtick
...
Escape XML tags in gi-docgen oriented comment e.g. from <child> to
`<child>`, so that they don't become HTML tag on the final webpage.
This fix includes everything from commit ff46ea64
and #5312 .
Fixes #5312
2023-01-15 16:55:18 +08:00
Arjan Molenaar
757d1916ae
Fix dx, dy position in gtk_drag_source_drag_begin
...
Coordinates are double. This change avoid an unneeded cast.
2023-01-15 09:52:43 +01:00
Matthias Clasen
0834dac6ee
Merge branch 'matthiasc/for-main' into 'main'
...
widgetfactory: Load textures in threads
See merge request GNOME/gtk!5428
2023-01-15 04:12:47 +00:00
Matthias Clasen
3c31f72219
texture: Update docs
...
Document that we support TIFF as well.
2023-01-14 22:48:57 -05:00
Matthias Clasen
a0f63160d6
widgetfactory: Load textures in threads
...
It is useful to show how this is done, even
though the images here are not terribly large.
2023-01-14 22:38:20 -05:00
Matthias Clasen
c99d85954a
Merge branch 'nielsdg/gtkwidgetactionactivatefunc-nullable-variant' into 'main'
...
Add missing nullable to GtkWidgetActionActivateFunc
See merge request GNOME/gtk!5424
2023-01-15 00:46:11 +00:00
Matthias Clasen
33f31d06f9
Merge branch 'uri-launcher' into 'main'
...
filelauncher: Plug a memory leak
See merge request GNOME/gtk!5425
2023-01-14 22:59:01 +00:00
Matthias Clasen
bf4b40f17e
docs: Update deprecations for gtk_show_uri
...
We have a better replacement now.
2023-01-14 17:39:28 -05:00
Matthias Clasen
7aba9e3295
urilauncher: Add cross-references to the docs
2023-01-14 17:39:28 -05:00
Matthias Clasen
3080cb7acd
Add GtkUriLauncher
2023-01-14 17:39:28 -05:00
Matthias Clasen
4b404f0dea
Add g_openuri_portal_open_uri_async
...
This avoids a roundtrip through GFile and
thus works with random uri schemes.
2023-01-14 14:32:51 -05:00
Matthias Clasen
0c1c0524c7
openuri: Some reshuffling
...
This is in preparation of adding a method
that takes a uri instead of a GFile.
2023-01-14 14:32:51 -05:00
Matthias Clasen
b58ef290dc
filelauncher: Plug a memory leak
...
Oops
2023-01-14 14:32:51 -05:00
Niels De Graef
1387fba7f8
Add missing nullable to GtkWidgetActionActivateFunc
...
The `GVariant` that is passed on to the `GtkWidgetActionActivateFunc`
can be `NULL` in case the parameter type is also `NULL`, so mark it
nullable.
2023-01-14 15:30:15 +01:00
Matthias Clasen
34b9ec5be2
Merge branch 'matthiasc/for-main' into 'main'
...
Fix a compiler warning
See merge request GNOME/gtk!5423
2023-01-14 05:30:10 +00:00
Matthias Clasen
cefdfbd894
icontheme: Streamline the suffix handling code
2023-01-14 00:14:43 -05:00
Matthias Clasen
3676ddbdff
icontheme: Avoid some allocations
...
When loading icon themes, we can reuse memory
instead of allocating and freeing in a loop.
2023-01-14 00:14:43 -05:00
Matthias Clasen
7c1a0e0c15
icontheme: Keep a single string set
...
Instead of keeping a GtkStringSet per IconTheme,
just make one for the whole GtkIconTheme.
This avoids loops of the themes in some places, and
due to the overlap in icon names between the themes,
it reduces the amount of memory we use for the icon
names with Adwaita+hicolor from 5+4 chunks to 6 chunks.
2023-01-14 00:14:43 -05:00
Matthias Clasen
19bb043a85
testsuite: Fix various compiler warnings
...
These are mostly dead stores that clang
isn't happy with.
2023-01-14 00:14:43 -05:00
Matthias Clasen
fecc80b59c
Fix a compiler warning
...
Clang things that timings can be NULL here,
and I think it might be right.
2023-01-14 00:14:41 -05:00
Matthias Clasen
1648dc36f8
Merge branch 'wip/corey/fix-docs' into 'main'
...
docs: Fix dependency names
See merge request GNOME/gtk!5422
2023-01-14 04:23:34 +00:00
Matthias Clasen
a27a2cbf40
Merge branch 'matthiasc/for-main' into 'main'
...
Silence a compiler warning
See merge request GNOME/gtk!5421
2023-01-14 00:18:50 +00:00
Corey Berla
e418656a04
docs: Fix dependency names
...
When gi-docgen added the "related" key, it also began checking
that the dependencies were actually dependencies otherwise they aren't
listed as dependencies. The capitalization needs to match the
namespace.
2023-01-13 14:24:33 -08:00
Matthias Clasen
d4ec1afe44
Merge branch 'fix-spinner-stop' into 'main'
...
gtkcssanimatedstyle: Fix return of new_advance()
Closes #4426
See merge request GNOME/gtk!5420
2023-01-13 20:14:25 +00:00
Arjan Molenaar
420be8fb0f
macos: run glib idle functions when in nested run loop
...
It looks like DnD starts a nested run loop. We still have to run our
GLib handlers, so animations work.
2023-01-13 20:03:55 +01:00
Christian Hergert
9c3629653f
macos: abstract pasteboard for use in clipboard and drag
...
This will allow us to share a single NSPasteboardItem and data provider
implementation for both GdkClipboard and GdkDrag.
2023-01-13 20:03:55 +01:00
Christian Hergert
eb5cf831b1
macos: refactor pasteboard components into separate module
...
This will make it easier to reuse from drag integration so that we don't
require clipboards for everything.
We will need to subclass the pasteboard provider twice, however, both
for clipboard and dragging.
2023-01-13 20:03:55 +01:00
Matteo Percivaldi
374d97008b
gtkcssanimatedstyle: Fix return of new_advance()
...
This was causing animation and transition to stop randomly and reset
their state to initial state.
This issue has existed since commit
7b68bdb831
.
Closes #4426
2023-01-13 18:08:56 +01:00
Matthias Clasen
fecc923c2c
Silence compiler warnings
...
Clang complains that these are dead stores.
They are, indeed.
2023-01-13 12:07:40 -05:00
Matthias Clasen
703ed608c0
Fix a compiler warning
...
Clang things that load_error might be NULL here.
It may be right.
2023-01-13 12:07:40 -05:00
Matthias Clasen
99f07c7c0a
Fix a compiler warning
...
Clang things that timings can be NULL here,
and I think it might be right.
2023-01-13 12:07:40 -05:00
Matthias Clasen
51b4d70b8f
gridview: Add a few assertions
...
Just to help static analysis out.
self->n_columns can't ever be 0, since
we clamp it between min_columns and
max_columns, with min_columns always
being at least one.
2023-01-13 12:07:40 -05:00
Matthias Clasen
746d12fc43
Silence a compiler warning
...
Clang was complaining that we never use the
value stored in mime_type. Just don't store it,
we are only interested in the side-effect
(interning the string).
2023-01-13 12:07:40 -05:00
Matthias Clasen
96ce9e10b8
Merge branch 'faster-ci' into 'main'
...
Add a build-testsuite option
See merge request GNOME/gtk!5419
2023-01-13 12:57:15 +00:00
Matthias Clasen
3090795351
ci: Try to speed up builds a bit
...
Don't build demos and tests, and only build
the testsuite where we want to run it.
2023-01-13 07:26:41 -05:00
Matthias Clasen
815b54f3df
Update the build documentation
2023-01-13 07:15:15 -05:00
Matthias Clasen
9ad27e4371
Add a build-testsuite option
...
This will let us run the testsuite in ci without
having to build all the manual tests.
2023-01-13 07:14:33 -05:00
Matthias Clasen
a6e1804474
Merge branch 'macos-werror' into 'main'
...
CI: turn on -Werror for MacOS build
See merge request GNOME/gtk!5418
2023-01-13 03:08:36 +00:00
Benjamin Otte
7ae549e253
CI: turn on -Werror for MacOS build
...
The build is error-free and we want to keep it that way.
We'd also like to make Timm do real work instead of having to fix clang
warnings all the time and this build is a clang build.
2023-01-12 20:12:37 -05:00
Matthias Clasen
434d8ef0ea
Merge branch 'wip/chergert/fix-macos-warnings' into 'main'
...
Fixes a few compilation warnings on macOS
See merge request GNOME/gtk!5415
2023-01-13 00:10:48 +00:00
Matthias Clasen
31a6d73635
Merge branch 'ebassi/pin-gi' into 'main'
...
Add gobject-introspection as a subproject
See merge request GNOME/gtk!5414
2023-01-12 23:35:23 +00:00
Christian Hergert
958ecf2855
gdk/macos: fix warning about _coreCursorType
2023-01-12 13:22:47 -08:00
Christian Hergert
fb12ad807a
gsk/gl: fix warning when join_sources() is unused
2023-01-12 13:22:25 -08:00
Christian Hergert
965c52d369
gdk: fix warning when !HAVE_EGL
2023-01-12 13:22:02 -08:00
Emmanuele Bassi
474872563f
Add gobject-introspection as a subproject
...
We pin GLib, so we must also pin g-i to the same version, otherwise
we'll get weird mismatches during development.
2023-01-12 17:56:37 +00:00
Matthias Clasen
b92e52bf0e
Merge branch 'matthiasc/for-main' into 'main'
...
css: Avoid some allocations
See merge request GNOME/gtk!5413
2023-01-12 15:20:49 +00:00
Matthias Clasen
d226dc3812
iconcache: Be a bit less wasteful
2023-01-12 00:36:18 -05:00
Matthias Clasen
46e0fde606
css: Avoid more allocations for tokens
...
Make short string tokens static.
2023-01-12 00:12:09 -05:00
Matthias Clasen
1e7f525e0e
css: Avoid some allocations
...
Avoid duplicating the function name just
for an error message.
2023-01-12 00:12:09 -05:00
Matthias Clasen
d43e0fb9a7
css: Avoid allocation for tokens
...
All valid dimensions are short, so store
the dimension inside the token.
2023-01-12 00:11:46 -05:00
Matthias Clasen
6fb6f47fc8
css: Avoid some allocations
...
Reuse the name_buffer for reading strings.
2023-01-12 00:11:11 -05:00
Matthias Clasen
0f7d8e04d8
css: Some inlining
2023-01-12 00:11:10 -05:00
Matthias Clasen
c9fca559dc
Cosmetics
2023-01-12 00:11:10 -05:00
Matthias Clasen
b9d1b5d6a3
icontheme: Bit a bit less wasteful
2023-01-12 00:11:10 -05:00
Emin Tufan Çetin
5f75ba46a5
Update Turkish translation
2023-01-11 07:01:44 +00:00
Emin Tufan Çetin
2507301983
Update Turkish translation
2023-01-11 05:41:40 +00:00
Matthias Clasen
41aeff331d
texthistory: Avoid g_autofree
...
msvc does not like it, unfortunately.
2023-01-10 22:20:57 -05:00
Matthias Clasen
3aab48ec16
Merge branch 'wip/chergert/fix-5506' into 'main'
...
istring: fix istring_prepend() on malloc transition
Closes #5506
See merge request GNOME/gtk!5411
2023-01-11 02:39:32 +00:00
Christian Hergert
ad0348b85e
texthistory: add debugging helpers to print undo stack
...
This is helpful to have when tracking down issues like #5506 .
2023-01-10 13:36:16 -08:00
Christian Hergert
6a134551b9
istring: fix istring_prepend() on malloc transition
...
When transitioning from internal to malloc, the strings were placed in
the wrong order to g_strconcat(). This fixes an issue with undo where
if you hit the boundary in just the right way, your undo stack will do
unexpected things.
Fixes #5506
2023-01-10 13:32:38 -08:00
Matthias Clasen
0e1ae6ad11
Merge branch 'matthiasc/for-main' into 'main'
...
Add some more text undo tests
See merge request GNOME/gtk!5410
2023-01-10 19:05:13 +00:00
Aleksandr Melman
5baf4b4b2e
Update Russian translation
2023-01-10 12:57:03 +00:00
Matthias Clasen
63560061e8
Add some more text undo tests
...
Unsuccessfully trying to reproduce #5506 .
2023-01-10 07:34:55 -05:00
Matthias Clasen
be721f5797
Merge branch 'matthiasc/for-main' into 'main'
...
Deprecate gdk_display_put_event
See merge request GNOME/gtk!5409
2023-01-09 21:15:08 +00:00
Matthias Clasen
0073bb79a7
Deprecate gdk_display_put_event
...
The documentation already tells you not to
use this function.
Ifdef the remaining users in the X11 backend.
2023-01-09 15:46:25 -05:00
Matthias Clasen
f59b506674
Merge branch 'macos-stable-dnd' into 'main'
...
macos: Drag and drop should not freeze applications
See merge request GNOME/gtk!5291
2023-01-09 11:52:50 +00:00
Matthias Clasen
88b4404296
Merge branch 'wip/corey/popover-accel' into 'main'
...
gtkmodelbutton: Ensure that accel label is always aligned to end
Closes #5504
See merge request GNOME/gtk!5407
2023-01-09 10:58:14 +00:00
Corey Berla
e20bc7723a
gtkmodelbutton: Ensure that accel label is always aligned to end
...
When the model button just has a text label and accel text,
the button fills and the accel label is implicitly aigned to end.
When there's also a icon, even though it's not shown (because
icons are only shown if there's no text), the button doesn't fill
and the accel ends up not aligned (assuming one of the other buttons
is longer). Ensure that the accel label is aligned to the end.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5504
2023-01-08 22:32:22 -08:00
Emmanuele Bassi
7edf8841fb
Merge branch 'a11y_check_null_path' into 'main'
...
a11y: Avoid crashing if GtkAtSpiContext::path is NULL
See merge request GNOME/gtk!5405
2023-01-09 00:14:21 +00:00
Emmanuele Bassi
6b5b7eab04
Merge branch 'doc-improvements' into 'main'
...
Two docs improvements
See merge request GNOME/gtk!5406
2023-01-08 22:16:49 +00:00
Marco Melorio
c775262e9d
docs: Improve gtk_window_present description
...
Move most of the documentation from gtk_window_present_with_time and
also reword it a bit to make it more understandable.
2023-01-08 22:41:19 +01:00
Marco Melorio
553fde9761
docs: Don't mention deprecated API in gtk_widget_set_visible
...
That statement is true, but since that API is deprecated, it doesn't
need to be there anymore to avoid confusing people.
2023-01-08 21:49:28 +01:00
Barnabás Pőcze
f2593dec4b
a11y: Use fallback logic when GApplication has no DBus object path
...
Use the fallback logic to generate the base path for the GtkAtSpiRoot
if the GApplication has no DBus object path to guarantee that
the base path will not stay NULL.
2023-01-08 19:58:54 +01:00
Barnabás Pőcze
ab5a6ed0f1
a11y: Check if path is NULL when removing from cache
...
`gtk_at_spi_cache_add_context()` checks if the GtkAtSpiContext's path
is NULL before inserting the context object into the hash table.
Do the same in `gtk_at_spi_cache_remove_context()` to avoid a NULL
pointer dereference in `g_str_hash()` during the hash table lookup
if a context with NULL path is removed. That can happen when the
GtkAtSpiRoot::base_path is NULL, which, in turn, can happen if
`g_application_get_dbus_object_path()` returns NULL.
==394047==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fd1966f8b84 bp 0x7fff11e3ded0 sp 0x7fff11e3de58 T0)
==394047==The signal is caused by a READ memory access.
==394047==Hint: address points to the zero page.
#0 0x7fd1966f8b84 in g_str_hash (/usr/lib/libglib-2.0.so.0+0x37b84)
#1 0x7fd1966f9c09 in g_hash_table_contains (/usr/lib/libglib-2.0.so.0+0x38c09)
#2 0x7fd196062c10 in gtk_at_spi_cache_remove_context ../gtk/a11y/gtkatspicache.c:447
#3 0x7fd19606e0a9 in gtk_at_spi_root_unregister ../gtk/a11y/gtkatspiroot.c:653
#4 0x7fd196067f58 in gtk_at_spi_context_unrealize ../gtk/a11y/gtkatspicontext.c:1559
#5 0x7fd195ced97f in gtk_at_context_unrealize ../gtk/gtkatcontext.c:668
#6 0x7fd195f5576e in gtk_widget_unroot_at_context ../gtk/gtkwidget.c:2399
#7 0x7fd195f55bd2 in gtk_widget_unroot ../gtk/gtkwidget.c:2499
...
2023-01-08 19:56:49 +01:00
Matthias Clasen
dd3cdc52f5
Fix code style
2023-01-08 14:41:11 +00:00
Matthias Clasen
5a3156a8b7
gdk: Update docs
...
Update the docs for gdk_display_get_monitor_at_surface.
2023-01-07 21:35:29 -05:00
Matthias Clasen
a4c2f19155
Merge branch 'gdk-display-get-monitor-is-nullable' into 'main'
...
gdkdisplay: Document get_monitor_at_surface can return NULL
Closes #5075
See merge request GNOME/gtk!4917
2023-01-07 20:39:04 +00:00
Matthias Clasen
be8fb1e9b8
Merge branch 'more-filesystemmodel-cleanups' into 'main'
...
filesystemmodel: Crop tree model cruft
See merge request GNOME/gtk!5402
2023-01-07 18:42:14 +00:00
Matthias Clasen
52c97dbf67
Merge branch 'win-file-ext' into 'main'
...
filechoosernativewin32: Set default extension
See merge request GNOME/gtk!5266
2023-01-07 18:14:37 +00:00
robxnano
57ebf26f15
filechoosernativewin32: Set default extension
2023-01-07 18:14:36 +00:00
Matthias Clasen
32247bc50e
filesystemmodel: Drop tree model cruft
...
We no longer need the placeholder item for the
editable, so drop it.
2023-01-07 12:22:25 -05:00
Matthias Clasen
ad940bc892
filesystemmodel: Rename private header
2023-01-07 12:01:15 -05:00
Matthias Clasen
7d34e7e0f7
Merge branch 'filesystemmodel-cleanups' into 'main'
...
filesystemmodel: Cleanup unused defines
See merge request GNOME/gtk!5401
2023-01-07 14:36:20 +00:00
Georges Basile Stavracas Neto
b2f43076bd
gtkfilesystemmodel: Use g_clear_* helpers
...
Saves some code.
2023-01-07 09:17:37 -05:00
Georges Basile Stavracas Neto
202e889577
filesystemmodel: Use G_DECLARE_FINAL_TYPE()
...
Clean up boilerplate. It's a private object anyway.
2023-01-07 09:17:37 -05:00
Georges Basile Stavracas Neto
a8690c84ab
filesystemmodel: Cosmetics
...
Adjust code style, and shuffle some functions around. Remove
unhelpful doc comments.
2023-01-07 09:17:15 -05:00
Matthias Clasen
35244f4b59
filesystemmodel: Use g_set_object
2023-01-07 09:12:44 -05:00
Georges Basile Stavracas Neto
503c3ec04d
filesystemmodel: Make function private to gtkfilesystemmodel.c
...
The _gtk_file_system_model_update_file() function is not used outside
GtkFileSystemModel, so no need to expose it in the header.
Shuffle it around in code, and remove it from the header.
2023-01-07 08:44:40 -05:00
Georges Basile Stavracas Neto
4a5a466975
filesystemmodel: Cleanup unused defines
...
They were made unused with the removal of GtkTreeModel interface
implementation.
2023-01-07 08:44:34 -05:00
Matthias Clasen
e694511da3
Merge branch 'werror-fixes' into 'main'
...
gtk-launch: Remove compile-time warning
See merge request GNOME/gtk!5400
2023-01-07 13:22:20 +00:00
Matthias Clasen
0a94827b9c
Merge branch 'wip/corey/calendar' into 'main'
...
calendar: Fix marked days
See merge request GNOME/gtk!5399
2023-01-07 13:11:01 +00:00
Corey Berla
735cf301a4
calendar: Set marked days immediately
...
The marked days are set only as part of gtk_calendar_select_day().
This is insufficient, especially because the day-selected signal
is emitted after the marked days are set in gtk_calendar_select_day().
2023-01-06 20:37:54 -08:00
Corey Berla
e8a29f90d1
calendar: Only apply the marked_day to the current month
...
The marked day gets applied to the current month, and either the previous
or subsequent month if they are visible within the current month.
This doesn't make any sense and likely was an accidental regression
in a6f9052cf1
. Clarify the docs.
2023-01-06 20:21:35 -08:00
Corey Berla
182cc74834
calendar: Add css style for marked days
...
As part of a6f9052cf1
, marked days lost
their style, essentially making that function worthless. Previously,
they were simply bolded, but that doesn't give them proper justice.
2023-01-06 20:21:35 -08:00
Matthias Clasen
7801dd8944
Merge branch 'wip/phako/fix-activate-action-annotation' into 'main'
...
widget: Mark format as nullable in activate_action
See merge request GNOME/gtk!4653
2023-01-07 01:06:00 +00:00
Matthias Clasen
38e090f5c1
Merge branch 'main' into 'main'
...
Fix a typo
See merge request GNOME/gtk!5170
2023-01-07 00:59:32 +00:00
Benjamin Otte
998c382037
build: Turn off tautological-constant-out-of-range-compare warning
...
This issues a warning when an enum value is compared to a value that is
out of range for the enum.
We do this a lot, either when using -1 for undefined values or when
comparing array sizes to enum values like so:
enum {
ONE,
TWO,
THREE
} some_enum_value;
const char *names= { "one", "two", "three" };
g_assert (some_enum_value < G_N_ELEMENTS (names));
2023-01-06 19:46:58 -05:00
Benjamin Otte
ac81e71f78
gtk-launch: Fix unused variable warning on macOS
2023-01-06 19:46:58 -05:00
Benjamin Otte
de271c9a30
ci: Disable -Werror on all subprojects
...
Would be nice if meson had a nicer way of doing this, but...
2023-01-06 19:46:58 -05:00
Benjamin Otte
bf3cf8bb29
glcontext: Avoid gcc warning on non-egl build
2023-01-06 19:46:58 -05:00
Benjamin Otte
63fa5b7f52
gtk-launch: Remove compile-time warning
...
This warning causes a -Werror build to fail.
2023-01-06 19:46:58 -05:00
Matthias Clasen
96add330f5
Merge branch 'wayland-surface-split3' into 'main'
...
Split gdksurface-wayland.c
See merge request GNOME/gtk!5217
2023-01-06 22:35:34 +00:00
Matthias Clasen
44aa6a891a
Drop gdkpopup-wayland-private.h
...
It is empty now.
2023-01-06 17:02:03 -05:00
Matthias Clasen
7a30a21405
waylandsurface: Introduce a few vfuncs
2023-01-06 17:00:45 -05:00
Matthias Clasen
2b3eadcfa4
waylandpopup: Drop unused exports
2023-01-06 16:50:20 -05:00
Matthias Clasen
352443d5a5
waylandtoplevel: Drop unused exports
2023-01-06 16:50:20 -05:00
Matthias Clasen
3574fde770
More cleanups
2023-01-06 16:50:20 -05:00
Matthias Clasen
793689789c
Misc cleanups
...
Detangle compute_size, among other things.
2023-01-06 16:50:19 -05:00
Matthias Clasen
120396fa40
wip: Split off GdkWaylandPopup
...
Like the GdkWaylandToplevel split-off, this needs some
more cleanup.
2023-01-06 16:50:19 -05:00
Matthias Clasen
d61ec38974
wip: Split off GdkWaylandToplevel
...
This still needs some more cleanup.
2023-01-06 16:50:19 -05:00
Matthias Clasen
2a463baed0
wayland: Rearrange the surface code
2023-01-06 16:50:19 -05:00
Matthias Clasen
348acde6bd
wayland: Split public headers
...
Split gdkwaylandsurface.h into itself,
gdkwaylandtoplevel.h and gdkwaylandpopup.h.
This is in preparation for splitting the
types for real.
2023-01-06 13:47:34 -05:00
Matthias Clasen
5ba793842b
wayland: Split display_server sub-structs
...
Move these to GdkWaylandToplevel and GdkWaylandPopup
as appropriate.
2023-01-06 13:47:34 -05:00
Matthias Clasen
149b608bfc
wayland: Move next_layout into popup and toplevel
...
This is where it belongs.
2023-01-06 13:47:34 -05:00
Matthias Clasen
3348ea81f2
wayland: Move pending toplevel state to GdkWaylandToplevel
...
Another toplevel-only thing.
2023-01-06 13:47:34 -05:00
Matthias Clasen
63e69131bd
wayland: Move input_grab_seat to GdkWaylandPopup
...
This is popup-only functionality.
2023-01-06 13:47:34 -05:00
Matthias Clasen
d42a34b0b3
wayland: Move reposition_token to GdkWaylandPopup
...
This is only used for popups, so move it there.
2023-01-06 13:47:34 -05:00
Matthias Clasen
5ee10fc669
wayland: Move shortcuts_inhibitors to GdkWaylandToplevel
...
Another toplevel-only feature.
2023-01-06 13:47:22 -05:00
Matthias Clasen
b0a4917ce4
wayland: Move imported_transient_for to GdkWaylandToplevel
...
Another toplevel-only thing.
2023-01-06 13:47:22 -05:00
Matthias Clasen
47e22d6301
wayland: Move geometry hints to GdkWaylandToplevel
...
Another toplevel-only thing.
2023-01-06 13:47:12 -05:00
Matthias Clasen
b970b60503
wayland: Move title to GdkWaylandToplevel
...
This is a toplevel property.
2023-01-06 13:47:06 -05:00
Matthias Clasen
7406f8165d
wayland: Move drag surfaces to their own file
2023-01-06 13:46:58 -05:00
Matthias Clasen
9435e689c3
wayland: Drop create_dnd_surface
...
It is only used in one place.
2023-01-06 13:46:58 -05:00
Matthias Clasen
66c947b86b
Merge branch 'swap-3-4' into 'main'
...
docs: Place example-{3,4} in numerical order
See merge request GNOME/gtk!5319
2023-01-06 18:06:55 +00:00
Matthias Clasen
ad1af87834
Merge branch 'gtk4-fix-xdg-activation-set-surface' into 'main'
...
gdk/wayland: set requesting surface to xdg-activation
See merge request GNOME/gtk!5293
2023-01-06 14:03:01 +00:00
Matthias Clasen
68700f8722
Merge branch 'drop-file-dialog-shortcuts' into 'main'
...
filedialog: Drop shortcut folders
See merge request GNOME/gtk!5396
2023-01-06 13:35:14 +00:00
Matthias Clasen
f76270167c
Merge branch 'wip/otte/for-5496' into 'main'
...
filedialog: Never set the chooser's file
Closes #5496
See merge request GNOME/gtk!5393
2023-01-06 13:34:55 +00:00
Matthias Clasen
2a442c4fbb
Merge branch 'macos-command-symbol' into 'main'
...
macos: Use Command key symbol in Keyboard shortcuts window
See merge request GNOME/gtk!5296
2023-01-06 13:17:36 +00:00
Matthias Clasen
9356dfc404
filedialog: Drop shortcut folders
...
The filechooser portal does not support this,
and we are defaulting to using the portal now.
Lets not offer a non-functional API.
2023-01-06 07:40:57 -05:00
Matthias Clasen
7eb8439047
Merge branch 'matthiasc/for-main' into 'main'
...
testfiledialog: Be more lenient
See merge request GNOME/gtk!5395
2023-01-06 12:34:10 +00:00
Matthias Clasen
0ccf9ad8fc
testfiledialog: Be more lenient
...
Accept both open_multiple and open-multiple.
2023-01-06 07:12:36 -05:00
Arjan Molenaar
c52978dfa4
macos: Command should not come from gettext
...
Instead, just provide the right character.
See also
https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkaccelgroup.c#L916 .
2023-01-06 12:08:55 +01:00
Matthias Clasen
52dfa54301
Merge branch 'test-file-dialog' into 'main'
...
Test file dialog
See merge request GNOME/gtk!5394
2023-01-06 04:28:28 +00:00
Matthias Clasen
b6f9e00a9e
Add a test for GtkFileDialog
2023-01-05 23:13:58 -05:00
Matthias Clasen
8780aa02d7
filedialog: Cosmetics
2023-01-05 23:06:31 -05:00
Benjamin Otte
8d5a39d765
Merge branch 'wip/corey/dnd-use-cursor' into 'main'
...
Fix accidental DnD
See merge request GNOME/gtk!5275
2023-01-05 22:39:26 +00:00
Benjamin Otte
446e6a8d62
filedialog: Never set the chooser's file
...
Instead, get by with setting the name and hope the filechooser figures
things out by itself.
Fixes #5496
2023-01-05 21:30:15 +01:00
Matthias Clasen
9b1bee99b8
Merge branch 'openuri-activation-token' into 'main'
...
Pass an activation token to OpenURI
See merge request GNOME/gtk!5389
2023-01-05 14:06:14 +00:00
Matthias Clasen
77cf0f1719
Merge branch 'filechooser-multi-folder' into 'main'
...
filechooser: Don't assert for possible cases
Closes #5494
See merge request GNOME/gtk!5392
2023-01-05 14:01:35 +00:00
Matthias Clasen
fc1f1366b4
filechooser: Don't assert for possible cases
...
switch_to_selected_folder can be called when the
selection contains more than one item. Handle it
like it used to be handled: switch to the first
folder we find.
Fixes : #5494
2023-01-05 08:41:33 -05:00
Matthias Clasen
6efd1a9dad
Pass an activation token to OpenURI
...
The OpenURI portal can take an activation_token
nowadays. So it give one.
2023-01-04 16:39:24 -05:00
Matthias Clasen
8349ae2bc4
x11: Make a call NULL-safe
...
Make it safe to call gdk_x11_app_launch_context_get_startup_notify_id
with a NULL info.
2023-01-04 16:37:31 -05:00
Matthias Clasen
7c5c843b5b
Merge branch 'matthiasc/for-main' into 'main'
...
Drop gtkmain.c from POTFILES
See merge request GNOME/gtk!5390
2023-01-04 17:22:54 +00:00
Matthias Clasen
bc11bc4f8d
Drop gtkmain.c from POTFILES
...
No longer any translations here.
2023-01-04 12:03:01 -05:00
Matthias Clasen
be24e4a1f7
Merge branch 'deprecate-toggled' into 'main'
...
Deprecate gtk_toggle_button_toggled
See merge request GNOME/gtk!5388
2023-01-04 12:57:32 +00:00
Matthias Clasen
918ff1d0f4
Deprecate gtk_toggle_button_toggled
...
The function is documented as useless.
2023-01-04 07:32:51 -05:00
Anders Jonsson
20723613bc
Update Swedish translation
2023-01-04 12:32:38 +00:00
Matthias Clasen
604aafe15d
Merge branch 'wip/carlosg/startup-vs-focus' into 'main'
...
Consider startup vs focus requests for the Wayland platform
See merge request GNOME/gtk!5386
2023-01-03 15:14:35 +00:00
Carlos Garnacho
4041ca0f69
gdkdisplay: Deprecate gdk_display_notify_startup_complete()
...
We have various layers where we store the startup ID for a request,
since this API does not have a GdkToplevel that we can refer about
for the Wayland platform, this is the most obvious candidate to
start untangling these various layers.
Deprecate this call, it is already unused in the gtk/ side.
2023-01-03 14:58:33 +01:00
Carlos Garnacho
3526d8b299
gtkapplication: Do not call gdk_display_notify_startup_complete()
...
This should do nothing worthwhile anymore, the X11/Wayland GtkApplication
implementations do already pass the startup ID from the platform_data
via windowing specific APIs, and the application handling the request
via show()/present() should trigger the activation request.
2023-01-03 14:58:33 +01:00
Carlos Garnacho
e8adfa2a88
gtkwindow: Shuffle gdk_toplevel_set_startup_id() calls
...
While this used to be tangential to windows showing or requesting
focus, the xdg-activation Wayland protocol does merge both concepts
together.
But also, for a correct interaction with the compositor, the
toolkit should ideally merge the activation request resulting from
both into the same one, so that the gdk_toplevel_focus() request
replies to the startup token that started the application and
correct focus-stealing prevention/etc happens, instead making up
one just in time for the focus request.
This kind of requires doing things in the right order, a show()
request on the GtkWindow should activate any pending activation
token on the toplevel, a present() request should additionally
create a new token if there was none pending. And
xdg_activation_v1_activate() should happen once on both.
Shuffle the gdk_toplevel_set_startup_id() calls so that this
happens in the right order for Wayland, while making X11 happy
too.
2023-01-03 14:58:33 +01:00
Carlos Garnacho
7fab1b85ad
gdk/x11: Emit "remove" s-n message from gdk_toplevel_set_startup_id
...
In the way towards deprecating gdk_display_notify_startup_complete(),
make gdk_toplevel_set_startup_id() on X11 perform this piece of messaging
itself. It should be harmless that the message is emitted twice, if
callers do still use that API.
2023-01-03 14:58:25 +01:00
Carlos Garnacho
5aeabdb3d4
gdk/wayland: Perform xdg_activation on gdk_toplevel_set_startup_id
...
This call has everything to perform activation as specified by the
xdg_activation protocol, notably a surface to activate as opposed to
gdk_display_notify_startup_complete().
Make activation happen here, so that the surface gets activated when
its gets a startup ID assigned.
2023-01-03 14:57:49 +01:00
Carlos Garnacho
6f01f846dc
gtkwindow: Minor refactor
...
Move the handling of the startup ID to a separate function, since
this will be called from several places.
2023-01-03 14:57:44 +01:00
Matthias Clasen
3c4f6144a0
Merge branch 'fix-introspection' into 'main'
...
meson.build: build introspection according to option only
See merge request GNOME/gtk!5382
2023-01-03 11:56:49 +00:00
Alexander Kanavin
ae71d338d7
meson.build: build introspection according to option only
...
The way the check is written, if the build is native, then the
introspection option has no effect.
Particularly yocto project does want to disable introspection in
native builds and enable it in cross builds (both via the option),
and without this patch the former is not possible.
Signed-off-by: Alexander Kanavin <alex@linutronix.de >
2023-01-03 08:26:07 +01:00
Matthias Clasen
8b469a2727
Merge branch 'nullable-gdk' into 'main'
...
gdk_display_open: Mark arg as nullable
See merge request GNOME/gtk!5380
2023-01-03 00:25:55 +00:00
Matthias Clasen
53813f24f0
Merge branch 'matthiasc/for-main' into 'main'
...
ci: Enable introspection for the docs build
See merge request GNOME/gtk!5383
2023-01-02 21:53:58 +00:00
Matthias Clasen
1fde83f12b
Merge branch 'direction-from-language' into 'main'
...
Determine direction from language
See merge request GNOME/gtk!5385
2023-01-02 21:50:54 +00:00
Matthias Clasen
1f7783224b
Determine direction from language
...
We can determine the direction to return here
without relying on translations, by using pango
and HarfBuzz apis to go
language -> script -> direction.
2023-01-02 16:30:27 -05:00
Matthias Clasen
0d04ceda76
Merge branch 'ccook/doc-changes-2' into 'main'
...
Various documentation suggests across a few domains.
See merge request GNOME/gtk!5384
2023-01-02 20:40:54 +00:00
Cam Cook
9396ccf9ff
Various documentation suggests across a few domains.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkSeparator](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkseparator.c#L39 ) | "``" | "``" [1] |
| [GtkTextBuffer](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L4885 ) | "if there is an redoable action" | "if there is a redoable action" |
| [GtkTextBuffer/get_enable_undo](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L5005 ) | (Renders `No description available.`) | "Returns: %TRUE if undoing and redoing changes to the buffer is allowed." [3] |
| [GtkTextBuffer/get_max_undo_levels](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L5102 ) | (Renders `No description available.`)| "Returns: The max number of undo levels allowed (0 indicates unlimited)." |
| [GtkTextBuffer](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L3874 ) | "with gtk_text_buffer_add_selection_clipboard()." | "with [method@Gtk.TextBuffer .add_selection_clipboard]" |
| [GtkTextBuffer](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L3494 ) | "it will automatically toggled" | "it will automatically toggle" |
* [1] See : [separator.png](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/docs/reference/gtk/images/separator.png ), [gtk4.toml.in](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/docs/reference/gtk/gtk4.toml.in#L218 ), [visual_index.md](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/docs/reference/gtk/visual_index.md?plain=1#L16 )
* [2] Taken from `enable-undo` [property description](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L516 )
* [GtkTextMark/gtk_text_mark_set_visible](https://docs.gtk.org/gtk4/method.TextMark.set_visible.html ) is defined in [GtkTextMark's header](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextmark.h#L93 ), but implemented in [GtkTextBTree](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbtree.c#L3036 ).
* Other than being kind of confusing, this causes `gtk_text_mark_set_visible()`'s doc to not render where it expects it to.
2023-01-02 13:47:55 -05:00
Matthias Clasen
5a68639788
ci: Enable introspection for the docs build
...
It is required, so lets not rely on defaults.
2023-01-02 11:27:22 -05:00
Matthias Clasen
85df554ec1
Fix compiler warnings
2023-01-02 11:18:54 -05:00
Matthias Clasen
8776ebfe90
Merge branch 'dependency-review' into 'main'
...
Dependency review
See merge request GNOME/gtk!5381
2023-01-02 16:14:24 +00:00
Matthias Clasen
83eee03b0f
build: Use the current gdk-pixbuf as subproject
...
This commit has fixes for subproject use that we need,
and is not in a release yet.
2023-01-02 10:57:52 -05:00
Matthias Clasen
d7bba4ebac
build: Use libcloudproviders 0.3.1 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
40e2b5b153
build Use current libepoxy as subproject
...
We need recent fixes for graphene subproject use,
so use the current HEAD of master until there is
a release with these fixes.
2023-01-02 10:57:52 -05:00
Matthias Clasen
f7a7313758
build: Use the current graphene as subproject
...
We need recent fixes for graphene subproject use,
so use the current HEAD of master until there is
a release with these fixes.
2023-01-02 10:57:52 -05:00
Matthias Clasen
2d9ce0357f
build: Use wayland 1.21.0 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
0ea05896df
build: Use wayland-protocols 1.25 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
8c638df147
build: Use pango 1.50.12 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
6605ded4c9
build: Use fribidi 1.0.12 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
ba1a9530c8
build: Use cairo 1.17.6 as subproject
...
We don't want to use cairo 1.16, since it is
too old, so use 1.17.6 for now until there
is a stable 1.18 release.
2023-01-02 10:57:52 -05:00
Matthias Clasen
a9fcea369e
build: Use glib 2.74.4 as subproject
...
This is the latest stable release.
2023-01-02 10:57:44 -05:00
Matthias Clasen
ca2787fbba
build: Pass gobject_types=true to graphene
...
This is required for graphene-gobject to be built.
2023-01-02 09:15:59 -05:00
Matthias Clasen
6d2c897dfc
build: Bump introspection dep to 1.72
...
This should be kept in sync with glib.
2023-01-02 09:15:56 -05:00
Matthias Clasen
01f81b2d77
build: Bump graphene req to 1.10
...
So we don't require an unstable version.
2023-01-02 09:15:56 -05:00
Sabri Ünal
8a3c5c63e8
Update Turkish translation
2023-01-02 13:58:10 +00:00
Maximiliano Sandoval R
b688f47776
gdk_display_open: Mark arg as nullable
2023-01-02 11:49:06 +01:00
Matthias Clasen
e126110ae0
Merge branch 'wide-inspector' into 'main'
...
inspector: Avoid super-wide window
See merge request GNOME/gtk!5379
2022-12-31 20:07:45 +00:00
Matthias Clasen
f98406b080
Merge branch 'annotate-dialog-deprecation' into 'main'
...
docs: Annotate GtkDialog deprecation
See merge request GNOME/gtk!5376
2022-12-31 20:07:20 +00:00
Matthias Clasen
40a2910262
inspector: Avoid super-wide window
...
Ellipsize values that can get long, to avoid
forcing an excessively wide window.
2022-12-31 12:30:40 -05:00
Marco Melorio
ec84077486
docs: Annotate GtkDialog deprecations
2022-12-30 15:37:11 +01:00
Benjamin Otte
188f9269b7
Merge branch 'wip/corey/list-item-visible' into 'main'
...
listitemwidget: Setup factory only once the widget is visible
See merge request GNOME/gtk!5374
2022-12-29 22:21:43 +00:00
Corey Berla
7ad693f865
gtkcolumnviewcolumn: Only create cells when the column is visible
...
It's a big performance drag to create many cells (and their associated
widgets) for columns that may never be shown. Only create cells
is the column is visible, and subsequently create/remove cells
when in column_set_visible.
2022-12-29 11:11:40 -08:00
Yosef Or Boczko
913e3680f3
Update Hebrew translation
2022-12-27 21:46:52 +00:00
Matthias Clasen
f3ad6015c6
Merge branch 'wip/corey/notify-drop-value' into 'main'
...
gtkdroptarget: Notify value property on local drag
See merge request GNOME/gtk!5372
2022-12-27 16:45:16 +00:00
Corey Berla
4e694c1824
gtkdroptarget: Notify value property on local drag
...
The value property is only getting notified when it's unset
or when it's set from gdk_drop_real_value_async(). Make sure
to always notify :value when its changed
2022-12-27 08:11:53 -08:00
Matthias Clasen
0214cb5b1b
Post-release version bump
2022-12-26 07:22:39 -05:00
Matthias Clasen
12bd668f4d
4.9.2
2022-12-26 06:41:21 -05:00
Matthias Clasen
f7fb069e2f
Updates
2022-12-25 09:25:45 -05:00
Matthias Clasen
7213bf5b09
Merge branch 'wip/otte/for-main' into 'main'
...
GtkDialog: Various API changes
See merge request GNOME/gtk!5251
2022-12-24 15:14:17 +00:00
Matthias Clasen
5eb4a3af0d
filedialog: Handle initial-folder being NULL
...
This showed up as test failure in ci.
2022-12-24 09:01:16 -05:00
Benjamin Otte
c4c747d2ad
alertdialog: Rephrase docs for show() a bit
...
In particular, discuss what to do about cancellables.
Related: !5326
2022-12-24 07:56:57 -05:00
Benjamin Otte
671fad5f34
filedialog: Clarify interaction of :filters and :default-filter
2022-12-24 07:56:57 -05:00
Benjamin Otte
1b9c45b660
filedialog: Rename :current-filter to :default-filter
...
The last "current" removed from properties. None of these are current.
2022-12-24 07:56:57 -05:00
Benjamin Otte
e2f730c0bf
filedialog: Add gtk_file_dialog_set_initial_file()
...
A shortcut for setting initial-folder and initial-name at the same time.
We can remove all arguments from the actual async calls this way.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8a2d35b9fb
filedialog: Add gtk_file_dialog_set_initial_name()
2022-12-24 07:56:57 -05:00
Benjamin Otte
26cec4a021
filedialog: Rename current-folder to initial-folder
...
It's not the current one - unlike in GtkFileChooser - because there are
no live updates. So we use a more descriptive name.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8d8e83afa2
fontdialog: Handle Escape better
...
Closing the dialog by hitting Escape should
have the same effect as clicking the cancel
button. Make it so.
2022-12-24 07:56:57 -05:00
Benjamin Otte
381bb84f3d
alertdialog: Bring the GError back
...
Make sure we have a GError, so that dismissing and cancelling can be
separated.
2022-12-24 07:56:57 -05:00
Benjamin Otte
977fedfdf1
dialog: GTK_DIALOG_ERROR_ABORTED => GTK_DIALOG_ERROR_CANCELLED
...
This is done via the GCancellable, so let's call it cancelling.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8957302bd4
dialog: GTK_DIALOG_ERROR_CANCELLED => GTK_DIALOG_ERROR_DISMISSED
...
The term "cancelling" is used with GCancellable, a user clicking a close
button is not that.
User input is usually described as "dismissing", so we use that term.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8a7f739f9f
directorylist: Always add standard::name
...
glib can't figure out how to do that, so we need to do that ourselves.
2022-12-24 07:56:57 -05:00
Matthias Clasen
fce4810fb4
Merge branch 'ccook/doc-changes-1' into 'main'
...
Various spelling mistakes across a few domains that show up in documentation.
See merge request GNOME/gtk!5370
2022-12-24 12:52:19 +00:00
Matthias Clasen
d5ba76a82c
Merge branch 'wip/carlosg/autohide-checks-on-x11' into 'main'
...
gdk/surface: Handle clicks outside client surfaces
See merge request GNOME/gtk!5369
2022-12-24 12:50:09 +00:00
Cam Cook
1cd44ec7b7
Make stylecheck happy
2022-12-23 11:21:18 -05:00
Cam Cook
424d56830a
Merge remote-tracking branch 'upstream/main' into ccook/doc-changes-1
2022-12-23 11:02:18 -05:00
Cam Cook
7fc4d02851
Various spelling mistakes across a few domains that show up in documentation.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkAspectFrame](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkaspectframe.c#L457 ) | "requistion of the child" | "requisition of the child" |
| [GtkPaned](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkpaned.c#L2500 ) | "(attributes org.gtk.Method.set_propery=wide-handle)" | "(attributes org.gtk.Method.set_property=wide-handle)"|
| [GtkPopover](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkpopover.c#L2484 ) | "with gtk_popover_set_offset()." | "with [method@Gtk.Popover .set_offset()]." |
| [GtkPopoverMenu](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkpopovermenu.c#L859 ) | "with gtk_popover_menu_add_child()" | "with [method@Gtk.PopoverMenu .add_child()]" |
| [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L316 ) | "the queired range" | "the queried range" |
| [GtkScrolledWindow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkscrolledwindow.c#L76 ) | "automatically removed hen" | "automatically removed when"|
| [GtkSearchBar](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtksearchbar.c#L425 ) | "Connects the \`GtkEditable widget" | "Connects the `GtkEditable` widget" |
2022-12-23 11:01:07 -05:00
Carlos Garnacho
e7f798dcf5
gdk/surface: Handle clicks outside client surfaces
...
The owner_events=TRUE grab makes GDK on X11 see events happening
outside every client window as received on the grab window.
Additionally check that the pointer is inside the grab window
(i.e. it received GDK_CROSSING_NORMAL crossing events for the
core pointer) in order to handle clicks happening outside client
windows.
These new paths are expected to be a no-op on Wayland, and to
also work for touchscreen input on X11, due to emulated pointer
events.
2022-12-23 16:12:03 +01:00
Yuri Chornoivan
f6bd63c9ad
Update Ukrainian translation
2022-12-23 13:49:23 +00:00
Matthias Clasen
99320f99c3
Merge branch 'wip/ignazp/clipboard_eol' into 'main'
...
clipboard: improve EOL conversion of plain text
See merge request GNOME/gtk!5367
2022-12-22 13:31:07 +00:00
Ignazio Pillai
8ecb624934
clipboard: improve EOL conversion of plain text
...
Handle the case of clipboard text with CR line endings
2022-12-22 12:55:30 +01:00
Matthias Clasen
123eebb93d
Merge branch 'tweak-gtkfilechooser-button-tooltips' into 'main'
...
GtkFileChooser: Tweak Grid View & List View button tooltips
See merge request GNOME/gtk!5345
2022-12-21 12:39:53 +00:00
Emmanuele Bassi
b6596d5313
Merge branch 'remove_a11y_name_fallback' into 'main'
...
Don't present GTK class names to assistive technologies even as a fallback
Closes gnome-control-center#2244
See merge request GNOME/gtk!5365
2022-12-21 11:06:20 +00:00
Lukáš Tyrychtr
ffe333a21f
Don't present GTK class names to assistive technologies even as a fallback
...
A screen reader user is not interested in GTK internals, for example,
he does not care whether a button is an image button or not,
and a screen reader will report the fact that it is a button anyway.
Same applies for GtkEntry widgets, for example.
This actually is sufficient to fix gnome-control-center#2244.
And, according to the discussion in #5145 , it should be fine.
2022-12-21 11:35:46 +01:00
Matthias Clasen
257ca10eb1
Merge branch 'file-nullable' into 'main'
...
filelauncher: Make set_file argument nullable
See merge request GNOME/gtk!5357
2022-12-21 03:23:58 +00:00
Benjamin Otte
ae097d9674
Merge branch 'wip/antoniof/listbase-rubberband-better-fix' into 'main'
...
listbase: Cancel rubberband if not handling drag
See merge request GNOME/gtk!4831
2022-12-21 01:14:57 +00:00
Luca Bacci
1659c59410
Merge branch 'include-hicolor-index-theme-as-resource-rebased' into 'main'
...
Include hicolor index.theme as a resource (rebased)
Closes #5303
See merge request GNOME/gtk!5361
2022-12-20 16:08:11 +00:00
Luca Bacci
cf91e09d75
Include hicolor index.theme as a resource
...
index.theme file copied from upstream xdg/default-icon-theme
repository at tag 0.17:
https://gitlab.freedesktop.org/xdg/default-icon-theme/-/tree/0.17
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5303
2022-12-20 16:30:00 +01:00
Emmanuele Bassi
020636c49f
Merge branch 'revert-09691ead' into 'main'
...
Revert "Merge branch 'include-hicolor-index-theme-as-resource' into 'main'"
See merge request GNOME/gtk!5360
2022-12-20 15:22:28 +00:00
Luca Bacci
59df956f4f
Revert "Merge branch 'include-hicolor-index-theme-as-resource' into 'main'"
...
This reverts merge request !5341
2022-12-20 13:23:51 +00:00
Matthias Clasen
09691ead4c
Merge branch 'include-hicolor-index-theme-as-resource' into 'main'
...
Include hicolor index.theme as a resource
Closes #5303
See merge request GNOME/gtk!5341
2022-12-20 12:24:25 +00:00
Maximiliano Sandoval R
18a7f715c4
filelauncher: Make set_file argument nullable
2022-12-20 11:08:47 +01:00
Aleksandr Melman
d1347bbf33
Update Russian translation
2022-12-20 09:33:25 +00:00
Matthias Clasen
1b816c91d0
Merge branch 'fix-asan-more' into 'main'
...
ci: Disable f16c for asan
See merge request GNOME/gtk!5356
2022-12-20 06:04:46 +00:00
Matthias Clasen
5df0cbfa69
ci: Disable f16c for asan
...
It appears that f16c crashes asan instantly.
2022-12-20 00:43:59 -05:00
Matthias Clasen
47b5d0d546
Merge branch 'no-more-installed-tests' into 'main'
...
build: Drop the install-tests option
See merge request GNOME/gtk!5352
2022-12-20 05:33:56 +00:00
Matthias Clasen
4f65c121b7
ci: More verbose output from asan
2022-12-20 00:32:51 -05:00
Matthias Clasen
a0de7884cd
Merge branch 'another-flaky-reftest' into 'main'
...
ci: Declare a reftest as flaky
See merge request GNOME/gtk!5354
2022-12-20 05:07:51 +00:00
Matthias Clasen
b5b9cb189f
Merge branch 'macos-ci-is-iffy' into 'main'
...
ci: Mark macos build as allow-fail
See merge request GNOME/gtk!5355
2022-12-20 05:02:25 +00:00
Matthias Clasen
ee2152ff5c
ci: Mark macos build as allow-fail
...
It fails too often, and it never does us
any good.
2022-12-19 23:55:13 -05:00
Matthias Clasen
d8d5cace2a
ci: Declare a reftest as flaky
...
fixed-widget-stacking is failing frequently due
to a blinking cursor showing up in one of the
windows in ci.
2022-12-19 23:52:51 -05:00
Matthias Clasen
21e9a508bd
Merge branch 'fix-gtk_doc=true' into 'main'
...
meson: Require gi-docgen when gtk_doc is required
See merge request GNOME/gtk!5351
2022-12-20 04:17:22 +00:00
Matthias Clasen
3121f88265
build: Drop the install-tests option
...
We no longer use installed tests in CI,
so lets reap the benefit and simplify
our build setup for tests.
2022-12-19 23:12:47 -05:00
Matthias Clasen
b56224fc16
Merge branch 'fix-introspection-test-deps' into 'main'
...
build: Lift gir and build_gir to toplevel
See merge request GNOME/gtk!5350
2022-12-20 04:04:17 +00:00
Nirbheek Chauhan
4346a33a63
meson: Require gi-docgen when gtk_doc is required
...
Fixes build with only `-Dgtk_doc=true` without
`-Dintrospection=enabled`:
Program gi-docgen found: NO
Configuring gdk4.toml using configuration
docs/reference/gdk/meson.build:13:2: ERROR: Tried to use not-found external program in "command"
`introspection` is `auto` by default.
The rest of the docs build is only contingent on
`if get_option('gtk_doc')` so we should use the same restriction here.
We check for `build_gir` below already, and the gi-docgen subproject
itself does not need gobject-introspection so it's fine to do it like
this.
2022-12-20 09:27:48 +05:30
Matthias Clasen
596f59f471
tests: Maybe skip introspection tests
...
If we don't find the python gi module,
skip the introspection test.
2022-12-19 22:38:38 -05:00
Matthias Clasen
d758754f20
build: Lift gir and build_gir to toplevel
...
build_gir is used in multiple subdirectories,
so it is a bit nasty that it is defined in
one too.
2022-12-19 22:38:38 -05:00
Emmanuele Bassi
e049b6992d
Merge branch 'ebassi/ci-image-for-main' into 'main'
...
Various CI fixes
See merge request GNOME/gtk!5349
2022-12-20 03:37:43 +00:00
Emmanuele Bassi
ca0bae2196
ci: Don't cache subprojects
...
We're downloading them anyway.
2022-12-20 02:41:52 +00:00
Matthias Clasen
a920c0d2de
Merge branch 'wip/gtk4-fix-delete-surrounding' into 'main'
...
gtkimcontextwayland: Convert byte based offset to char based offset in delete_surrounding_text
See merge request GNOME/gtk!5254
2022-12-20 02:40:14 +00:00
Emmanuele Bassi
0db3666d3c
tests: Add shorthand-entry-border to the flaky suite
...
This test fairly consistently times out when running in a contended CI.
2022-12-20 02:18:25 +00:00
Emmanuele Bassi
2b808bf849
ci: Remove installed-tests job
...
Installed tests require access to the system prefix, and thus a
system-wide installation of Meson, which we don't have.
We're going to restore this job at a later date.
2022-12-20 01:56:28 +00:00
Emmanuele Bassi
737342ef23
ci: Don't use builddep to install Wayland build dependencies
...
We don't want to bring undefined dependencies into the image.
Additionally, Wayland depends on Meson, and we don't want to use
Fedora's version of Meson.
2022-12-20 01:54:57 +00:00
Emmanuele Bassi
cf709473f7
ci: Update the Fedora image
2022-12-20 01:54:57 +00:00
Alynx Zhou
ad83d616c4
gtkimcontextwayland: Convert byte based offset to char based offset in delete_surrounding_text
...
ClutterInputFocus/GtkIMContext uses char based offset for
delete_surrounding, however, text_input_v3 uses byte based offset for
it. Currently only GTK with mutter can work correctly via text_input_v3
because they both forget to convert between char based offset and byte
based offset.
This commit fixes it in GTK by converting byte based offset to char
based offset with the UTF-8 encoded surrounding text.
Fixes <https://gitlab.gnome.org/GNOME/gtk/-/issues/4566 >.
2022-12-20 09:51:08 +08:00
Matthias Clasen
98bb14a849
Merge branch 'meson-subproject-usage-fixes' into 'main'
...
Various fixes for using gtk4 as a meson subproject
See merge request GNOME/gtk!5347
2022-12-20 01:50:47 +00:00
António Fernandes
efbd228940
listbase: Cancel rubberband if not handling drag
...
If the drag events are claimed by another gesture (e.g. a GtkDragSource
in an item widget), list base still commits a rubberband selection, for
a rubberband which wasn't even visible yet. This is a problem for the
GNOME Files application which needs both rubberbanding and drag-n-drop.
My previous fix[0] was enough for the case where the event sequence is
claimed right before the first GtkDragGesture::drag-update emission,
but it's useless if the event is claimed later (e.g. after the drag
treashold), because a rubberband already exists by that time.
Therefore, the complete solution requres checking whether the event
sequence is no longer being handled by our gesture, and commit the
selection changes only if it is, but otherwise cleanup the rubberband.
This is what GtkFlowBox does already, so let's do the same here.
[0] commit dc4540fae9
2022-12-18 21:31:31 -10:00
Nirbheek Chauhan
64c8da1bdd
ci: Always update subprojects to latest revision
...
Otherwise we're not actually updating anything. `meson subprojects
download` will skip subprojects that already exist.
2022-12-19 09:08:28 +05:30
Nirbheek Chauhan
7242408d60
ci: Fix fedora-mingw64 job
2022-12-19 03:09:11 +05:30
Nirbheek Chauhan
9c6dd9b3b5
ci: Update meson version used for vs2017 job
2022-12-19 03:09:11 +05:30
Nirbheek Chauhan
cd77936265
meson: Fix find_program and subproject usage
...
Dummy dependencies are not required to execute a subproject
automatically for providing a program, nor do you need to explicitly
call subproject() to do that.
A `[provide]` section in the wrap file is enough.
2022-12-19 03:09:11 +05:30
Nirbheek Chauhan
53c37cfc17
meson: Stop using fallback: kwarg for deps that don't need it
...
Subprojects that use meson.override_dependency() do not require the
caller to provide the dependency variable name inside the subproject.
We also don't want to provide the *subproject* name, because the
subproject name can be `pango-1.50.12` instead of `pango` when using
wrap-file to download the tarball instead of using wrap-git. This
causes the pango subproject to be executed twice when using gtk as
a subproject inside gstreamer (which uses pango-1.50.12 as
a wrap-file).
All the dependencies we use can be switched in this way, but the
remaining ones need to be changed to use meson.override_dependency()
first.
2022-12-19 03:09:11 +05:30
Nirbheek Chauhan
1a1f92178e
meson: Update gitlab.gnome.org SSH server names
...
Also switch the wrap file style to use spaces around `=` which is the
canonical style used by wrapdb now.
2022-12-18 21:42:03 +05:30
Nirbheek Chauhan
6b111a9fda
meson: Remove redundant, duplicate, harfbuzz check
2022-12-18 21:42:03 +05:30
Nirbheek Chauhan
cc6b0c5750
meson: Always look for both cmake and pkgconfig names
...
The is_msvc_like change is wrong; it used a false correlation between
"compiler being used" and "dependency method" by saying that on
Windows, when building with MSVC, you will only use CMake to find png,
jpeg, tiff.
You can use pkgconfig to find these deps on Windows with MSVC -- when
the deps have been built with Autotools or Meson (with MSVC). You can
also find these deps using CMake on other platforms like macOS or
Linux.
The solution is simple: just search for both names on all platforms,
and just search for the pkgconfig name first.
2022-12-18 21:42:03 +05:30
Matthias Clasen
235f01952c
Merge branch 'nirbheek/fix-build-with-latest-glib' into 'main'
...
gdk: Fix g_set_str version check
See merge request GNOME/gtk!5348
2022-12-18 16:07:11 +00:00
Nirbheek Chauhan
e2291259bb
gdk: Fix g_set_str version check
...
The function was added to glib in 2.75.1. This fixes gtk's build with
the glib main branch.
2022-12-18 11:29:10 +05:30
sunflowerskater
6b71ccdb43
GtkFileChooser: Tweak Grid View & List View button tooltips
...
The tooltips from the Grid View & List View buttons are unnecessarily long and look different from the tooltips used in Nautilus.
This commit makes the tooltips to be consistent with Nautilus and, consequently, makes them shorter.
2022-12-17 18:21:10 -03:00
Matthias Clasen
c81a793f63
Merge branch 'wip/cdavis/file-dialog-accept-label' into 'main'
...
gtkfiledialog: Allow devs to set custom accept labels
Closes #5421
See merge request GNOME/gtk!5339
2022-12-16 17:04:00 +00:00
Christopher Davis
143229f829
gtkfiledialog: Allow devs to set custom accept labels
...
Accept labels can be used for additional context regarding
the purpose of a file. The old GtkFileChooser APIs allowed
developers to set it, but the initial FileDialog API was missing
this functionality.
This commit adds `gtk_file_dialog_set_accept_label ()` to
restore the missing functionality.
Closes https://gitlab.gnome.org/GNOME/gtk/-/issues/5421
2022-12-16 10:16:52 -05:00
Christopher Davis
3e86bc65f5
gdkprivate: Add compatibility shim for g_set_str()
...
Allows us to make use of this API without depending
on bleeding-edge glib
2022-12-16 10:16:52 -05:00
Luca Bacci
b563736b66
Include hicolor index.theme as a resource
...
index.theme file copied from upstream xdg/default-icon-theme
repository at tag 0.17:
https://gitlab.freedesktop.org/xdg/default-icon-theme/-/tree/0.17
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5303
2022-12-16 14:58:59 +01:00
Matthias Clasen
2442ed87fe
Merge branch 'matthiasc/for-main' into 'main'
...
Silence a compiler warning
See merge request GNOME/gtk!5340
2022-12-16 12:30:26 +00:00
Matthias Clasen
6cb5f20942
Silence a compiler warning
2022-12-16 00:12:44 -05:00
Matthias Clasen
aafc6279a3
Merge branch 'ebassi/ci-image-for-main' into 'main'
...
ci: Install Meson in the build jobs
See merge request GNOME/gtk!5335
2022-12-16 03:55:18 +00:00
Matthias Clasen
2154460139
Merge branch 'no-portals' into 'main'
...
Add GDK_DEBUG=no-portals
Closes #5441
See merge request GNOME/gtk!5336
2022-12-15 16:27:33 +00:00
Matthias Clasen
ef17a44876
Merge branch 'deprecate-show-hide' into 'main'
...
Deprecate gtk_widget_show/hide
See merge request GNOME/gtk!5278
2022-12-15 14:53:48 +00:00
Matthias Clasen
8eace1c385
Merge branch 'check-button-radio-docs' into 'main'
...
gtkcheckbutton: Document how to keep track of changes for radio buttons
See merge request GNOME/gtk!5328
2022-12-15 00:25:08 +00:00
Benjamin Otte
1f001a8f6a
Merge branch 'wip/corey/listbase-focus' into 'main'
...
listbase: Use set_focus_child properly
Closes #5433 and #5432
See merge request GNOME/gtk!5169
2022-12-14 19:06:57 +00:00
Emmanuele Bassi
a2b00f7ea7
ci: Install tests in a separate prefix
...
Avoid using `sudo` in the installed-tests CI job, since we're installing
Meson as the current user.
2022-12-14 19:02:23 +00:00
Pablo Correa Gómez
42ba97eb5c
gtkcheckbutton: Document how to keep track of changes for radio buttons
2022-12-14 20:02:07 +01:00
Matthias Clasen
e5560c1535
Add GDK_DEBUG=no-portals
...
Fixes : #5441
2022-12-14 13:50:20 -05:00
Emmanuele Bassi
7fca091371
ci: Redefine PATH
2022-12-14 18:39:34 +00:00
Corey Berla
93e591fdf1
listbase: Use set_focus_child properly
...
The EventControllerFocus on the list item, updates the list base focus
tracker and scrolled to position any time the list item enters focus.
This works when interacting within a single window, but has unexpected
results when changing focus between multiple windows.
Instead of using the focus controller workaround, just make
gtk_list_base_update_focus_tracker the set_focus_child vfunc
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5433
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5432
2022-12-14 07:56:57 -10:00
Corey Berla
7081bfc614
listbase: Split scroll_to_item for reuse
2022-12-14 07:51:34 -10:00
Emmanuele Bassi
cd7627ed02
ci: Consistently use meson subcommands
...
meson setup:
configuration
meson compile:
compilation
meson install
installation
Do not use ninja directly, and do not use `meson` as a synonym for
`meson setup`.
2022-12-14 17:44:27 +00:00
Emmanuele Bassi
ce9069c85f
build: Add known to be failing gsk comparison tests
...
The unaligned-offscreen and upside-down-label-3d tests are failing after
upgrading our CI images, seemingly because of some font rendering issue
that is hard to track. Let's use the "failing" testsuite mechanism that
we also use for the reftests.
2022-12-14 17:40:04 +00:00
Emmanuele Bassi
6e0def6474
ci: Install Meson in the build jobs
...
We use the latest 0.64 even if we depend on 0.60 because of fixes in the
subproject command.
2022-12-14 17:13:03 +00:00
Matthias Clasen
a471a8b57c
Merge branch 'ebassi/gidocgen-update' into 'main'
...
ci: Update the gi-docgen dependencies
See merge request GNOME/gtk!5263
2022-12-14 16:24:48 +00:00
Georges Basile Stavracas Neto
b0f65ead84
Merge branch 'gbsneto/filechooser-grid-view' into 'main'
...
Add GtkGridView to the filechooser
Closes #233
See merge request GNOME/gtk!5163
2022-12-14 14:47:21 +00:00
Matthias Clasen
e3f805f169
Merge branch 'appdialog' into 'main'
...
Add GtkAppDialog
See merge request GNOME/gtk!5284
2022-12-14 13:24:20 +00:00
Luca Bacci
48bcae99af
Merge branch 'gdk-win32-fix-native-decoration-resize' into 'main'
...
GdkWin32: Fix resizes with native decorations
Closes #5142 , #5088 , and #5090
See merge request GNOME/gtk!5096
2022-12-14 13:13:14 +00:00
Danial Behzadi
355b42b373
Update Persian translation
...
(cherry picked from commit aabae92482
)
2022-12-14 12:33:20 +00:00
Luca Bacci
0bdf30dfbf
Merge branch 'gdk-win32-modal-handling' into 'main'
...
GdkWin32: Do not use MA_NOACTIVATEANDEAT
Closes #5297 and #5326
See merge request GNOME/gtk!5208
2022-12-14 10:08:42 +00:00
Corey Berla
e8f70be2c1
Merge branch 'wip/otte/for-5422' into 'main'
...
contentserializer: Serialize to file:// if possible
Closes #5422
See merge request GNOME/gtk!5330
2022-12-14 01:56:04 +00:00
Benjamin Otte
ea056d261f
contentserializer: Serialize to file:// if possible
...
Try to get a native file:// URI instead of any other GVFS
scheme, for interoperability with apps only handling file:// URIs.
This is what GTK3 Nautilus and Thunar do, so apps should be tuned
for this behavior.
See also https://bugzilla.xfce.org/show_bug.cgi?id=13845
Fixes : #5422
2022-12-14 02:33:45 +01:00
Matthias Clasen
c2c99a163a
Merge branch 'stylanydev' into 'main'
...
Gtk.GestureStylus: implement `anydev` property
See merge request GNOME/gtk!4707
2022-12-13 19:34:12 +00:00
Matthias Clasen
eec8cf1309
Deprecate gtk_widget_show/hide
...
gtk_widget_set_visible does the same job.
2022-12-13 13:46:02 -05:00
Matthias Clasen
18e0eaa9d6
tests: Stop using gtk_widget_show/hide
2022-12-13 13:46:02 -05:00
Matthias Clasen
b8962fcba7
examples: Stop using gtk_widget_show/hide
2022-12-13 13:46:02 -05:00
Matthias Clasen
fba4cea2e8
testsuite: Stop using gtk_widget_show/hide
2022-12-13 13:46:02 -05:00
Georges Basile Stavracas Neto
8cf9810240
pathbar: Reimplement using GtkBox
...
The path bar does a lot of manual management of buttons, mostly to
be able to show navigation arrows when there's not enough space to
show the full path.
Since the GTK4 migration, this is slightly broken in some cases, due
to the 'need_sliders' variable being always set to TRUE. Furthermore,
after the introduction of the Recent button as a special cased fake
root, the allocation of the buttons is generating warnings.
Reimplement the path bar as a GtkBox, inside a GtkScrolledWindow.
This mimics what Nautilus does, and allows us to make navigation more
predictable, and remove most of the complexity from GtkPathBar. It
also prevents it from generating allocation warnings.
The path bar itself now doesn't override GtkWidget.measure nor
GtkWidget.allocate; instead, it delegates layout to the GtkBinLayout
layout manager.
CSS is adjusted to account for the changed hierarchy of buttons.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
f0a76f2ca8
filechooserwidget: Improve grid cell visuals
...
Use a GtkLabel instead of a GtkInscription to get filenames better
displayed within the available space.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
358d9d72d1
filechooserwidget: Don't check operation mode for tooltip
...
There's no way this could ever have been correct. We always want to
show the tooltip, and it's basically always available.
2022-12-13 14:45:15 -03:00
Sam Hewitt
aabb8dce91
filechooser: Add hover styles to the gridview children
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
80736d782b
filechooserwidget: Add toggle view button clone in search
...
It's positioned and looks exactly like the browse_toggle_view_button,
but due to the way things are organized, we cannot simply reuse that
button.
Add a clone of browse_toggle_view_button in the search entry page of
the toolbar stack. Make it toggle the same action as of the original
button, and bind the icon name and tooltip texts to it too.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
1464289710
filechooserwidget: Show pathbar in recent mode
...
As per design direction, show the pathbar in recent mode.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
72c676aecb
pathbar: Special case recent button
...
Soon pathbar will be shown on the Recent mode, with a static
path pointing to, well, Recent, so special case it in the
GtkPathBar with a static icon.
2022-12-13 14:45:15 -03:00
Corey Berla
c717d10dda
filechooserwidget: Hide ColumnView settings in GridView
2022-12-13 14:45:15 -03:00
Matthias Clasen
ee5324359d
filechooser: Save and restore view type
...
With this, the filechooser comes up with the
same view (grid or list) that it had the last
time you used it.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
10338a5237
filechooserwidget: Rename callback
...
It's shared between both column and grid views now.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
1c5caf53b6
filechooserwidget: Implement 'keynav-failed' for grid view
...
It's exactly the same as of the column view. Since we're sharing
the callback now, rename it to browse_files_view_keynav_failed_cb.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
0bb6377a3a
filechooserwidget: Use correct view in various places
...
Most of the pointer comparisons against 'browse_files_column_view'
should actually be performed against the current view widget. As
it turns out, it weren't that many places after all.
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
ce12ab8307
style: Improve filechooser grid view slightly
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
27613e3bc5
filechooserwidget: Add a grid view
...
Add a grid view outside of the widgetry tree. The grid view mimics
the column view using bindings, so we only need to manage the column
view.
Also add a button in the path bar section to toggle the view. This
is handled as a new 'toggle-view' action in the file chooser.
The way switching between views currently work is by setting either
the column or grid view as the child of the GtkScrolledWindow. This
has the benefit of unmapping the unused view, which is nice and can
avoid some tricky situations with thumbnails.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/233
2022-12-13 14:45:15 -03:00
Georges Basile Stavracas Neto
a9be0be32b
filethumbnail: Add 'icon-size' property
...
This will be used by future commits so that we can reuse this widget
in the file chooser grid view.
2022-12-13 14:45:15 -03:00
Matthias Clasen
6b83ded8f0
Merge branch 'harfbuzz-dep' into 'main'
...
build: Use a stable harfbuzz
See merge request GNOME/gtk!5327
2022-12-13 16:15:43 +00:00
Matthias Clasen
cc23ef6eae
build: Use a stable harfbuzz
...
We don't need the latest harfbuzz.
Stick to 4.0 for now.
2022-12-13 09:29:16 -05:00
Arjan Molenaar
089d0caa5e
macos: Fix freeze on drag
...
A Drag surface does not have a parent surface. Therefore, if we initialize
it with one, it's inheriting the frame clock from the parent, but the
drag surface is not linked to the parent. Once the drag surface is destroyed,
it's disposing the frame clock, which results in a "frozen" application.
2022-12-13 15:19:04 +01:00
Arjan Molenaar
d0c4413033
macos: Explicitly ungrab seat when drag is done or finalized
...
This is an extra safeguard that avoids grabbing resources longer than
nessecary. It also ensures the resource is removed from the drag,
so it is not freed again.
2022-12-13 15:19:04 +01:00
Arjan Molenaar
410fa9871f
Remove old dragImage code
...
New code (macOS 10+ should support the NSDraggingSource protocol:
https://developer.apple.com/documentation/appkit/nsdraggingsource .
2022-12-13 15:19:04 +01:00
Matthias Clasen
eba9c4e4c3
gtk-demo: Update the pickers demo
2022-12-13 07:49:10 -05:00
Matthias Clasen
f94e9d26b5
gtk: Update all callers
2022-12-13 07:49:02 -05:00
Matthias Clasen
69cc4b42cf
filelauncher: Add a file property
2022-12-13 07:48:35 -05:00
Matthias Clasen
66b4f2a9dd
Merge branch 'docs/default-args' into 'main'
...
docs: Emphasize requirement to provide filenames as arguments
See merge request GNOME/gtk!5322
2022-12-13 12:17:07 +00:00
andy5995
99d6eb9cb4
docs: Emphasize requirement to give filenames as arguments
...
(related to #5430 )
2022-12-12 23:40:07 -06:00
Matthias Clasen
631b0fa9fd
Merge branch 'sunflowerskater-main-patch-64457' into 'main'
...
appchooser: Rename "application" to "app"
See merge request GNOME/gtk!5323
2022-12-12 16:48:56 +00:00
sunflowerskater
e319b14dc2
appchooserbutton: Rename "application" to "app"
...
This change is a part of an initiative to use the word "app" instead of "application" in the UI:
Teams/Design/initiatives#123
2022-12-11 19:20:12 -03:00
sunflowerskater
c96fefd7f5
appchooserwidget: Rename "application" to "app"
...
This change is a part of an initiative to use the word "app" instead of "application" in the UI:
https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123
2022-12-11 19:13:51 -03:00
sunflowerskater
b1a9afbdba
appchooser: Rename "application" to "app"
...
This change is a part of an initiative to use the word "app" instead of "application" in the UI: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123
2022-12-11 20:05:54 +00:00
Matthias Clasen
6bed0cfb5a
Merge branch 'popover-present-docs' into 'main'
...
popover: Clarify docs
See merge request GNOME/gtk!5318
2022-12-11 04:03:10 +00:00
Matthias Clasen
973a8752ab
Merge branch 'ebassi/image-dispose' into 'main'
...
Do not change the notification queue inside finalization
Closes #5420
See merge request GNOME/gtk!5321
2022-12-11 04:02:49 +00:00
Matthias Clasen
db3b216ad1
Merge branch 'builder-scope-note' into 'main'
...
builderscope: Add a note for implementors
See merge request GNOME/gtk!5317
2022-12-11 01:07:21 +00:00
Emmanuele Bassi
b3b5a5064e
Do not change the notification queue inside finalization
...
Notifications are not going to be emitted during the finalization, and
GObject will warn if you try to acquire and release a reference to the
notification queue when the reference count of an object has reached
zero.
Fixes : #5420
2022-12-11 00:36:03 +00:00
andy5995
9fd4b215ee
docs: Place example-{3,4} in numerical order
2022-12-10 17:39:09 -06:00
Matthias Clasen
5c70f2ae9b
builderscope: Add a note for implementors
...
Recommend that scope implementations should fall
back to or derive from GtkBuilderCScope in order
to not lose GTK's type-guessing machinery.
Related: #5398
2022-12-10 17:12:02 -05:00
Matthias Clasen
5df9f4016e
popover: Clarify docs
...
gtk_popover_present() is a misleadingly named
function, so at least give it clear docs that
tell people to use gtk_popover_popup() instead.
2022-12-10 16:36:00 -05:00
Matthias Clasen
6f7a4b67c2
Merge branch 'docs/deprecated-G_APPLICATION_FLAGS_NONE' into 'main'
...
docs: Update deprecated G_APPLICATION_FLAGS_NONE in examples
See merge request GNOME/gtk!5315
2022-12-10 20:53:09 +00:00
andy5995
6e7ecb02f1
docs: Update deprecated G_APPLICATION_FLAGS_NONE
2022-12-10 01:12:13 -06:00
Matthias Clasen
146cf0bdd4
Merge branch 'deprecate-keys-changed' into 'main'
...
treeview: Drop a few unused variables
See merge request GNOME/gtk!5314
2022-12-09 19:03:01 +00:00
Matthias Clasen
00bdad23b0
Deprecate gtk_show_uri
...
This API has been superseded by GtkFileLauncher.
2022-12-09 13:36:28 -05:00
Matthias Clasen
8ff3217712
gtk: Stop using gtk_show_uri
...
Replace all uses of gtk_show_uri
with GtkFileLauncher.
2022-12-09 13:36:28 -05:00
Matthias Clasen
7a50e31b8d
gtk-demo: Add a GtkFileLauncher demo
...
Replace the deprecated app chooser button by a
button that calls gtk_file_launcher_launch.
2022-12-09 13:25:02 -05:00
Matthias Clasen
1d9ee050f4
Add GtkFileLauncher
...
This is a replacement for gtk_show_uri_full,
which can open a GFile in an application, or
open its containing folder in a file manager.
2022-12-09 13:25:02 -05:00
Matthias Clasen
40d54ad3eb
window: Deprecate the ::keys-changed signal
2022-12-09 13:14:27 -05:00
Matthias Clasen
a9b387b37b
tests: Silence a compiler warning
2022-12-09 13:13:24 -05:00
Matthias Clasen
12f9883599
treeview: Drop a few unused variables
...
Compilers get pickier every year...
2022-12-09 13:12:47 -05:00
Matthias Clasen
4e23fe896e
composetable: Drop an unused variable
2022-12-09 13:09:34 -05:00
Olga Smirnova
0effe1fd07
Add Interlingue translation
2022-12-09 17:24:41 +00:00
Matthias Clasen
a07bf1a047
Merge branch 'dialog-fixes' into 'main'
...
filechooserwidget: Fixes
See merge request GNOME/gtk!5311
2022-12-09 16:22:00 +00:00
Matthias Clasen
42cd230d44
openuriportal: Better error handling
...
Nested async calls are always a challenge.
Hopefully, things are straightened out now,
and we report GTK_DIALOG_ERROR errors for
the cases we care about.
2022-12-09 11:05:48 -05:00
Matthias Clasen
bc8e19fcd0
openuriportal: Add a check function
...
Add private API to check whether the portal
is available.
2022-12-09 11:05:48 -05:00
Matthias Clasen
ae29fee903
openuriportal: Support OpenDirectory
...
This required an extra argument. Update all callers.
2022-12-09 11:05:48 -05:00
Matthias Clasen
7ad0bae12f
openuriportal: Cosmetics
...
There were some copy-paste errors.
2022-12-09 11:05:48 -05:00
Matthias Clasen
3e11ea9ddf
fontdialog: Improve docs
...
Be more specific about possible errors.
2022-12-09 11:05:48 -05:00
Matthias Clasen
5b6c98d589
colordialog: Improve the docs
...
Be more specific about possible errors.
2022-12-09 11:05:48 -05:00
Matthias Clasen
57082e2e40
fontdialog: Don't forget to propagate errors
...
Oops.
2022-12-09 11:05:48 -05:00
Matthias Clasen
45e3e1594f
fontdialogbutton: Survive window closing
...
If the parent window of the button gets destroyed
while the dialog is open, we cancel the async op,
but we need to be a little more careful about not
stepping on glass.
2022-12-09 11:05:48 -05:00
Matthias Clasen
637ef84d04
colordialogbutton: Survive window closing
...
If the parent window of the button gets destroyed
while the dialog is open, we cancel the async op,
but we need to be a little more careful about not
stepping on glass.
2022-12-09 11:05:48 -05:00
Matthias Clasen
b297baed32
fontdialog: Unset check cancellable
2022-12-09 11:05:48 -05:00
Matthias Clasen
c45f172e79
colordialog: Unset check cancellable
2022-12-09 11:05:48 -05:00
Matthias Clasen
417382375b
filedialog: Report cancellation propertly
...
Unless we prevent it, GTask will always report
cancellation as G_IO_ERROR_CANCELLED. But we
want GTK_DIALOG_ERROR_ABORTED for this case.
2022-12-09 11:05:48 -05:00
Matthias Clasen
2e90a752eb
filechooserwidget: Fixes
...
Fix a memory leak in the file manager launch path.
2022-12-09 11:05:48 -05:00
Matthias Clasen
abe5181b10
Merge branch 'wip/corey/column-view-header' into 'main'
...
columnviewtitle: Prevent header clicks from propagating
Closes #5425
See merge request GNOME/gtk!5306
2022-12-09 15:28:58 +00:00
Matthias Clasen
585b6a3637
Merge branch 'matthiasc/node-editor-srcdir' into 'main'
...
node-editor: Redo saving location
Closes #5403
See merge request GNOME/gtk!5310
2022-12-09 15:22:00 +00:00
Matthias Clasen
3007b0fd7f
Remove leftover debug spew
2022-12-09 10:04:42 -05:00
Matthias Clasen
96b9ac84f8
node-editor: Redo saving location
...
Determine the location to save testcases in dynamically,
trying first a GTK_SOURCE_DIR environment variable
and then the current directory as the GTK source dir,
ultimatively falling back to just saving in the current
directory.
This avoids leaking details of the build environment
into the produced artifacts and should make GTK builds
more reproducible.
Fixes : #5403
2022-12-09 09:35:32 -05:00
Matthias Clasen
860c2f8ddd
Merge branch 'fix-file-dialog-title' into 'main'
...
filedialog: Use title if set
Closes #5415
See merge request GNOME/gtk!5308
2022-12-08 13:16:55 +00:00
Matthias Clasen
de83d57e14
filedialog: Use title if set
...
This broken when the code was reshuffled into
the switch.
Fixes : #5415
2022-12-08 07:57:16 -05:00
Matthias Clasen
9de963e8b4
Merge branch 'wip/carlosg/stale-timeout' into 'main'
...
gdk/x11: Clear all data in GdkSurfaceX11 finalization
See merge request GNOME/gtk!5303
2022-12-08 12:18:37 +00:00
Matthias Clasen
5e92c26b9a
Merge branch 'macos-unused-vars' into 'main'
...
macos: remove unused variables from macos code
See merge request GNOME/gtk!5290
2022-12-08 12:17:13 +00:00
Matthias Clasen
8c7b9c30de
Merge branch 'ccook/spelling-changes' into 'main'
...
Various spelling mistakes across a few domains that show up in documentation.
See merge request GNOME/gtk!5292
2022-12-08 12:16:22 +00:00
Cam Cook
6bfb35f047
Various spelling mistakes across a few domains that show up in documentation.
2022-12-08 12:16:22 +00:00
Matthias Clasen
53c3cce5e4
Merge branch 'emoji-recent-empty' into 'main'
...
emojichooser: Actually disable the recent section
See merge request GNOME/gtk!5305
2022-12-08 12:09:26 +00:00
Luca Bacci
acd7d739f5
GdkWin32: Fix resizes with native decorations
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5142
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5088
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5090
2022-12-08 11:41:05 +01:00
Corey Berla
33e7774743
columnviewtitle: Prevent header clicks from propagating
...
The header in GtkColumnView has multiple event handlers
there is a ::pressed handler in GtkColumnView for
resizing the columns in CAPTURE as well as a motion
and drag controller. The ::release handler is in
GtkColumnViewTitle. We can't claim the event in the
existing handlers because then the ::release handler will
never get called. Currently, however, all clicks get propagated
to the ColumnView from the header which can be problematic.
Since we don't usually want the clicks from the header
handled on the view, claim it in the BUBBLE phase.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5425
2022-12-07 10:25:09 -10:00
Guido Günther
89c816a614
emojichooser: Actually disable the recent section
...
The loop sets empty = FALSE when there are emojis but for that
to work we need to initialize the value to TRUE initially.
Fixes: 7928532bc5
2022-12-07 19:33:59 +01:00
Carlos Garnacho
c24358cfbc
gdk/x11: Clear all data in GdkSurfaceX11 finalization
...
Currently, the GdkSurfaceX11 implementation relies that the upper
layers hid the surface before destruction, and that no
GdkSurfaceClass.compute_resize happened between them. If these
circumstances happened, there would be a compute_size timeout left
dangling after the surface got destroyed, poking at incorrect data
later on. Something that looks like this was reported in the
recent mutter-x11-frames "SSD frames server":
mutter-x11-frames:423016): GLib-GObject-WARNING **: 19:41:16.869: invalid unclassed pointer in cast to 'GtkWindow'
Thread 1 "mutter-x11-fram" received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x7ffff7f7c4f8 "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1433
1433 ../../../glib/gmessages.c: No such file or directory.
(gdb) bt
#0 g_logv (log_domain=0x7ffff7f7c4f8 "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=<optimized out>, args=<optimized out>) at ../../../glib/gmessages.c:1433
#1 0x00007ffff73470ff in g_log (log_domain=log_domain@entry=0x7ffff7f7c4f8 "GLib-GObject", log_level=log_level@entry=G_LOG_LEVEL_WARNING, format=format@entry=0x7ffff7f84da8 "invalid unclassed pointer in cast to '%s'")
at ../../../glib/gmessages.c:1471
#2 0x00007ffff7f72892 in g_type_check_instance_cast (type_instance=type_instance@entry=0x5555558e04b0, iface_type=<optimized out>) at ../../../gobject/gtype.c:4144
#3 0x00007ffff791e77d in toplevel_compute_size (toplevel=<optimized out>, size=0x7fffffffe170, widget=0x5555558e04b0) at ../../../gtk/gtkwindow.c:4227
#4 0x00007ffff7f4f3b0 in g_closure_invoke (closure=0x555555898cc0, return_value=return_value@entry=0x0, n_param_values=2, param_values=param_values@entry=0x7fffffffdeb0, invocation_hint=invocation_hint@entry=0x7fffffffde30)
at ../../../gobject/gclosure.c:832
#5 0x00007ffff7f62076 in signal_emit_unlocked_R
(node=node@entry=0x55555588feb0, detail=detail@entry=0, instance=instance@entry=0x55555560e990, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffdeb0)
at ../../../gobject/gsignal.c:3796
#6 0x00007ffff7f68bf5 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffe050) at ../../../gobject/gsignal.c:3549
#7 0x00007ffff7f68dbf in <emit signal ??? on instance 0x55555560e990 [GdkX11Toplevel]> (instance=<optimized out>, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3606
#8 0x00007ffff7a8de96 in gdk_toplevel_notify_compute_size (toplevel=<optimized out>, size=size@entry=0x7fffffffe170) at ../../../gdk/gdktoplevel.c:112
#9 0x00007ffff7a4b15a in compute_toplevel_size (surface=surface@entry=0x55555560e990 [GdkX11Toplevel], update_geometry=update_geometry@entry=1, width=width@entry=0x7fffffffe220, height=height@entry=0x7fffffffe224)
at ../../../gdk/x11/gdksurface-x11.c:281
#10 0x00007ffff7a4c3b2 in compute_size_idle (user_data=0x55555560e990) at ../../../gdk/x11/gdksurface-x11.c:356
#11 0x00007ffff733f67f in g_main_dispatch (context=0x55555563f6e0) at ../../../glib/gmain.c:3444
#12 g_main_context_dispatch (context=context@entry=0x55555563f6e0) at ../../../glib/gmain.c:4162
#13 0x00007ffff733fa38 in g_main_context_iterate (context=0x55555563f6e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4238
#14 0x00007ffff733fcef in g_main_loop_run (loop=loop@entry=0x5555560874a0) at ../../../glib/gmain.c:4438
#15 0x0000555555557de0 in main (argc=<optimized out>, argv=<optimized out>) at ../src/frames/main.c:68
It perhaps makes sense to warn in these situations, but either way
it sounds like gdk_surface_x11_finalize() could enforce the correct
behavior by ensuring there is no dangling timeouts/data. This commit
does that.
2022-12-07 13:16:36 +01:00
Arjan Molenaar
19aaa8fee5
macos: Use Command key symbol for meta
...
Show the Apple Command symbol ⌘ as keyboard shortcut for the Meta key on macos,
similar to GtkAccelGroup.
2022-12-05 21:00:42 +01:00
Joan Bruguera
43c1a433aa
gdk/wayland: set requesting surface to xdg-activation
...
The argument to xdg_activation_token_v1_set_surface is documented to be the
surface requesting the activation, not the surface to be activated, which is
given later when calling xdg_activation_v1_activate.
(c.f. 36cee4bdbc
)
Use the same logic as in gdk_wayland_app_launch_context_get_startup_notify_id,
i.e. if we have a surface with focus, set that, otherwise set NULL.
This fixes requesting urgent/focus on wlroots (compositors like Sway, etc.),
which was blocked as the surface requesting the activation didn't have focus.
Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com >
2022-12-04 23:33:34 +00:00
Arjan Molenaar
097d87e502
Cleanup: remove unused variables from macos code
...
Remove unused variables. In case if Cairo code it would
allocate memory, which would result in a memory leak.
2022-12-04 12:50:20 +01:00
Benjamin Otte
a9c9678e1f
Merge branch 'workaround-glx-issue' into 'main'
...
GLX: Add extra glXMakeContextCurrent () call to work around a DRI issue
Closes #4499 , #5387 , and #5170
See merge request GNOME/gtk!5285
2022-12-02 15:32:22 +00:00
Luca Bacci
f788e994a9
GLX: Add extra glXMakeContextCurrent () call to work around a DRI issue
...
Reference: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7808
Fixes #4499 , #5387 , #5170
2022-12-02 14:20:43 +01:00
Benjamin Otte
c977f5cbb0
Merge branch 'wip/corey/tree-expander-bug' into 'main'
...
Improve treeexpanders
See merge request GNOME/gtk!5282
2022-11-30 19:06:12 +00:00
Corey Berla
c541de3e05
list: Remove active state handling in listitemwidget and treeexpander
...
Active state is handled by main now. It appears that listitem and
treeexpander handled it manually (probably before main did). This
is unnecessary now, so let's remove it.
2022-11-30 10:48:14 -08:00
Corey Berla
fdfd76774e
treeexpander: Scroll to expanded item
...
If the anchor is below the expanded item, the expanded item will
go out of view if there are sufficient children items. This is not
ideal, so make sure to scroll to the item to ensure it remains in
view.
2022-11-30 09:43:20 -08:00
Corey Berla
7eac27e5ee
listitemwidget: Add listitem.scroll-to action
...
This is the matching action for list.scroll-to-item
2022-11-30 09:43:20 -08:00
Corey Berla
847b3261fc
treeexpander: Toggle expand on release instead of pressed
...
With the introduction of the hide-expander property, I noticed that
the active state would persist in many cases because the release
signal was never emitted. In gtk3 tree expanders, expanded
on release. gtk4 expanded on press to match window explorer.
Per irc chat, the designers didn't have a strong preference
for press or release. In order to keep consistency and
fix this bug, let's move back to release.
2022-11-30 09:41:18 -08:00
Corey Berla
63a655e345
treeexpander: Fix typo and GestureClick type
...
"canceled" should be "cancelled". Also, "cancel" is a signal on
GtkGesture.
2022-11-29 20:52:46 -08:00
Corey Berla
ff8d88b097
dragsource: Add a timeout before starting a drag
...
No one wants a drag that happens in less than 100ms (if so, it's
probably accidental).
2022-11-29 20:06:21 -08:00
Emmanuele Bassi
75454adbe2
Merge branch 'ebassi/for-main' into 'main'
...
docs: Fix property cross-links in GtkTreeExpander
See merge request GNOME/gtk!5279
2022-11-29 14:08:13 +00:00
Emmanuele Bassi
9bce5f0462
docs: Fix property cross-links in GtkTreeExpander
2022-11-29 13:49:35 +00:00
Matthias Clasen
d2158e825b
Merge branch 'matthiasc/for-main' into 'main'
...
testsuite: Skip tests that miss charset support
See merge request GNOME/gtk!5277
2022-11-29 12:09:33 +00:00
Matthias Clasen
36a4bb0341
Merge branch 'ccook/spelling-fixes' into 'main'
...
docfix: Various spelling errors that show up in docs
See merge request GNOME/gtk!5272
2022-11-29 08:57:48 +00:00
Matthias Clasen
be324cc665
testsuite: Skip tests that miss charset support
...
This came up when running the tests in a fresh
toolbox missing the glibc-gconv-extra package.
2022-11-29 03:52:27 -05:00
Matthias Clasen
d9f4bd5490
Merge branch 'wip/corey/at-spi-context' into 'main'
...
atspicontext: Cache empty atspi bus address
See merge request GNOME/gtk!5276
2022-11-29 07:51:23 +00:00
Matthias Clasen
23a3bf7a3c
Merge branch 'show-hide-cleanup' into 'main'
...
gtk: Stop using gtk_widget_show/hide
See merge request GNOME/gtk!5273
2022-11-29 07:30:04 +00:00
Corey Berla
44e297488f
atspicontext: Log more helpful warnings when the a11y bus doesn't exist
2022-11-28 17:02:18 -08:00
Corey Berla
8072d202e3
atspicontext: Cache empty atspi bus address
...
We are caching the bus address as data on the display object when it
exists, but fail to set the data when the bus address doesn't exist.
That causing excessive calls to GetAddress when the accesssbility
bus doesn't exist. Make sure to cache a non-existent accessibility
bus by setting the "" string.
2022-11-28 17:02:13 -08:00
Matthias Clasen
b82fa26373
Merge branch 'matthiasc/for-main' into 'main'
...
Revert "builder: Stop using GtkBuildable.get_id"
See merge request GNOME/gtk!5274
2022-11-28 23:08:58 +00:00
Matthias Clasen
f624897589
Merge branch 'wip/carlosg/osk-activation-in-widgets' into 'main'
...
Handle OSK activation in GtkText/GtkTextView widgets
See merge request GNOME/gtk!5269
2022-11-28 19:43:19 +00:00
Matthias Clasen
a46bee1285
Revert "builder: Stop using GtkBuildable.get_id"
...
This reverts commit 92edd4c476
.
This commit changed behavior that GNOME Builder relies on.
2022-11-28 14:36:47 -05:00
Matthias Clasen
1ee39d7555
tools: Stop using gtk_widget_show/hide
2022-11-28 14:34:55 -05:00
Matthias Clasen
1018b43724
constraint editor: Stop using gtk_widget_show/hide
2022-11-28 14:34:55 -05:00
Matthias Clasen
c823ea4a70
icon browser: Stop using gtk_widget_show/hide
2022-11-28 14:34:55 -05:00
Matthias Clasen
fb8e52f0c9
gtk-demo: Stop using gtk_widget_show/hide
2022-11-28 14:34:55 -05:00
Matthias Clasen
352ace83bc
widget-factory: Stop using gtk_widget_show/hide
2022-11-28 14:34:55 -05:00
Matthias Clasen
f339cc276c
gtk: Stop using gtk_widget_show/hide
...
gtk_widget_set_visible and gtk_window_present
are better alternatives, and calling gtk_widget_show
on newly created widgets is no longer necessary
anyway.
2022-11-28 14:34:55 -05:00
Cam Cook
5b45efb49b
Merge remote-tracking branch 'origin' into ccook/spelling-fixes
2022-11-28 12:34:38 -05:00
Benjamin Otte
57ac4740b3
Merge branch 'wip/corey/tree-expander' into 'main'
...
treeexpander: Add hide-expander and indent-for-depth properties
Closes #4969
See merge request GNOME/gtk!5268
2022-11-28 15:53:17 +00:00
Carlos Garnacho
929a51addb
imcontextwayland: Set up OSK activation gesture on non text widgets
...
With GtkText and GtkTextView (and in extension, all their subclasses)
handling OSK activation activation, this gesture is only useful for
all text input widgets that are not subclasses of these 2 widgets,
e.g. the VTEs and crosswords of the world.
These still do need a hand in handling OSK activation, so only
set up the gesture for such cases.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
6cbb7b848a
gtktextview: Invoke OSK on button/touch taps that move/undo selection
...
If the ::release handler is invoked, the press/release happened without
drags in between. Additionally check that there is no selection at all.
This makes OSK invoked on taps that move the caret around, while tapping
in the selection invokes edition popup and text handles without bringing
in the OSK.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
ed81c265ac
gtktextview: Claim drag gesture after an actual selection change
...
This way, the drag gesture lets the click gesture ::release handler
happen if there was no actual changes to the selected text (i.e.
too short drags). This matches the ::release handler behavior match
the situations in which the OSK was being invoked by the wayland
GtkIMContext.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
ee6d9478c8
gtktext: Invoke OSK on button/touch taps that move/undo selection
...
If the ::release handler is invoked, the press/release happened without
drags in between. Additionally check that the press did not happen within
the selection, and that there is no selection at all.
This makes OSK invoked on taps that move the caret around, while tapping
in the selection invokes edition popup and text handles without bringing
in the OSK.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
76d80f7544
gtktext: Claim drag gesture after an actual selection change
...
This way, the drag gesture lets the click gesture ::release handler
happen if there was no actual changes to the selected text (i.e.
too short drags). This matches the ::release handler behavior match
the situations in which the OSK was being invoked by the wayland
GtkIMContext.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
e3b0d57ce7
imcontextwayland: Implement activate_osk() vmethod
...
This method does explicitly what the builtin GtkClickGesture in
the IM context is doing implicitly. The gesture will be dropped
after porting is done.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
6d0f7a2d31
immulticontext: Implement activate_osk() vmethod
...
The multicontext lets this call go through to the active
underlying GtkIMContext.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
459583ba9e
imcontext: Add private activate_osk() vmethod
...
This method is so far private for both external GtkIMContext
implementations and external GtkIMContext users, and is meant
to activate the OSK in the environments where this may happen.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
59af80ab8b
Revert "gtktext: Claim gesture more selectively"
...
This reverts commit ae54374a51
.
2022-11-28 15:46:41 +01:00
Matthias Clasen
005574b1b2
Merge branch 'bilelmoussaoui/gi-since' into 'main'
...
g-i: Add missing since annotations
See merge request GNOME/gtk!5271
2022-11-28 11:17:51 +00:00
Bilal Elmoussaoui
0919320086
g-i: Add missing since annotations
2022-11-28 07:54:48 +00:00
Corey Berla
72bc97fff5
treeexpander: Minor formatting changes
2022-11-27 19:39:20 -08:00
Corey Berla
648b38761c
treeexpander: Add indent-for-depth property
...
When set to TRUE, indent-for-depth indents each level of
depth with an additional indent
2022-11-27 19:36:20 -08:00
Corey Berla
2b578a24e4
treeexpander: Add hide-expander property
...
When set to TRUE hide-expander hides the expander icon in a
GtkTreeListRow.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4969
2022-11-27 19:36:11 -08:00
Matthias Clasen
90c986e493
Merge branch 'wip/corey/spi-logging' into 'main'
...
atspicontext: Log failure to connect to a11y
See merge request GNOME/gtk!5270
2022-11-28 01:29:10 +00:00
Matthias Clasen
ed6798e94c
Merge branch 'work/zzag/wl-output-release' into 'main'
...
gdk/wayland: Prefer wl_output_release() over wl_output_destroy()
See merge request GNOME/gtk!5243
2022-11-27 22:21:29 +00:00
Corey Berla
16fd72e606
atspicontext: Log failure to connect to a11y
...
GTK depends on the a11y infrastructure to be in place unless GTK_A11Y is
set to none. It appears that despite that, users attempt to
get around the a11y requirement without setting GTK_A11Y.
This can cause, amongst other issues, performance problems
with gtk applications. Log failure to connect to the a11y
bus.
2022-11-27 14:13:13 -08:00
Matthias Clasen
3dae22efdb
Merge branch 'fix-keymap-notify' into 'main'
...
Don't emit ::notify from a getter
See merge request GNOME/gtk!5267
2022-11-27 19:04:13 +00:00
Cam Cook
b876b4f568
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkListBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklistbox.c#L1469 )| (attributes org.gtk.Metthod.get_property=activate-on-single-click) | (attributes org.gtk.Method.get_property=activate-on-single-click) |
2022-11-27 07:42:12 -05:00
Cam Cook
dd780b3ce0
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkHeaderBar](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkheaderbar.c#L780 ) | "specifies a icon" | "specifies an icon" |
2022-11-27 06:49:40 -05:00
Cam Cook
0663758566
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkGridView](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkgridview.c#L1241 ) | "Sets the imodel to use." | "Sets the model to use." |
2022-11-27 06:30:30 -05:00
Cam Cook
ccfe889ba9
Merge branch 'main' into ccook/spelling-fixes
2022-11-27 06:30:04 -05:00
Matthias Clasen
fe56f3413a
Don't emit ::notify from a getter
...
GdkX11Keymap ddetermines the direction of the
keymap on demand, and was emitting notify::direction
2022-11-26 21:53:33 -05:00
Cam Cook
47bbc7e944
| domain | current | suggestion |
...
|--------|---------|------------|
| (GtkLevel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklevelbar.c#L1139 ) | "between [property@Gtk.LevelBar:min-value[" | "between [property@Gtk.LevelBar:min-value]"|
2022-11-26 14:51:34 -05:00
Cam Cook
c89cdb680d
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkLevel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklevelbar.c#L1104 ) | "Returns the \`min-value of the \`GtkLevelBar\`." | "Returns the \`min-value\' of the \`GtkLevelBar\`."|
2022-11-26 14:35:40 -05:00
Cam Cook
d19426d399
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkLabel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L3142 ) | "the [property@Gtk.Label:use-underline property]" | "the [property@Gtk.Label:use-underline] property" |
2022-11-26 13:32:27 -05:00
Matthias Clasen
3b9eba6d9a
Merge branch 'wip/corey/demo-file-dialog' into 'main'
...
gtk-demo: Application demo use open_finish()
See merge request GNOME/gtk!5264
2022-11-26 18:11:41 +00:00
Corey Berla
586c3c3cbd
gtk-demo: Application demo use open_finish()
2022-11-26 18:11:40 +00:00
Emmanuele Bassi
cc546d7af1
build: Add a check argument to run_command()
...
Silence a Meson warning.
2022-11-26 15:18:42 +00:00
Emmanuele Bassi
03db707f3c
vulkan: Add missing enumeration
...
Check for VK_ERROR_COMPRESSION_EXHAUSTED_EXT.
2022-11-26 15:18:42 +00:00
Emmanuele Bassi
a8cd2750f7
ci: Download the subprojects
...
Updating the subprojects will apparently fail if they haven't been
downloaded.
2022-11-26 15:18:42 +00:00
Emmanuele Bassi
ffad21a9d6
ci: Use Fedora 37 as the base
...
New stable release means new CI failures.
2022-11-26 14:04:07 +00:00
Matthias Clasen
b5644c2596
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Cosmetics
See merge request GNOME/gtk!5265
2022-11-26 13:15:28 +00:00
Cam Cook
cb303895aa
Various spelling mistakes (and one use of the wrong verb) across a few domains that show up in documentation.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkBitset](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbitset.c#L363 ) | "Value to add" | "Value to remove" |
| [GtkEntry](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkentry.c#L3626 ) | "\`GtkEntry" | "\`GtkEntry\`" |
| [GtkEntry](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkentry.c#L3566 ) | "will be applies" | "will be applied" |
| [GtkEntry](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkentry.c#L2232 ) | "is is in" | "is in" |
| [GtkInfoBar](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/deprecated/gtkinfobar.c#L772 ) | "in the info bars’s action area" | "in the info bar’s action area |
| [GtkLabel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L3210 ) | "Gets the labels attribute list." | "Gets the label's attribute list."
2022-11-26 06:54:47 -05:00
Matthias Clasen
e5cf55bdb4
gtk-demo: Cosmetics
2022-11-26 06:40:47 -05:00
Emmanuele Bassi
5419f1f2f0
ci: Update the gi-docgen dependencies
...
The python3-toml package is deprecated, and replaced by python3-tomli.
At least, until we bump up the dependency to Fedora 37: then we can
depend on Python 3.11, and its TOML parser in the standard library.
See also: https://gitlab.gnome.org/GNOME/gi-docgen/-/merge_requests/168
2022-11-25 17:50:21 +00:00
Matthias Clasen
79a2e31635
Merge branch 'bilelmoussaoui/g-i' into 'main'
...
g-i: Add missing since annotation
See merge request GNOME/gtk!5259
2022-11-25 14:43:19 +00:00
Matthias Clasen
56dfc6c5ba
Merge branch 'wip/smcv/xfail' into 'main'
...
testsuite: Avoid using should_fail
See merge request GNOME/gtk!5248
2022-11-25 14:40:33 +00:00
Bilal Elmoussaoui
5ede8dd1eb
g-i: Add missing since annotation
2022-11-25 10:16:37 +00:00
Matthias Clasen
4fdeec118a
Merge branch 'dialog-improvements' into 'main'
...
gtk-demo: Test cancellation support for file dialog
See merge request GNOME/gtk!5257
2022-11-25 03:48:04 +00:00
Matthias Clasen
e73f0f6974
file dialog: Handle Escape better
...
Closing the dialog by hitting Escape should
have the same effect as clicking the cancel
button. Make it so.
2022-11-24 10:29:43 -05:00
Matthias Clasen
ff14c51950
color dialog: Handle Escape better
...
Closing the dialog by hitting Escape should
have the same effect as clicking the cancel
button. Make it so.
2022-11-24 10:29:03 -05:00
Matthias Clasen
4fa53bd041
gtk-demo: Test cancellation support for file dialog
...
Add a timeout that closes the file dialog after
20 seconds, to test programmatic cancellation.
2022-11-24 10:26:43 -05:00
Simon McVittie
94b57a967c
testsuite: Don't create .test files for flaky or failing tests
...
These tests can be run manually, but are not suitable for use as an
acceptance test, so let's not make frameworks like Debian's autopkgtest
run these when they run ginsttest-runner in the most obvious way.
Signed-off-by: Simon McVittie <smcv@debian.org >
2022-11-24 13:46:33 +00:00
Simon McVittie
957dd49ef7
testsuite: Use separate setups for unstable tests instead of should_fail
...
There are two possible interpretations of "expected failure": either
the test *must* fail (exactly the inverse of an ordinary test, with
success becoming failure and failure becoming success), or the test
*may* fail (with success intended, but failure possible in some
environments). Autotools had the second interpretation, which seems
more useful in practice, but Meson has the first.
Instead of using should_fail, we can put the tests in one of two new
suites: "flaky" is intended for tests that succeed or fail unpredictably
according to the test environment or chance, while "failing" is for
tests that ought to succeed but currently never do as a result of a
bug or missing functionality. With a sufficiently new version of Meson,
the flaky and failing tests are not run by default, but can be requested
by running a setup that does not exclude them, with a command like:
meson test --setup=x11_unstable --suite=flaky --suite=failing
As a bonus, now that we're setting up setups and their excluded suites
programmatically, the gsk-compare-broadway tests are also excluded by
default when running the test setup for a non-broadway backend.
When running the tests in CI, --suite=gtk overrides the default
exclude_suites, so we have to specify --no-suite=flaky and
--no-suite=failing explicitly.
This arrangement is inspired by GNOME/glib!2987 , which was contributed
by Marco Trevisan.
Signed-off-by: Simon McVittie <smcv@debian.org >
2022-11-24 13:46:33 +00:00
Matthias Clasen
5e534306e4
Merge branch 'deprecate-infobar' into 'main'
...
Deprecate GtkInfoBar
See merge request GNOME/gtk!5246
2022-11-24 03:43:11 +00:00
Matthias Clasen
d3fbe80510
Merge branch 'wip/carlosg/gsk-clipping' into 'main'
...
gsk: Extend the blur radius for outset shadow extents
See merge request GNOME/gtk!5247
2022-11-23 22:38:49 +00:00
Vlad Zahorodnii
433734de21
gdk/wayland: Improve readability of wl_output binding code
...
Provide OUTPUT_VERSION macro to indicate the implemented version of
wl_output in gtk rather than use a magical number.
2022-11-23 22:53:00 +02:00
Carlos Garnacho
b9448b06b4
gsk: Extend the blur radius for outset shadow extents
...
By dividing the blur radius to obtain the clip radius, we may end up
with halved values that result in an overshunk clip mask. Extend this
so that we ensure to cover the last pixel.
Fixes artifacts seen with the cairo renderer in X11 when resizing
windows horizontally, a black 1px high line would be seen in the
top of the window due to these outset bounds being used in clipping.
More mysteriously, also seems to fix resize lag in the GL renderer
(also X11), if e.g. the bottom-right corner of a window is resized
diagonally in bottom-left -> top-right direction, or
bottom-right -> top-left.
Related: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2175#note_1599335
2022-11-23 19:27:49 +01:00
Matthias Clasen
942f8d4b4b
Deprecate GtkInfoBar
...
This widget has a dialog-like API, which is something
we want to get rid of in GTK 5, and libadwaita has
a replacement with AdwBanner incoming.
2022-11-23 13:00:09 -05:00
Carlos Garnacho
35744d87a2
gsk: Also ceil() top side when converting graphene to cairo rectangles
...
The outset border for all sides is ceil()ed, except for the top side.
Most often values are already nicely rounded here, but this seems an
oversight.
2022-11-23 18:56:45 +01:00
Florian "sp1rit"
6dd939f13e
improved docs of Gtk.GestureStylus
2022-11-23 09:09:50 +01:00
Florian "sp1rit"
c85fbcea55
adjusted stylus-only code to fit gtk code conventions
2022-11-23 08:59:29 +01:00
Vlad Zahorodnii
261bcd40bd
gdk/wayland: Prefer wl_output_release() over wl_output_destroy()
...
By using wl_output_release(), GDK lets the compositor to clean up the
output global more nicely.
For example, currently, most compositors remove the global and then
destroy it later after N seconds expire. With this, the compositor could
experiment with destroying the output global once all its resources are
destroyed.
2022-11-22 14:12:22 +02:00
Matthias Clasen
200f31f285
Merge branch 'work/zzag/wl-output-cleanup' into 'main'
...
gdk/wayland: Destroy zxdg_output_v1 upon GdkWaylandMonitor destruction
See merge request GNOME/gtk!5242
2022-11-22 12:01:43 +00:00
Vlad Zahorodnii
1d94aefe2b
gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer()
...
Use g_clear_pointer() to make tear down code consistent.
2022-11-22 11:23:08 +02:00
Vlad Zahorodnii
e82e7823a8
gdk/wayland: Destroy zxdg_output_v1 upon GdkWaylandMonitor destruction
...
It prevents potentially leaking memory.
2022-11-22 11:18:32 +02:00
Florian "sp1rit"
789778105d
gtk: gtkgesturestylus: implemented stylus-only
property
...
this allows setting a Gtk.GestureStylus to a state, where it can be
used to handle non-stylus devices (e.g. mice).
This might be useful for applications that handle stylus input, but
want to allow falling back to a mice, if the user is unable to provide
stylus input.
2022-11-22 09:13:35 +01:00
Florian "sp1rit"
c36685bf60
gdk: gdkevents: added NULL check to gdk_event_get_axes
...
this is to prevent gdk from causing a segfault, when getting event axes
for events that don't have them (i.e. attempting to get pressure from a
mice input device).
2022-11-22 09:13:32 +01:00
Matthias Clasen
0de172f03d
Merge branch 'file-filter-properties' into 'main'
...
filefilter: Add properties for the criteria
See merge request GNOME/gtk!5241
2022-11-22 04:00:40 +00:00
Matthias Clasen
d34ac99916
filefilter: Add properties for the criteria
...
Add construct-only properties for patterns,
suffixes and mime-types. This provides an
alternative way to specify these in ui files.
Related: #5350
2022-11-21 22:44:03 -05:00
Matthias Clasen
055f3e5d97
Merge branch 'color-picker-portal' into 'main'
...
colorpicker: Always try the portal first
See merge request GNOME/gtk!5240
2022-11-21 19:46:17 +00:00
Matthias Clasen
205b718fe5
colorpicker: Always try the portal first
...
It does not hurt., and going forward, we want to
prefer portals.
2022-11-21 14:26:29 -05:00
Matthias Clasen
01ae136a4c
Merge branch 'bilelmoussaoui/g-i' into 'main'
...
g-i: add missing array annotation to AlertDialog.set_buttons
See merge request GNOME/gtk!5234
2022-11-21 10:49:05 +00:00
Matthias Clasen
74806ed324
Merge branch 'fix-upside-down-labels' into 'main'
...
gsk: Avoid a crash with negative scales
See merge request GNOME/gtk!5236
2022-11-21 10:48:29 +00:00
Matthias Clasen
83839cb219
Merge branch 'drop-buildable-get-id' into 'main'
...
builder: Stop using GtkBuildable.get_id
See merge request GNOME/gtk!5239
2022-11-21 10:35:16 +00:00
Matthias Clasen
f22db024a8
Merge branch 'stringlist-prop' into 'main'
...
stringlist: Add a construct-only strings property
See merge request GNOME/gtk!5238
2022-11-21 10:34:54 +00:00
Matthias Clasen
e357ff6055
Drop gtk_widget_buildable_parser_finished
...
No need to have this no-op implementation.
This was the only implementation of this vfunc
in GTK.
2022-11-20 14:36:35 -05:00
Matthias Clasen
92edd4c476
builder: Stop using GtkBuildable.get_id
...
Drop the only implementation of this vfunc,
and stop using it. It isn't needed, and the
only implementation did the same thing GtkBuilder
does anyway.
2022-11-20 14:35:36 -05:00
Matthias Clasen
f0aefe2f7f
stringlist: Add a construct-only strings property
...
This enables creating string lists in ui files
without using custom markup.
Related: #5350
2022-11-20 14:07:45 -05:00
Matthias Clasen
8f24072354
Merge branch 'center-box-props' into 'main'
...
centerbox: Add properties for child widgets
See merge request GNOME/gtk!5237
2022-11-20 18:25:12 +00:00
Matthias Clasen
8dc89ba3d8
centerbox: Add properties for child widgets
...
This provides and alternative to add children
in ui files.
Related: #5350
2022-11-20 12:54:31 -05:00
Matthias Clasen
b441c684ab
gsk: Avoid a crash with negative scales
...
Don't crash when both scale_x and scale_y are -1.
A test is included.
2022-11-20 12:13:02 -05:00
Bilal Elmoussaoui
97d76417fa
g-i: add missing array annotation to AlertDialog.(s|g)et_buttons
2022-11-19 14:33:19 +01:00
Matthias Clasen
ab530b9e5a
Merge branch 'builder-parse-attributes' into 'main'
...
builder: Parse PangoAttrList values
See merge request GNOME/gtk!5228
2022-11-19 02:49:23 +00:00
Matthias Clasen
21a69e7107
Merge branch 'wip/carlosg/osk-activation' into 'main'
...
gtktext: Claim gesture more selectively
Closes #5351
See merge request GNOME/gtk!5230
2022-11-18 19:33:55 +00:00
Matthias Clasen
d45155364e
Merge branch 'kjellahl/menubar' into 'main'
...
gtk_popover_menu_bar_set_menu_model(): Accept model == NULL
See merge request GNOME/gtk!5232
2022-11-18 19:33:37 +00:00
Matthias Clasen
4a71957c1f
Merge branch 'shorter-im-context-ids' into 'main'
...
immmodule: Warn if GTK_IM_MODULE is bad
See merge request GNOME/gtk!5229
2022-11-18 19:33:17 +00:00
Matthias Clasen
e53c9e4832
Merge branch 'wayland-foreign-v2' into 'main'
...
wayland: Also support the v2 of the importer
See merge request GNOME/gtk!5231
2022-11-18 18:00:42 +00:00
Matthias Clasen
b3821b19b5
wayland: Also support the v2 of the importer
...
Commit 0ba8e16e14
added support for the export
part of zxdg_foreign_v2, but neglected that the importer
has a v2 as well. Support it.
2022-11-18 12:10:56 -05:00
Kjell Ahlstedt
8911015549
gtkpopovermenubar: Make model nullable
...
The description of gtk_popover_menu_bar_new_from_model() and
gtk_popover_menu_bar_set_menu_model() says that model is nullable.
Make it so.
2022-11-18 18:09:42 +01:00
Carlos Garnacho
f1168c5012
gdksurface: Do not consider GDK_TOUCH_END/CANCEL as popup-dismiss worthy
...
GDK_TOUCH_END deserves the same treatment than GDK_BUTTON_RELEASE, since it's
subject to the same circumstances (popping up a menu on long press would be
immediately dismissed on release if we handled them there). Ideally, we would
want to match releases that we obtained a press for while grabbed, but as
the popup is also dismissed on GDK_BUTTON_PRESS/GDK_TOUCH_BEGIN, there's no
use for this tracking.
And GDK_TOUCH_CANCEL sounds weird as a reason to dismiss popups, just like
crossing events would.
Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/2512
2022-11-18 17:56:14 +01:00
Carlos Garnacho
ae54374a51
gtktext: Claim gesture more selectively
...
Even though button 1 (or touch down) presses do most often have
an effect in one way or another (starting drag, moving focus,
starting selection, ...), there is one situation that they do
immediately nothing: When clicking on the entry does not move
the text caret around. Dragging might start a selection, but
the entry did not do anything just yet, and an immediate
button/touch release should remain at "did nothing".
And that is precisely the hint that the Wayland IM context's click
gesture takes, clicks that do not scroll nor move the caret around,
having the GtkText not claim the gesture in that situation makes
the IM gesture able to do its thing without in-fighting.
This is typically not a problem when the GtkText is embedded in
another GtkEditable implementation (e.g. GtkEntry), since the
IM gesture is inactive and capturing from the parent widget, so
gets a pass that it otherwise doesn't get when both gestures are
in the same widget. This makes it work regardless of GtkText not
being a child of a composite widget, like NautilusQueryEditor
and AdwRowEntry.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5351
2022-11-18 17:56:14 +01:00
Matthias Clasen
64b8a8740f
Merge branch 'wip/fix-tiling-without-gtk-shell' into 'main'
...
wayland/surface: Set the tiling state from xdg-shell too
See merge request GNOME/gtk!5227
2022-11-18 16:33:25 +00:00
Matthias Clasen
1f97714293
immodule: Accept 'simple' and 'none'
...
Everybody (including myself) gets this wrong,
so accept 'simple' and 'none' as shorthands
for the official IDs 'gtk-im-context-simple'
and 'gtk-im-context-none'.
2022-11-18 11:18:48 -05:00
Matthias Clasen
9af8c6fb25
immmodule: Warn if GTK_IM_MODULE is bad
...
If we don't find an immodule matching the
ids in the GTK_IM_MODULE envvar, print a
warning.
2022-11-18 11:18:48 -05:00
Matthias Clasen
9682085e09
builder: Parse PangoAttrList values
...
Allow specifying PangoAttrList properties in the
serialized format supported by pango_attr_list_to_string().
Test included.
2022-11-18 10:42:50 -05:00
Jonas Ådahl
07a59da6e4
wayland/surface: Set the tiling state from xdg-shell too
...
We plumbed it from the gtk-shell configure event, but didn't for the
equivalent state passed via xdg_toplevel.configure.
2022-11-18 13:11:25 +01:00
Matthias Clasen
dfbaeefc64
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Add an assertion to help static analysis
See merge request GNOME/gtk!5224
2022-11-18 05:22:44 +00:00
Matthias Clasen
9cbfbbdf39
stringsorter: Fix one case of collation handling
...
When not ignoring case, and not collating, we were
returning sort keys that were already freed. Oops.
Pointed out by clang.
2022-11-18 00:04:23 -05:00
Matthias Clasen
8c1a041104
gdk: Fix possible memory errors
...
clang complained that we may end up jumping
to the cleanup code without initializing data
in the jpeg code. Always initialize data to
NULL to prevent that eventuality.
2022-11-18 00:04:23 -05:00
Matthias Clasen
95fc5109bb
composetable: Fix a memory leak
...
Pointed out by clang.
2022-11-18 00:04:23 -05:00
Matthias Clasen
ce57150203
gsk: Add an assertion to help static analysis
...
clang gets wild ideas about negative radii otherwise.
2022-11-18 00:04:23 -05:00
Matthias Clasen
203685a46a
Merge branch 'matthiasc/for-main' into 'main'
...
Fix spelling errors
See merge request GNOME/gtk!5223
2022-11-18 04:56:57 +00:00
Matthias Clasen
ebe6d52252
Drop redundant glib version checks
...
We require GLib 2.72 now.
2022-11-17 22:49:56 -05:00
Matthias Clasen
60aaf38f39
gdk: Clean up gdkprivate.h
...
Move apis to more specific headers.
2022-11-17 22:49:56 -05:00
Matthias Clasen
2bab8cca5f
gdk: Rename GDK_SURFACE_TEMP
...
We use this value only for drag surfaces, so call it that.
2022-11-17 22:49:56 -05:00
Matthias Clasen
b12d31d189
Fix spelling errors
...
These were pointed out by codespell.
2022-11-17 22:49:45 -05:00
Matthias Clasen
0d2161ee40
Merge branch 'file-dialog-portals' into 'main'
...
file dialog: Use portals
See merge request GNOME/gtk!5221
2022-11-18 03:49:30 +00:00
Matthias Clasen
cda06f375e
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Add some keywords
See merge request GNOME/gtk!5220
2022-11-17 20:53:51 +00:00
Matthias Clasen
b0148972fd
filedialog: Use portals
...
We want this new API to be portal-first.
Make it so.
2022-11-17 15:52:53 -05:00
Matthias Clasen
ea3c58f0ec
gtk-demo: Add folders to the clipboard demo
...
This is handy for testing a case where folder
dnd does not work with the file transfer portal.
See #5348
2022-11-17 06:31:09 -05:00
Matthias Clasen
af8ad1efe8
gtk-demo: Add some keywords
...
Make sure that dnd and drag-and-drop yield the right
(and the same) set of demos.
2022-11-17 05:50:34 -05:00
Matthias Clasen
12a50735da
Merge branch 'ccook/doc-spelling-fixes' into 'main'
...
doc fix: various spelling mistakes corrected
See merge request GNOME/gtk!5215
2022-11-17 10:28:38 +00:00
Luca Bacci
7c62eaa528
Merge branch 'win32-hotspot' into 'main'
...
gdk/win32: fix cursor hotspot
See merge request GNOME/gtk!5216
2022-11-17 09:06:55 +00:00
Cam Cook
2a14753739
Merge branch 'main' into ccook/doc-spelling-fixes
2022-11-16 23:23:42 -05:00
Cam Cook
4ccc3b53eb
doc/spelling changes: gtkselectionmodel.c, 'call this when the* selection changes'
2022-11-16 23:20:50 -05:00
Matthias Clasen
793954055e
Merge branch 'radioactiveman-main-patch-52462' into 'main'
...
label: Fix markup doc example
See merge request GNOME/gtk!5201
2022-11-17 03:46:43 +00:00
Thomas Lange
7adf720f08
label: Fix markup doc example
2022-11-17 03:46:01 +00:00
Emmanuele Bassi
dc168767b0
Merge branch 'ebassi/list-doc-links' into 'main'
...
docs: Add links to the list widgets table
See merge request GNOME/gtk!5210
2022-11-16 21:51:59 +00:00
Matthias Clasen
501577196a
Merge branch 'matthiasc/for-main' into 'main'
...
Inspector: Add a missing event type
See merge request GNOME/gtk!5218
2022-11-16 19:24:54 +00:00
Matthias Clasen
69d59d9b8b
Merge branch 'filechooser-set-choice-fix' into 'main'
...
filechooser: Fix gtk_file_chooser_set_choice again
Closes #5346
See merge request GNOME/gtk!5219
2022-11-16 19:23:05 +00:00
robxnano
adc0264dac
filechooser: Fix gtk_file_chooser_set_choice again
...
If the choice was in the form of a GtkDropDown, the code failed to
find the widget and so the choice never got set. Fixes #5346 .
2022-11-16 18:07:20 +00:00
Marc-André Lureau
437a359f1b
gdk/win32: fix cursor hotspot
...
This seems to be a regression from commit c06b1cc103
"Win32: Re-work cursor handling".
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
2022-11-16 11:50:56 +04:00
Matthias Clasen
4eb017904b
Alertdialog: Cosmetics
2022-11-15 10:36:32 +00:00
Matthias Clasen
5aeb6c31c0
events: Drop an unused variable
2022-11-15 10:26:25 +00:00
Matthias Clasen
c9df9978d2
Inspector: Add a missing event type
...
We did not have a name for the new touchpad hold
events.
To prevent this from happening again in the future,
add a static assertion.
2022-11-15 07:18:41 +01:00
Cam Cook
d1bb927286
Documentation fix: Various spelling mistakes (and one use of the wrong verb) across a few domains that show up in documentation.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkButton](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbutton.c#L691 ) | "Buttons can has a flat appearance" | "Buttons can have a flat appearance" |
| [GtkCenterBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkcenterbox.c#L275 ) | "pas %NULL" | "pass %NULL" |
| [GtkEditable](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkeditable.c#L466 ) | "the text to append" | "the text to insert" |
| [GtkFlowbox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkflowbox.c#L4921 ) | "the are equal" | "they are equal" |
| [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L550 ) | "Call this when a the selection changes" | "Call this when a selection changes" |
| [GtkWIndow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwindow.c#L5321 ) | "(e.g. the user or the window manager" | "(e.g. the user or the window manager)" |
2022-11-13 11:55:05 -05:00
Emmanuele Bassi
bd66198b88
docs: Add more links to the list widgets description
2022-11-11 11:30:41 +00:00
Emmanuele Bassi
5193846787
docs: Add links to the list widgets table
...
Make it easier for readers to go to the appropriate replacement for the
old GtkTreeView-and-friends API.
2022-11-11 11:21:17 +00:00
Matthias Clasen
2daea9e459
Merge branch 'focus-no-parent' into 'main'
...
focus: fall back to old behaviour if we didn't focus anything
See merge request GNOME/gtk!5189
2022-11-11 10:29:00 +00:00
Matthias Clasen
2d48793641
Merge branch 'docs-update' into 'main'
...
docs: Update Common Questions section on list views
See merge request GNOME/gtk!5209
2022-11-11 10:28:11 +00:00
Arjan Molenaar
920f49e993
Fix typo in 4 to 5 migration page
2022-11-10 22:41:26 +01:00
Arjan Molenaar
29d7f93e38
Update Common Questions section on tree views
...
Point users to GtkListView instead of the
deprecated GtkTreeView.
2022-11-10 22:41:26 +01:00
Matthias Clasen
df5a13806d
Merge branch 'gdkwaylandtoplevel' into 'main'
...
gdk/wayland/surface: Move more members to `GdkWaylandPopup` and `GdkWaylandToplevel`
See merge request GNOME/gtk!4227
2022-11-10 13:58:24 +00:00
Luca Bacci
aebbf7cc61
Merge branch 'win32-inhibit' into 'main'
...
gdk-win32: implement basic inhibit-system-shortcuts
See merge request GNOME/gtk!5206
2022-11-10 11:18:23 +00:00
Luca Bacci
26c524a578
GdkWin32: Do not use MA_NOACTIVATEANDEAT
...
GTK knows when a surface is modally blocked and automatically drops
button press and release events, so do not block input in advance
from WM_MOUSEACTIVATE.
2022-11-10 09:27:24 +01:00
Matthias Clasen
fc8ef02bb5
Merge branch 'export-handle-refactor' into 'main'
...
Refactor surface handle export
See merge request GNOME/gtk!5205
2022-11-10 08:00:07 +00:00
Marc-André Lureau
cf04a3c99d
gdk-win32: implement basic inhibit-system-shortcuts
...
This is largely adapted from commit 83027c68f1
("11: Implement
inhibit_system_shortcuts API"), with similar rationale:
To implement the inhibit_system_shortcuts API on X11, we emulate the
same behavior using grabs on the keyboard.
To avoid keeping active grabs on the keyboard that would affect
other X11 applications even when the surface isn't focused, the X11
implementation takes care of releasing the grabs as soon as the
toplevel loses focus.
Note that Windows has low-level keyboard hooks that could help achieve
the expected behaviour. This is implemented by spice-gtk & gtk-vnc for
example, but correctness isn't obvious. I left a TODO comment.
This patch helps implementing remote desktop widgets with GTK4, since
currently on win32 backend Alt-Tab and such are always left to the
system unless there is keyboard grab (which can't be requested by the
client API anymore, afaict).
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
2022-11-09 19:29:03 +04:00
Matthias Clasen
43d6682e45
wayland: Reimplement export_handle
...
Reimplement the backend API on top of the new async
calls.
2022-11-09 16:28:30 +01:00
Matthias Clasen
d1bdc36331
window: fixups
2022-11-09 16:28:30 +01:00
Matthias Clasen
dcc3b638aa
wayland: fixups
2022-11-09 16:28:30 +01:00
Matthias Clasen
4b40aeb0c6
wayland: Support the v2 protocol in both places
...
The old api should better support both versions of the
foreign protocol too.
2022-11-09 16:28:29 +01:00
Matthias Clasen
0ba8e16e14
wayland: Add zxdg_foreign_v2 protocol support
2022-11-09 16:28:29 +01:00
Matthias Clasen
f9982a61e6
window: Use gdk_toplevel_export_handle
2022-11-09 16:28:29 +01:00
Matthias Clasen
1c99ed542a
Add gdk_toplevel_export_handle
...
This code is backend-specific, and should not live
in gtkwindow.c.
2022-11-09 16:28:29 +01:00
Marc-André Lureau
a92aea4c0e
gdk-win32: fix unused variable warnings
...
../gdk/win32/gdksurface-win32.c: In function 'gdk_win32_get_window_size_and_position_from_client_rect':
../gdk/win32/gdksurface-win32.c:3753:20: warning: unused variable 'impl' [-Wunused-variable]
3753 | GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
| ^~~~
../gdk/win32/gdksurface-win32.c: In function 'gdk_win32_surface_get_queued_window_rect':
../gdk/win32/gdksurface-win32.c:5129:20: warning: unused variable 'impl' [-Wunused-variable]
5129 | GdkWin32Surface *impl = GDK_WIN32_SURFACE (surface);
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
2022-11-09 19:19:44 +04:00
Matthias Clasen
956100017c
Merge branch 'wayland_display_geometry' into 'main'
...
wayland: calculate union of geometry of all monitors for toplevel bounds
See merge request GNOME/gtk!4790
2022-11-08 16:29:15 +00:00
Matthias Clasen
514ec8942d
Merge branch 'cursor-size' into 'main'
...
GtkSettings: Provide settings in logical pixels also on X11
Closes #5223 and #5230
See merge request GNOME/gtk!5172
2022-11-08 16:27:06 +00:00
Matthias Clasen
7caa211d6a
Merge branch 'wip/carlosg/back-forward-mask' into 'main'
...
gdk/wayland: Fix button mask calculation on button events
Closes #5301
See merge request GNOME/gtk!5191
2022-11-08 16:14:18 +00:00
Matthias Clasen
cb7b57635b
Merge branch 'add-link-to-docs' into 'main'
...
Link the file mentioned as a reference for key values
See merge request GNOME/gtk!5198
2022-11-08 16:05:59 +00:00
Matthias Clasen
9e28a407df
Merge branch 'ebassi/since-for-main' into 'main'
...
docs: Add deprecation notices for properties
See merge request GNOME/gtk!5204
2022-11-08 16:01:11 +00:00
Matthias Clasen
a5780beba7
Merge branch 'ccook/gtk_aspect_frame_doc_fix' into 'main'
...
doc/comment fix: @self misspelled as self@
See merge request GNOME/gtk!5200
2022-11-08 15:28:08 +00:00
Matthias Clasen
304f1e43af
Merge branch 'matthiasc/for-main' into 'main'
...
Add new printf patterns to make-pot
See merge request GNOME/gtk!5188
2022-11-08 15:23:03 +00:00
Emmanuele Bassi
5a51cbe673
docs: Add deprecation notices for properties
2022-11-08 10:45:09 +00:00
Matthias Clasen
901c968b97
Merge branch 'fix-color-dialog-button-new' into 'main'
...
colordialogbutton: Actually accept NULL
Closes #5321
See merge request GNOME/gtk!5202
2022-11-07 14:51:34 +00:00
Matthias Clasen
2c6ac137a3
gtk-demo: Improve language handlng
...
In the font features demo, don't add a
item for the default language to the dropdown,
that does not make sense.
2022-11-07 15:42:38 +01:00
Matthias Clasen
5bd264d532
gtk-demo: Add a few mssing language names
2022-11-07 15:42:38 +01:00
Matthias Clasen
e908a117a9
gtk4-demo: Tweak the pickers demo
...
Redo the file picker a bit.
2022-11-07 15:42:38 +01:00
Matthias Clasen
14a97accf1
po: Match make-pot
...
We are not normally using the gtk40-pot target to
generate the gtk40.pot file. On the off chance that
somebody does, lets make sure we pass the same
arguments to xgettext here as in the make-pot script
that is used on damn lies.
2022-11-07 15:42:38 +01:00
Matthias Clasen
e619d45ddc
Add a test for picker button constructors
...
This turns out to be hard enough that a test
is useful.
2022-11-07 15:32:51 +01:00
Matthias Clasen
e00b96053b
colordialogbutton: Actually accept NULL
...
As pointed out in #5321 , my previous fix was not
good enough.
Fixes : #5321
2022-11-07 15:24:13 +01:00
Colin Kinloch
293b91e515
wayland: calculate union of geometry of all monitors for toplevel bounds
...
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com >
2022-11-07 11:08:18 +00:00
Cam Cook
ed16946685
doc/comment fix: the ref to @self was misspelled as self@ for gtkaspectframe.h/gtk_aspect_frame_get_child
...
Noticed this while reviewing the gi-docgen docs for GtkAspectFrame while developing some java bindings.
It's my understanding that @self was intended; as it would cause gi-docgen to interpret it as a reference to
the the GtkAspectFrame pointer named 'self'.
2022-11-06 17:59:23 -05:00
Matthias Clasen
18ee4d97fc
Merge branch 'fix-color-button-new' into 'main'
...
color/fontdialogbutton: Fix constructors
Closes #5321
See merge request GNOME/gtk!5199
2022-11-06 13:36:49 +00:00
Matthias Clasen
466db31aac
color/fontdialogbutton: Fix constructors
...
The arguments were meant to be nullable.
Make it so!
Fixes : #5321
2022-11-06 14:12:02 +01:00
Pedro Sader Azevedo
32e138689e
Link the file mentioned as a reference for key values
2022-11-06 01:54:38 +00:00
Balázs Úr
06409cf18f
Update Hungarian translation
2022-11-05 22:21:06 +00:00
Goran Vidović
0041329f4d
Update Croatian translation
2022-11-05 18:55:57 +00:00
Matthias Clasen
d1c943153c
Merge branch 'make-pot-update' into 'main'
...
Add new printf patterns to make-pot
See merge request GNOME/gtk!5197
2022-11-05 10:50:51 +00:00
Matthias Clasen
baac6ef871
Add new printf patterns to make-pot
...
This script is used to extract our strings for translators
on damn lines, and passing these flags to xgettext makes
it put a hint into the pot file about strings that are
used as printf format strings.
2022-11-05 11:23:53 +01:00
Luca Bacci
b209e5117d
Merge branch 'gdk-win32-settings-rework' into 'main'
...
GdkWin32 settings rework
See merge request GNOME/gtk!5193
2022-11-04 16:00:25 +00:00
Luca Bacci
440929daea
GdkWin32: Add more GDK_NOTE calls for settings
2022-11-04 16:11:27 +01:00
Luca Bacci
1506de5669
GdkWin32: Set the "gtk-hint-font-metrics" property
...
Helps for https://gitlab.gnome.org/GNOME/gtk/-/issues/5257
2022-11-04 16:03:11 +01:00
Luca Bacci
41f9f1d623
GdkWin32: Set the "gtk-cursor-blink" setting
2022-11-04 15:57:25 +01:00
Luca Bacci
24047d7f61
GdkWin32: Set the "gtk-cursor-theme-size" setting
...
Note that we have to set the logical value, that's why
we use GetSystemMetrics and not GetSystemMetricsForDpi.
2022-11-04 15:56:20 +01:00
Luca Bacci
45681c4fe5
GdkWin32: Detect the high contrast setting
...
And set the theme name accordingly ("Default-hc")
2022-11-04 15:54:02 +01:00
Luca Bacci
95c121b6d6
GdkWin32: Fix leak of screen HDC
2022-11-04 15:41:11 +01:00
Luca Bacci
6b569afdfe
GdkWin32: Remove special-casing for old Pango versions
...
We require Pango 1.50 now
2022-11-04 15:35:04 +01:00
Luca Bacci
429017ad16
GdkWin32: Remove old code
2022-11-04 15:31:40 +01:00
Luca Bacci
fe1d86f23c
GdkWin32: Sort settings alphabetically
2022-11-04 15:30:12 +01:00
Adam Williamson
e07f8ef506
focus: fall back to old behaviour if we didn't focus anything
...
8455b9ac74
seems to have introduced a problem where we can wind
up focusing no widget at all if the `while (parent)` loop doesn't
find a widget it can successfully move the focus to. This 'fixes'
that by falling back to doing the previous thing if we make it
all the way through that loop without moving the focus. Thanks to
@coreyberla for a hint to improve the implementation.
Signed-off-by: Adam Williamson <awilliam@redhat.com >
2022-11-02 09:32:32 -07:00
Carlos Garnacho
ece28bea74
gdk/wayland: Fix button mask calculation on button events
...
There's 2 things broken here:
- The mask was calculated on top of the GDK button (i.e. skipping
4-7 buttons), so GDK_BUTTON4_MASK and GDK_BUTTON5_MASK were not
assigned. This is now calculated on the (continuous) BTN_ evcodes
so it is guaranteed that the next 2 physical buttons (i.e.
back/forward) get these two places in the mask assigned.
- Furthermore, these buttons would be pushed to places in the
modifier mask that they didn't belong to. It is now checked hard
that only the first 5 buttons enable a modifier flag.
Overall, this ensures that no event masks with bonkers values are
forwarded, and that no stale implicit grabs are left after additional
buttons are pressed.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5301
2022-11-02 17:17:43 +01:00
Sabri Ünal
a272887c34
Update Turkish translation
2022-11-02 06:06:38 +00:00
Nathan Follens
c4c9a44d7a
Update Dutch translation
...
(cherry picked from commit 381c056070
)
2022-11-01 23:10:53 +00:00
Luca Bacci
ac60bc6095
X11: Provide settings in logical pixels
...
This makes GtkSettings values on X11 match what we get on
other backends.
Reporting size settings in logical pixels (i.e for scale
== 1) is useful for properly supporting mixed-DPI setups.
As X11 doesn't support mixed-DPI setups anyway, XSettings
doesn't bother providing logical values. Thus we scale
from physical to logical values ourselves.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5223
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5230
2022-11-01 13:09:28 +01:00
Matthias Clasen
9c5ba5544e
Post-release version bump
2022-10-31 22:22:06 -04:00
Matthias Clasen
0af8d7cf06
4.9.1
2022-10-31 22:07:15 -04:00
Matthias Clasen
fcf00391b4
Merge branch 'matthiasc/for-main' into 'main'
...
Revert "modules: Fix build on Visual Studio"
See merge request GNOME/gtk!5187
2022-11-01 01:09:51 +00:00
Matthias Clasen
16b95939f9
gdk: Bump the jpeg malloc limit
...
Bump the limit for memory use during jpeg loading
to 1GB, matching what gdk-pixbuf has for this.
2022-10-31 20:35:15 -04:00
Matthias Clasen
0a6f3944a0
Revert "modules: Fix build on Visual Studio"
...
This reverts commit acd9c12667
.
This commit breaks the build with GLib main on all platforms,
and defining _GLIB_EXTERN arguably invades the GLib namespace.
A different fix for msvc will have to be found.
2022-10-31 20:20:32 -04:00
Matthias Clasen
1a8ff606f2
Merge branch 'matthiasc/for-main' into 'main'
...
Be consistent in preconditions for async API
See merge request GNOME/gtk!5186
2022-10-31 21:15:10 +00:00
Matthias Clasen
030e8c0bf9
Be consistent in preconditions for async API
...
Do the same checks in all our finish functions.
2022-10-31 16:40:54 -04:00
Aleksandr Melman
4b29972d31
Update Russian translation
2022-10-31 12:30:25 +00:00
Matthias Clasen
d1bff928f6
Merge branch 'ebassi/since-for-main' into 'main'
...
Ebassi/since for main
See merge request GNOME/gtk!5185
2022-10-30 23:22:19 +00:00
Emmanuele Bassi
d665b0e042
docs: Add missing Deprecated annotations
2022-10-30 20:08:39 +00:00
Emmanuele Bassi
37fadb20a9
docs: Add missing Since annotations
2022-10-30 20:08:21 +00:00
Matthias Clasen
1c3f179a20
Merge branch 'matthiasc/for-main' into 'main'
...
alertdialog: Small refactoring
See merge request GNOME/gtk!5184
2022-10-30 13:29:35 +00:00
Matthias Clasen
5cb84afaa9
Add a test for POTFILES.in
...
Add a test that runs make-pot. This will only pass
if you've updated po/POTFILES.in and .skip after
moving source files around.
Unfortunately, it won't catch new source files that
are missing.
2022-10-30 08:52:02 -04:00
Matthias Clasen
a36bf22134
alertdialog: Small refactoring
...
Move the deprecated code out into its own function.
2022-10-30 08:52:02 -04:00
Piotr Drąg
8ef8514036
Update POTFILES.in
2022-10-30 12:34:21 +01:00
Matthias Clasen
c1b1e96a9a
Merge branch 'deprecate-gtkdialog2' into 'main'
...
Deprecate GtkDialog
See merge request GNOME/gtk!5182
2022-10-29 20:39:18 +00:00
Matthias Clasen
9948053cd7
Deprecate GtkDialog
...
GtkDialog is too flexible in terms of UI (headerbars vs action bar,
etc), and has archaic APIs. It is time to retire it.
2022-10-29 15:27:53 -04:00
Matthias Clasen
f1af8046d0
Merge branch 'matthiasc/for-main' into 'main'
...
Docs updates
See merge request GNOME/gtk!5180
2022-10-29 19:22:50 +00:00
Matthias Clasen
8324a93c73
Update docs
...
Mention new deprecations in the future migration guide.
2022-10-29 14:14:59 -04:00
Matthias Clasen
251dcc2f86
Merge branch 'async-dialog-api2' into 'main'
...
Add new async APIs to replace chooser dialogs
See merge request GNOME/gtk!5174
2022-10-29 17:52:13 +00:00
Matthias Clasen
2ca168d680
NEWS: Updates
2022-10-29 13:31:41 -04:00
Matthias Clasen
f54ab91ff3
Deprecate GtkFileChooser and implementations
...
These are being replaced by GtkFileDialog.
This commit only moves the headers for GtkFileChooserWidget and
GtkFileChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFileChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
66b062a976
Deprecate GtkMessageDialog
...
It is getting replaced by GtkAlertDialog
This commit only moves the header to deprecated/,
and keeps the implementation in gtk/, since it will
eventually be salvaged into a private, dialog-free
widget.
2022-10-29 13:31:41 -04:00
Matthias Clasen
15572b0183
Deprecate GtkFontChooser and implementations
...
These are being replaced by GtkFontDialog
and GtkFontDialogButton
This commit only moves the headers for GtkFontChooserWidget and
GtkFontChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFontChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
a51a6a3ee2
Deprecate GtkColorChooser and implementations
...
These are being replaced by GtkColorDialog
and GtkColorDialogButton.
This commit only moves the headers for GtkColorChooserWidget
and GtkColorChooserDialog to deprecated/, and keeps the
implementations in gtk/, since they will eventually be
salvaged into a private GtkColorChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
8bee62dd36
examples: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
4248380538
print-editor: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
e7de4c1f99
node-editor: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
d620197ae1
constraint-editor: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
ad2552ee43
widget-factory: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
756888a53d
gtk-demo: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
99e1643cdd
gtk-demo: Rewrite the pickers demo
...
This needs some more work. For now, just have
very simple test cases for some of the new async
APIs.
2022-10-29 13:31:41 -04:00
Matthias Clasen
9839aca0bd
inspector: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
9ab732ce2d
gtk: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
6ed2d2b232
Add GtkFileDialog
...
Add an async API for picking a file, together with
a builder object for it. This is meant to replace direct
use of GtkFileChooserDialog.
2022-10-29 13:31:41 -04:00
Matthias Clasen
cccc74786f
Add GtkAlertDialog
...
This is replacing GtkMessageDialog with an
async API for showing informational messages.
2022-10-29 13:31:41 -04:00
Matthias Clasen
aeacc8f3c5
Add GtkFontDialogButton
...
This is like GtkColorDialogButton, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
7d0ebe02db
Add GtkFontDialog
...
This is similar to GtkColorDialog, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
655675e6a1
Add GtkColorDialogButton
...
This is a new color button implementation
built around GtkColorDialog.
2022-10-29 13:02:15 -04:00
Matthias Clasen
f877f33c19
Add GtkColorDialog
...
Add an async API for picking a color, together with
a builder object for it. This is meant to replace direct
use of GtkColorChooserDialog.
2022-10-29 10:18:37 -04:00
Matthias Clasen
2fce117d15
Add GtkDialogError
...
This error domain will be used by async apis
in future commits.
2022-10-29 10:18:37 -04:00
Matthias Clasen
bd5dedce12
fontchooser: Add a way to set a GtkFilter
...
We keep this private, since the chooser apis
are going away. This will be used in GtkFontDialog.
2022-10-29 10:18:37 -04:00
Matthias Clasen
bdc91c2339
messagedialog: Cosmetics
2022-10-28 22:23:04 -04:00
Matthias Clasen
8be7515610
Merge branch 'matthiasc/for-main' into 'main'
...
ci: Try to fix the macos build
See merge request GNOME/gtk!5179
2022-10-29 02:08:19 +00:00
Matthias Clasen
2cef677aef
ci: Require macos to build again
2022-10-28 21:39:13 -04:00
Matthias Clasen
a2e2673809
ci: Try to fix the macos build
...
It seems that libjpeg-turbo first finds nasm,
and then doesn't find it. Turn off simd to keep
it from looking for it in the first place.
2022-10-28 21:07:58 -04:00
Matthias Clasen
2c844e961f
Merge branch 'matthiasc/for-main' into 'main'
...
printeroptionwidget: Drop unused include
See merge request GNOME/gtk!5178
2022-10-28 23:41:03 +00:00
Matthias Clasen
5c9d68a550
printeroptionwidget: Drop unused include
2022-10-28 18:24:48 -04:00
Matthias Clasen
0248a7e43f
Merge branch 'matthiasc/for-main' into 'main'
...
gtk4-demo: Avoid a critical from a11y code
See merge request GNOME/gtk!5177
2022-10-28 16:20:18 +00:00
Matthias Clasen
b972decf82
gtk4-demo: Avoid a critical from a11y code
...
Even though we want to be accessible,
we must not divide by zero.
2022-10-28 12:02:23 -04:00
Emmanuele Bassi
66ec091461
Merge branch 'bilelmoussaoui/file-chooser-gi' into 'main'
...
g-i: Add missing since annotation
See merge request GNOME/gtk!5175
2022-10-27 17:06:22 +00:00
Bilal Elmoussaoui
6ca33c639e
g-i: Add missing since annotation
2022-10-27 15:38:14 +00:00
Matthias Clasen
a13a681910
Merge branch 'revert-9c919ffa462dd4511da0bfd19d36d2e15c51651b-main' into 'main'
...
Revert "treepopover: Do not propagate natural width of content"
See merge request GNOME/gtk!5171
2022-10-26 18:22:43 +00:00
Mat
f6eb84189f
Revert "treepopover: Do not propagate natural width of content"
...
This reverts commit 9c919ffa46
.
2022-10-26 13:58:10 +03:00
Hodong
30525835f3
Fix a typo
2022-10-25 19:40:30 +00:00
Matthias Clasen
114e2b607b
Merge branch 'ebassi/glade-docs' into 'main'
...
docs: Remove mentions of Glade
See merge request GNOME/gtk!5168
2022-10-25 00:39:57 +00:00
Emmanuele Bassi
21bc2c5078
docs: Remove mentions of Glade
...
Glade does not support GTK4, so we should not link to it when discussing
developing GTK4 applications.
2022-10-24 20:11:50 +01:00
Мирослав Николић
a95cfb1c45
Update Serbian translation
...
(cherry picked from commit b760f57ae1
)
2022-10-23 09:21:37 +00:00
Matthias Clasen
799fb41937
Merge branch 'deprecation-cleanups' into 'main'
...
gtk-demo: Replace combo boxes in font features
See merge request GNOME/gtk!5164
2022-10-22 19:23:45 +00:00
Matthias Clasen
e6f4c596fa
gtk-demo: Use global style in font_features
2022-10-22 11:38:46 -04:00
Matthias Clasen
3d7fb26588
gtk-demo: Replace combo boxes in font features
...
This is a slightly more complicated combo box,
so we need an auxiliary object.
2022-10-22 11:35:35 -04:00
Matthias Clasen
93f9b2d519
Merge branch 'deprecation-cleanups' into 'main'
...
gtk-demo: Remove deprecations from dnd
See merge request GNOME/gtk!5160
2022-10-22 02:32:23 +00:00
Matthias Clasen
6f3613a06f
bloatpad: Stop using a combobox
...
Replace GtkComboBoxText with GtkDropDown+GtkStringList.
2022-10-21 22:03:17 -04:00
Matthias Clasen
3723778f42
fontchooser: Stop using deprecated harfbuzz api
...
The replacement is very straightforward.
2022-10-21 21:54:38 -04:00
Matthias Clasen
3fc3f8d2ff
gtk-demo: Replace combobox in font rendering
...
Out with the combobox, in with the dropdown.
2022-10-21 21:48:39 -04:00
Matthias Clasen
2868f1b509
placesview: Drop deprecation guards
...
We got rid of all deprecated api here.
2022-10-21 21:48:39 -04:00
Matthias Clasen
f44570e71a
filechooserwidget: Drop deprecation guards
...
We got rid of all deprecated api here.
2022-10-21 21:48:39 -04:00
Matthias Clasen
15d39dddc5
filesystemmodel: Drop outdated comments
...
Drop a long comment describing an implementation
that no longer exists.
2022-10-21 21:48:39 -04:00
Matthias Clasen
1028449bcc
filesystemmodel: Drop unneded deprecation guards
...
Nothing deprecated is used here anymore.
2022-10-21 21:48:39 -04:00
Matthias Clasen
01cca279f9
searchenginemodel: Drop unneeded deprecation guards
...
Nothing deprecated is used here anymore.
2022-10-21 21:48:39 -04:00
Matthias Clasen
a7cae4bffa
gtk-demo: Remove deprecations from characters
...
Make the characters demo use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
3e2e29a1dc
gtk-demo: Remove deprecations from sizegroup demo
...
Out with the comboboxes, in with the dropdowns.
2022-10-21 21:48:39 -04:00
Matthias Clasen
de069e15c2
gtk-demo: Remove deprecation from textview demo
...
Use a dropdown instead of a combobox for the widget
embedding. It's better!
2022-10-21 21:48:39 -04:00
Matthias Clasen
f8edefd7c0
gtk-demo: Remove deprecations from gltransitions
...
Make the GL transitions demo use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
24a15b51fe
gtk-demo: Remove deprecations from solitaire
...
Make the solitaire game use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
1f7aba345d
gtk=demo: Drop unneeded deprecation guards
...
Nothing deprecated in the pixbuf paintable demo.
2022-10-21 21:48:39 -04:00
Matthias Clasen
230212c59c
gtk-demo: Remove deprecations from dnd
...
Make the dnd demo use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
86f7c19b91
Merge branch 'wip/corey/file-chooser-popup' into 'main'
...
filechooserwidget: Fix popup issues
See merge request GNOME/gtk!5161
2022-10-22 00:36:26 +00:00
Corey Berla
e5cea4e39d
filechooserwidget: Show popup when clicking on empty space
...
Add gesture to right click or long press in the empty space
in the FileChooserWidget. Only show the global settings when
clicking on the empty space.
2022-10-21 13:57:21 -07:00
Corey Berla
22aca8952f
filechoosercell: Select item when right click or long press
2022-10-21 13:57:15 -07:00
Corey Berla
c0e437d163
filechoosercell: Only use long press when in touch mode
2022-10-21 13:57:11 -07:00
Corey Berla
ffe97a453f
filechoosercell: Claim sequence on click
2022-10-21 13:57:06 -07:00
Matthias Clasen
c09ba28b06
Merge branch 'gbsneto/filechooser-column-view' into 'main'
...
Port filechooser to GtkColumnView
See merge request GNOME/gtk!5108
2022-10-21 19:42:24 +00:00
Matthias Clasen
81de43eba5
Merge branch 'matthiasc/for-main' into 'main'
...
Bump the GLib requirement
See merge request GNOME/gtk!5158
2022-10-21 16:26:57 +00:00
Matthias Clasen
788be8b945
filesystemmodel: Fix a compiler warning
2022-10-21 12:15:36 -04:00
Matthias Clasen
0370979225
theme: Fix up padding for the file chooser
...
We need the padding inside the filelistcell, so that
its event controllers cover the whole area.
Introduce a .complex style class for columnviews that
achieves that, and make the filechooser use it.
2022-10-21 08:28:58 -04:00
Matthias Clasen
943014074c
Bump the GLib requirement
...
We now use GSignalGroup, which was introduced
in GLib 2.72.
2022-10-21 07:59:47 -04:00
Matthias Clasen
c0e8523a01
filesystemmodel: Fix a compiler warning
2022-10-21 07:44:13 -04:00
Matthias Clasen
8374ebe4c4
Merge branch 'gtkcompostable-c-fix-c4013' into 'main'
...
gtkcomposetable.c: Fix build on non-X11
See merge request GNOME/gtk!5156
2022-10-21 11:40:52 +00:00
Chun-wei Fan
611d14108d
gtkcomposetable.c: Fix build on non-X11
...
The build breaks with a C4013 warning/error on Visual Studio because we don't
have a prototype defined for _gtk_get_datadir(), so include gtkprivate.h.
The vs2017-x64 CI did not catch this error because it is building GLib as a
fallback subproject, causing the msvc_recommended_pragmas.h header not to be
found, which is used to detect problems like this.
2022-10-21 12:29:19 +08:00
Matthias Clasen
25cf702345
filechooser: Make search results show up
...
The tracker search engine implementation was not
setting all the custom attributes that we require
now.
The quartz search engine will need similar fixes.
2022-10-20 22:34:41 -04:00
Matthias Clasen
1d9c61cada
filechooserwidget: Remember sort columns and order
...
These settings existed before, we keep using them.
This loses some information about sorting by multiple
columns, but it is sufficient to get the same primary
sort column back.
2022-10-20 22:34:41 -04:00
Corey Berla
71adb26a0d
filechooserwidget: Fix time_sort_func
2022-10-20 22:34:41 -04:00
Corey Berla
e27fa33690
filechooser: Add show-time property
...
The "Show Time" setting does not take immediate effect (only after
changing folders) because it's set as a single call to
column_view_get_time_visible() on the FileChooserCell creation.
Instead create a bind a show-time property that gets updated
as the setting is changed.
2022-10-20 22:34:41 -04:00
Corey Berla
f7dfead861
filechoosercell: Add a GtkDragSource
...
Allow dragging one or more items. If the item dragged is not part of
the current selection, only drag that item.
2022-10-20 22:34:41 -04:00
Corey Berla
aac04a0995
filechoosercell: Bind "item" and "selected" to cell
2022-10-20 22:34:41 -04:00
Corey Berla
8af191e52d
filechooserwidget: Expose selection model
...
FileChooserCell may need to change the selection during a DND.
2022-10-20 22:34:41 -04:00
Corey Berla
06382ff836
filechooserwidget: Rename and expose get_selected_files()
...
GtkFileChooserCell will need this function
2022-10-20 22:34:41 -04:00
Matthias Clasen
cd469788c3
filechooserwidget: Make rename popover work
...
Make the rename popover operate on the file that
the context menu was opened for, and pop up at
the same position.
2022-10-20 22:34:40 -04:00
Matthias Clasen
44b5076cf2
filechooserwidget: Make context menus mostly work
...
Move the gestures to the individual cells, and
make them trigger the context menu via an action
that takes item position and coordinates.
The semantics are changed slightly: the menu actions
now operate on the clicked item, not on the selection.
Still to do: Fix up keyboard activation.
2022-10-20 22:34:40 -04:00
Matthias Clasen
e5be9e1035
filesystemmodel: Drop the model types
...
We are no longer storing extra values, so no need
to take their types in the api.
2022-10-20 22:34:40 -04:00
Matthias Clasen
b831d01f0d
filesystemmodel: Drop unused arguments
...
Drop the unused get_func arguments in constructors.
Update all callers.
2022-10-20 22:34:40 -04:00
Matthias Clasen
278bcf2680
filechooserentry: Simplify model construction
...
Don't pass a get_value callback when creating the
filesystem model. It isn't called anymore, and things
continue to work.
2022-10-20 22:34:40 -04:00
Matthias Clasen
c19d0dc9ea
filesystemmodel: Drop more unused api
...
Drop all apis that operate on tree iters.
We are no longer a tree model.
2022-10-20 22:34:40 -04:00
Matthias Clasen
edd5ed169e
filesystemmodel: Drop _gtk_file_system_model_get_value
...
This function is unused, so drop it, and its callback.
2022-10-20 22:34:40 -04:00
Matthias Clasen
8ec9c3fdc6
filechooser: Some work on popup menus
...
This is a start towards placing menus properly.
We once again center keyboard-triggered menus
on the file list.
2022-10-20 22:34:40 -04:00
Matthias Clasen
e95022040f
filechooser: Drop deprecated includes
...
We no longer use cell renderers and tree models
here. Yay.
2022-10-20 22:34:40 -04:00
Matthias Clasen
3a2ce620e2
filesystemmodel: Fix a possible problem
...
If the async query fails to reproduce a file info,
we still need to thaw the model, otherwise it ends
up frozen forever.
This was deduced by reading the code, I haven't
actually seen it happen.
2022-10-20 22:34:40 -04:00
Matthias Clasen
df49bf9eec
filechooserwidget: Use a string sorter for names
...
We can use the new collation property of GtkStringSorter,
and get the benefit of sort key caching. This commit
also fixes an accidental leak of all sorters, and
removes the sorter from the location column - we never
show that column when individual colummns are sortable.
2022-10-20 22:34:40 -04:00
Matthias Clasen
53327f3aea
filechooser: Drop unnecessary theme tracking
...
The widgets we are using handle theme changes
themselves, so there is no need for the filechooser
to do anything.
2022-10-20 22:34:40 -04:00
Matthias Clasen
c0c3d75062
filechooser: Bring back sorting
...
Add a sort model between the filter model and the
file system model, and set it up to sort according
to the circumstances.
2022-10-20 22:34:40 -04:00
Corey Berla
d0d0409f9d
filechooserwidget: Reimplement DnD Drop Target
...
This reverts commit 34752a15a71597d00a8d08befc545ac1c178b81b.
Leaving out the drag source portion as that needs a total
reimplementation. The GtkDropTarget only required minor
modifications.
2022-10-20 22:34:40 -04:00
Matthias Clasen
3a7d094542
filechooserwidget: Reinstate show_and_select_files
...
Now that we have information about visible and
filtered-out status of items, we can make this
function work again.
2022-10-20 22:34:40 -04:00
Matthias Clasen
280adcbb8c
filechooserwidget: Add a filter model
...
Put a filter model between the selection model and
the filesystem model, and make it filter on the
filechooser::visible attribute. This makes the filer
combo in the filterchooser and the 'show hidden files'
item work. But we need to prod the filter to trigger
a refiltering every now and then.
2022-10-20 22:34:40 -04:00
Matthias Clasen
83431a999c
filesystemmodel: Make filtering info available
...
Provide the filtered-out and visible bits as a file attributes
under the names filechooser::filtered-out and filechooser::visible,
so that we can filter on it.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
eeeee99aa8
filechooserwidget: Connect to the right model
...
When recreating the browse_files_model model, connect to that
model's item-changed signal, instead of connecting to the selection
model.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
0f503e0ba2
filechooserwidget: Connect to items-changed when changing model
...
Just like previous commit, we need to call list_items_changed()
even if we change from single selection to multi selection or
vice-versa.
2022-10-20 22:34:40 -04:00
Matthias Clasen
3e4ae62b44
filesystemmodel: Drop an unused include
2022-10-20 22:34:40 -04:00
Matthias Clasen
ec4f814bd4
filechooserwidget: Listen to items-changed too
...
To track changes of the selected items in a selection
model, we need to listen to both ::selection-changed
and ::items-changed.
This fixes the open button not turning sensitive
when initially loading a new folder.
2022-10-20 22:34:40 -04:00
Matthias Clasen
0141ba4e00
filechooser: Prevent recursion when activating items
...
When a list item is activated, we activate the default widget.
Unfortunately, due to some other bug, sometimes the open button
is not made sensitive, and then default.activate falls back
to activating the focus widget (which is the item we are just
coming from). Boom
2022-10-20 22:34:40 -04:00
Matthias Clasen
52ef16c21b
actionmuxer: Add debug spew for action activation
...
This helps tracking down whe activation goes wrong.
2022-10-20 22:34:40 -04:00
Matthias Clasen
6ca7104015
filesystemmodel: Drop the tree model implementation
...
This is no longer used.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
07d6166ab8
filechooserwidget: Use GListModel API for post-renaming selection
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
dc651c3dc3
filechooserentry: Use separate GtkTreeStore for completion
...
Soon GtkFileSystemModel will not be a GtkTreeModel implementation,
so preemptively remove any usage of this interface. Populate the
list store using the GListModel's 'items-changed' signal.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
f520801626
filesystemmodel: Retire GtkFileSystemItem
...
This has to be the shortest-living object in GTK history!
It helped us greatly during the transition to GtkColumnView, but
now we can remove it in favour of GFileInfo directly. Perhaps I
could have never introduced GtkFileSystemItem in the first place,
but we're 30 commits deep and it's too late to just redo the whole
thing that will get us exactly here anyway.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
4e3fbd0b0f
filesystemmodel: Always set standard::file attribute
...
This will help us greatly when porting GtkFileSystemModel to
GtkDirectoryList.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
8a24fdea38
filesystemmodel: Trivial cleanup
...
Use g_set_object() which does exactly what the code there does.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
b26222b6ba
filechooserutils: Add helper to get GFile from info
...
This will be used extensively starting from next commit!
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
c8d291ab86
filechooserentry: Trivial cleanups
...
Use g_clear_object() in a couple of places. No functional changes.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
0a87438432
searchenginemodel: Use GListModel API to filter
...
We now start a mini-series of commits that will ultimately remove
the GtkTreeModel implementation of GtkFileSystemModel.
As a first step, port GtkSearchEngineModel iter through the files
using GListModel API.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
ddf1cd6678
filechooserwidget: Remove treeview
...
Now that most of the treeview usage is gone, remove the remaining
code that uses it - mostly event handling code, which for now won't
work, but will be fixed by next commits - and drop the tree view
entirely.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
9c6d5e2ca5
filechooserwidget: Use GtkSelectionModel for selection
...
So far, GtkFileChooserWidget has relied on GtkTreeView's selection
management. This commit moves it away from GtkTreeView, and that's
a massive surgery - sorry :(
The most important aspect of this commit is that 'selection_model'
is now the main model we deal with. Changing between directories,
recent files, and search, all sets the selection_model's model.
Selections are entirely handled by GtkSelectionModel now.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
1f2561b08e
filesystemmodel: Add more GtkFileSystemItem getters
...
They'll help us further remove GtkTreeModel code.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
d5b31a30fd
filechooserwidget: Stop centering on selected files
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
39c678988d
filechooserwidget: Don't queue redraw / resize on tree view
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
9052c191cb
filechooserwidget: Compare focus against column view
...
This effectively doesn't work, but focus will be reworked at some
point, and this gets us a tiny bit closer to that.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
766f442636
gtkfilechooserwidget: Don't set size request
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
27a3d2d09e
filesystemmodel: Don't implement GtkTreeDragSource
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
3a3482e41e
filechooserwidget: Remove DnD code
...
Another case where we'll reimplement it later.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
44c37fa34a
filesystemmodel: Drop GtkTreeSortable interface
...
Stop implementing this interface. We'll be able to reimplement
sorting once we fully transition to GListModel.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
5c41dbfaa5
filechooserwidget: Remove sorting
...
This will be reimplemented later using list models. For now, let's
remove it so we can untangle all this code properly.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
c9d2ff7a0f
filechooserwidget: Stop autosizing treeview
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
174af596c5
filechooserwidget: Use column view scrolled window
...
One less hook to treeview widgetry.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
de2624faa7
filechooserwidget: Move tooltip text to column view
...
Use a closure binding to query the tooltip.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
cda784a5f4
filechooserwidget: Move folder navigation to column view
...
React to column view's 'activate' signal, instead of treeview's
'row-activated'. It doesn't handle file sensitivity yet, but that
will probably be dropped later.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
cc33dbef03
filechooserwidget: Move keynav handling to column view
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
ce36611c4e
filechooserwidget: Set rubberbanding on column view
...
And stop setting it on the tree view.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
038cb31d27
filesystemmodel: Don't expose cache
...
With this commit we start slowly cleaning up the sattelite code
surrounding GtkFileChooserWidget, so that we eventually drop it
all.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
3b53a6b0a9
filechooserwidget: Remove extra action bar
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
619ff2338e
filechooserwidget: Move date and time to column view
...
Because this is the last treeview column, some pending tasks
are marked as TODO. We're getting close to dropping the tree
view!
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
2bcd6949df
filechooserwidget: Move file type to column view
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
abd78ce5f5
filechooserwidget: Move size to column view
...
This was one of the easier ones. We merely delegate the hard work
to g_format_size(), like we already do for treeview.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
7899fc03c4
filechooserwidget: Move location to column view
...
Move the entire location column, which only contains the location
renderer, to the column view. The code to generate locations from
the current folder is essentially intact.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
9984f00781
filechooserwidget: Drop name column from treeview
...
It is now entirely handled by the column view.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
a0d3bdc911
filechooserwidget: Move file icon to column view
...
This commit moves the icon loading code into a new private
widget called GtkFileThumbnail, which is bound to the GFileInfo
of the model, and asynchronously loads the file icon from that.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
b96317b872
filechooserwidget: Move file name to column view
...
And remove it from the tree view. Next commits will look a lot like
this, until all columns are moved.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
6c84958b9f
filechooserwidget: Replace 'list' page with column view
...
Replace the 'list' page of the main stack with another page, this
one containing a GtkColumnView. This, again, is the very minimal
code to achieve a column view - and validate the GListModel code
introduced in the previous commit - but there's a long way until
this column view covers the full range of features of the file
chooser.
The tree view still lives in an unused 'list2' page. From now on,
commits will "cannibalize" the treeview, each commit porting any
particular feature - be it a column, an event controller, etc -
to the column view, and dropping the corresponding feature from
the treeview.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
f2559b1dbb
filesystemmodel: Implement GListModel
...
This is a trivial implementation of the GListModel interface. It
does not do anything fancy, like filtering out hidden files, nor
sorting.
The purpose of this minimal implementation is to bootstrap the
initial work to port GtkFileChooserWidget to GtkColumnView.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
ed2ade4801
filesystemmodel: Use g_clear_* on finalize
...
Trivial cleanup, no functional changes.
2022-10-20 22:34:40 -04:00
Matthias Clasen
4549172825
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Fix accessibility calls
See merge request GNOME/gtk!5154
2022-10-21 02:28:02 +00:00
Matthias Clasen
b877804eb6
Merge branch 'completion' into 'main'
...
entrycompletion: Fix inserted-text handler
See merge request GNOME/gtk!4892
2022-10-21 02:13:42 +00:00
Matthias Clasen
5310abbcf7
filechooserentry: Fix completions
...
Before we can drop them, lets make them work.
This was broken since 4.0, I assume :(
2022-10-20 21:41:18 -04:00
Matthias Clasen
490d4b0b9e
inspector: Fix accessibility calls
...
The argument list of gtk_accessible_update_property
is -1-terminated, not NULL-terminated.
2022-10-20 21:19:13 -04:00
Matthias Clasen
375432f0b6
Merge branch 'columnview-sorter-api' into 'main'
...
gtk-demo: Add more sort columns
Closes #5149
See merge request GNOME/gtk!5152
2022-10-20 19:18:26 +00:00
Matthias Clasen
c00a23ebbc
Merge branch 'fix-wayland-keycode-mapping' into 'main'
...
wayland: Fix keycode->keyval mapping
Closes #5277
See merge request GNOME/gtk!5147
2022-10-20 19:15:38 +00:00
Matthias Clasen
4cd2e2a11f
Merge branch 'ebassi/tree-deprecation-docs' into 'main'
...
docs: Add deprecation messages to GtkTreeStore
See merge request GNOME/gtk!5115
2022-10-20 18:39:29 +00:00
Matthias Clasen
ae7bf4dcf7
Merge branch 'wip/jtojnar/compose-consistent-system' into 'main'
...
Improve composetable inclusions
See merge request GNOME/gtk!5150
2022-10-20 18:28:47 +00:00
Matthias Clasen
9ed1505073
columnviewtitle: Clean up interactions
...
Separate the apis we use for updating title,
menu and sort indicator.
2022-10-20 13:57:33 -04:00
Matthias Clasen
e040d3663e
columnviewsorter: Add public API
...
This API should be sufficient to serialize
a columnviews sort configuration.
Fixes : #5149
2022-10-20 13:06:45 -04:00
Matthias Clasen
6af69a7b7d
Make GtkColumnViewSorter public
...
API is yet to come.
2022-10-20 13:01:18 -04:00
Matthias Clasen
a116e0dd26
columnviewsorter: Cosmetics
2022-10-20 13:01:18 -04:00
Matthias Clasen
3e2b962a36
columnviewcolumn: Add an ID
...
This string can be used when storing columnview
configuration.
2022-10-20 13:01:18 -04:00
Matthias Clasen
abb60ec579
columnviewcolumn: Remove some unused code
2022-10-20 11:44:05 -04:00
Matthias Clasen
b738d4a6ac
columnviewcolumn: Cosmetics
2022-10-20 11:44:05 -04:00
Matthias Clasen
0149bd49ca
gtk-demo: Add more sort columns
...
Add a second sort column to the Settings demo,
to make it easier to test column view sorting.
2022-10-20 11:44:05 -04:00
Emmanuele Bassi
e05157437f
Add more messages to the deprecation warnings
...
Point to replacement types for the old GtkTree* API.
2022-10-20 15:39:07 +01:00
Emmanuele Bassi
e045e798a2
Mark GtkStyleContext type as deprecated
...
Add the Deprecated tag to the type docblock
2022-10-20 15:39:07 +01:00
Emmanuele Bassi
7908a72fa9
Mark GtkEntryCompletion type as deprecated
...
Add the Deprecated tag to the type docblock.
2022-10-20 15:39:07 +01:00
Emmanuele Bassi
593bf2bc6d
Mark GtkTreeView-related types as deprecated
...
Add the Deprecated annotation to the type docblock.
2022-10-20 15:39:07 +01:00
Jan Tojnar
cf701d5db4
imcontextsimple: Document that Compose file support is incomplete
...
And that `include "%L"` does something different as introduced in
3b4b1c6878
Note that user can still use `include "/.%L"` as a workaround.
2022-10-20 16:19:13 +02:00
Emmanuele Bassi
bf8d4c5418
Mark GtkAppChooser-related types as deprecated
...
The type docblock needs a Deprecated annotation.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
912145c81b
Mark GtkCellRenderer-related types as deprecated
...
The docblock for the type needs a Deprecated annotation, and we can use
it to point to the appropriate replacement.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
913127b553
Point at the replacement for GtkIconView
...
In the symbol annotations and in the docblocks.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
62f85e2f49
Point at the replacements for GtkTreeView
...
In the symbol annotations and in the docblocks.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
4b1212eb4a
Point to replacement for GtkComboBoxText
...
GtkDropDown and GtkStringList replace GtkComboBoxText with a simpler
API.
2022-10-20 14:38:31 +01:00
Jan Tojnar
94a096ec4c
composetable: Support non-FHS paths for Compose tables
...
On platforms like NixOS, the libX11 installation prefix may differ from /usr/share,
breaking the hardcoded placeholders. Let’s re-use the X11 path definition from imcontextsimple.
2022-10-20 12:59:17 +02:00
Emmanuele Bassi
404ee55ec4
Point to GtkDropDown as the GtkComboBox replacement
2022-10-20 11:10:57 +01:00
Emmanuele Bassi
5fbd52da49
docs: Add deprecation message for GtkListStore
...
Point to GListStore and list models instead.
2022-10-20 11:02:29 +01:00
Emmanuele Bassi
7bf094c117
docs: Add deprecation messages to GtkTreeStore
...
Point to GtkTreeListModel, and while we're at it, let's fix some of the
gtk-doc-isms that are still there.
2022-10-20 11:02:29 +01:00
Matthias Clasen
4bb79decf3
Merge branch 'label-selection-fix' into 'main'
...
label: Tweak selection behavior
Closes #2024
See merge request GNOME/gtk!5148
2022-10-19 21:37:08 +00:00
Matthias Clasen
60fb93e063
label: Tweak selection behavior
...
Arrange for double-click-followed-by-drag to do
select by words, not select-and-dnd. This matches
the behavior in GtkTextView better and feels
intuitive.
Fixes : #2024
2022-10-19 16:22:55 -04:00
Matthias Clasen
1894a8960e
wayland: Fix keycode->keyval mapping
...
We were looping over the levels, but not using
the current level value to obtain the keymap
entries. Oops.
Fixes : #5277
2022-10-19 15:46:27 -04:00
Matthias Clasen
4ba5c90bc9
Merge branch 'filechooser-amberol' into 'main'
...
filechooser: Improve "Open in File Manager"
Closes #5260
See merge request GNOME/gtk!5140
2022-10-19 19:41:15 +00:00
Matthias Clasen
1d16bd7d30
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Remove mention of ~/.gtk-4.0
Closes #3266
See merge request GNOME/gtk!5146
2022-10-19 19:11:57 +00:00
Matthias Clasen
17819ad4f6
filechooser: Improve "Open in File Manager"
...
Just relying on GAppInfo leads to suboptimal
results. Instead, call either the OpenURI portal
or the org.freedesktop.FileManager1 interface
directly, and only fall back to GAppInfo.
The wrapper code for the OpenURI portal is taken
from gio, with small adjustments.
Fixes : #5260
2022-10-19 15:01:21 -04:00
Matthias Clasen
ac1ea6faca
docs: Remove mention of ~/.gtk-4.0
...
We are not looking there anymore, for a long time.
Fixes : #3266
2022-10-19 14:36:48 -04:00
Matthias Clasen
8a3f1a1fa1
Merge branch 'builder-tool-scope' into 'main'
...
docs: Update gtk4-builder-tool docs
See merge request GNOME/gtk!5145
2022-10-19 18:34:25 +00:00
Matthias Clasen
46c7c0c4e6
docs: Document new buildertool options
2022-10-19 13:36:14 -04:00
Matthias Clasen
dd60a9abd6
buildertool: Support enumerating callbacks
...
The new scope approach makes this easy, and
it can be useful to know what functions are
needed.
2022-10-19 13:36:14 -04:00
Matthias Clasen
50835ffbf6
buildertool: Improve validate implementation
...
Reimplement deprecation checking via a scope.
This lets us ignore missing callbacks, and helps
for validating templates.
2022-10-19 13:36:14 -04:00
Matthias Clasen
637713fe72
buildertool: Add a builder scope implementation
...
This will be used in future commits.
2022-10-19 13:36:14 -04:00
Matthias Clasen
7e71c868ab
buildertool: Use --deprecations for templates
...
Use this option for templates too.
We still can't parse most templates, since they are
missing their callbacks.
2022-10-19 13:36:14 -04:00
Matthias Clasen
aaf5c43e78
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Update gtk4-builder-tool docs
See merge request GNOME/gtk!5144
2022-10-19 17:13:23 +00:00
Matthias Clasen
5fb6f0e410
Merge branch 'wip/clipboard-serials' into 'main'
...
gdk/wayland: Use serial of the latest implicit grab available
Closes #5250
See merge request GNOME/gtk!5143
2022-10-19 13:57:19 +00:00
Matthias Clasen
cd031de680
docs: Update gtk4-builder-tool docs
...
Mention the new --deprecations option of the
validate command.
2022-10-19 08:50:34 -04:00
Carlos Garnacho
eeda25ab04
gdk/wayland: Use serial of the latest implicit grab available
...
When getting the serial for primary/clipboard selections we used a
function that largely relied on a GdkEvent being passed. We have
another available function that looks up the most recent serial
given the ongoing touch/tablet input as well.
This is the second best, compared to actually knowing the
input/device from the event that was received by the UI an triggered
the clipboard operation, and is already in use in other places
(e.g. window dragging). It is valid for these situations too.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5250
2022-10-19 13:54:07 +02:00
Matthias Clasen
acaf04a24e
Merge branch 'builder-deprecations' into 'main'
...
buildertool: Fix template handling
Closes #5256
See merge request GNOME/gtk!5141
2022-10-19 11:20:37 +00:00
Matthias Clasen
bcabe77799
buildertool: Warn about deprecations
...
Add a new option --deprecations to the validate
command that will warn about use of deprecated types.
The list of current deprecations is unfortunately
hardcoded in the source, so this list will have to
be kept up-to-date.
Fixes : #5256
2022-10-19 02:51:29 -04:00
Matthias Clasen
64cf31f348
buildertool: Fix template handling
...
We were not properly parsing the error message
here, leading to badness.
2022-10-19 02:51:29 -04:00
Matthias Clasen
e037155a94
Merge branch 'text-overwrite-undo' into 'main'
...
testsuite: Fix tiff pixbuf tests
Closes #4411
See merge request GNOME/gtk!5138
2022-10-19 05:59:13 +00:00
Matthias Clasen
55cbb8a8d6
Merge branch 'clarify-gapplication-docs' into 'main'
...
docs: Clarify a point in GtkApplication docs
See merge request GNOME/gtk!5139
2022-10-19 03:54:36 +00:00
Matthias Clasen
db599f2ae6
Merge branch 'fix-pixbuf-tiff-tests' into 'main'
...
testsuite: Fix tiff pixbuf tests
Closes #4615
See merge request GNOME/gtk!5137
2022-10-19 03:53:08 +00:00
Matthias Clasen
741567868e
Merge branch 'modelbutton-tooltip' into 'main'
...
widgetfactory: Add text to iconic model buttons
Closes #5220
See merge request GNOME/gtk!5136
2022-10-19 03:51:21 +00:00
Matthias Clasen
1e5e0480fd
text: Make overwrite undo-friendly
...
In overwrite mode, every typed character gets
handled as a delete+insert, but we should not
record these as two individually undoable
steps.
This matches how we handle overwrite mode in
GtkTextView.
Fixes : #4411
2022-10-18 23:49:16 -04:00
Matthias Clasen
917aa7928d
docs: Clarify a point in GtkApplication docs
...
Clarify that loading of automatic resources uses
the resource base path that was set at construction
time.
Fixes : #4300
2022-10-18 23:47:48 -04:00
Matthias Clasen
cd4dbd67a2
testsuite: Skip known-broken tests
...
The tiff pixbuf tests fail because of known
issues with the pixbuf tiff loader. Skip them.
Fixes : #4615
2022-10-18 23:22:47 -04:00
Matthias Clasen
5a6eab05e9
testsuite: Fix tiff pixbuf tests
...
This test wasn't actually testing what it claims,
since that functionality is broken in gdk-pixbuf.
Test it anyway.
2022-10-18 23:21:28 -04:00
Matthias Clasen
55ccaf9df9
modelbutton: Set up tooltips
...
Use the text of iconic model buttons as tooltip.
Fixes : #5220
2022-10-18 22:35:28 -04:00
Matthias Clasen
af0e056eec
widgetfactory: Add text to iconic model buttons
...
We want to use this for tooltips in the future.
2022-10-18 22:35:02 -04:00
Matthias Clasen
77d1f0d982
Merge branch 'matthiasc/for-main' into 'main'
...
fontchooser: Drop a few errant translations
Closes #5146
See merge request GNOME/gtk!5135
2022-10-19 01:53:56 +00:00
Matthias Clasen
d4d7d5eafd
fontchooser: Drop a few errant translations
...
No point in translating these properties, they
are not strings.
Fixes : #5146
2022-10-18 16:40:37 -04:00
Matthias Clasen
f658027c51
Merge branch 'fix-editable-label-spurious-focus-out' into 'main'
...
window: Keep a reference to move_focus_widget
Closes #4864
See merge request GNOME/gtk!5134
2022-10-18 19:45:19 +00:00
Matthias Clasen
7be993b728
editablelabel: Defer changes on focus-out
...
We can get spurious focus-out/-in pairs when
the editable label is in a popover that gets
a Wayland keyboard enter event as a result of
clicking the editable label.
A timeout isn't a great solution, but nothing
better is available right now.
Fixes : #4864
2022-10-18 14:23:22 -04:00
Matthias Clasen
e1d78821f6
window: Keep a reference to move_focus_widget
...
If we don't take a reference, it can happen that
the pointer is no longer valid by the time we
dereference it in after_paint.
2022-10-18 14:23:11 -04:00
Matthias Clasen
94ac1af293
Merge branch 'fix-focus-changes' into 'main'
...
window: Fix focus updates
Closes #4903
See merge request GNOME/gtk!5127
2022-10-18 11:02:08 +00:00
Matthias Clasen
b4db48935d
Merge branch 'fix-windows-build-testmountoperation' into 'main'
...
tests/testmountoperation.c: Fix build on Windows
See merge request GNOME/gtk!5126
2022-10-18 10:53:21 +00:00
Matthias Clasen
f5063c1435
window: Don't focus invisible widgets
...
Only clear a queued move_focus if the widget
we are focusing is actually visible.
This was happening in some cases when popovers
are dismissed by clicking outside, and it was
causing us to miss proper focus updates that
were already queued.
2022-10-18 06:42:17 -04:00
Benjamin Otte
8092a6858e
Merge branch 'bilelmoussaoui/gi-deprecated' into 'main'
...
g-i: Fix deprecated version of GtkTreeView
See merge request GNOME/gtk!5131
2022-10-18 09:53:53 +00:00
Bilal Elmoussaoui
0fbaeaabd0
g-i: Fix deprecated version of GtkTreeView
2022-10-18 11:27:39 +02:00
Luca Bacci
995f00d23f
Merge branch 'forward-port-mr-991-to-gtk4-2' into 'main'
...
Use native Windows API for converting keystrokes to characters
Closes #2944
See merge request GNOME/gtk!4986
2022-10-17 19:20:08 +00:00
Matthias Clasen
100605ef0c
window: Fix focus updates
...
This partially undoes changes from 3dbf5038fa
.
That commit did two things:
1) Move the focus update to after-paint time
2) Change from grabbing focus to the visible parent
to calling move_focus (TAB)
The second part did have the unintended consequence
of moving focus laterally.
Fixes : #4903
2022-10-17 15:10:41 -04:00
Benjamin Otte
1246cd5e73
Merge branch 'wip/otte/for-main' into 'main'
...
singleselection: Be more careful about notifies
See merge request GNOME/gtk!5129
2022-10-17 18:34:40 +00:00
Benjamin Otte
f30e59fed9
dropdown: Handle ::selected and ::selected-item separately
...
GtkSingleSelection will only emit either of those signals if they
change. But it is possible that only one of those properties changes,
and in those cases we want to only notify for that property changing in
the dropdown, too.
2022-10-17 20:11:27 +02:00
Benjamin Otte
5e8b294faf
singleselection: Be more careful about notifies
...
We don't want to notify::selected or notify::selected-item if they
didn't change.
This will bring performance benefits on frequently changing lists.
In particular, if lists get filtered or reordered, but the selected item
stays in the list, not doing a notify::selected-item will avoid updates
in connected handlers like GtkDropdown (and its handlers), thereby
avoiding lots of unnecessary updates.
2022-10-17 20:11:27 +02:00
Philip Zander
c84c469b78
Use native Windows API for converting keystrokes to characters
2022-10-17 19:36:48 +02:00
Chun-wei Fan
1a5a65acd0
tests/testmountoperation.c: Fix build on Windows
...
Sadly, we can't just use an interger for a GPid on Windows, so just cast
it. Sounds silly for non-Windows, but that's life...
2022-10-17 12:36:17 +08:00
Matthias Clasen
6f5d18a9f5
macos: Fix clipboard data size handling
...
We were using the allocated memory size, not
the amount of data that has been written.
Fixes : #5261
2022-10-16 23:45:28 -04:00
Matthias Clasen
004f22a51c
Merge branch 'matthiasc/for-main' into 'main'
...
Rename gtk_widget_get_style_color
See merge request GNOME/gtk!5125
2022-10-17 03:26:21 +00:00
Matthias Clasen
d775caff7f
Rename gtk_widget_get_style_color
...
This name wasn't everybody's favorite, so go with
the generic name gtk_widget_get_color() instead.
2022-10-16 21:41:43 -04:00
Piotr Drąg
baf3a3eecd
Update POTFILES.in
2022-10-16 14:34:34 +02:00
Benjamin Otte
ca2e14788d
Merge branch 'antoniof-main-patch-03677' into 'main'
...
columnview: Don't be focusable
See merge request GNOME/gtk!5022
2022-10-14 22:39:49 +00:00
Matthias Clasen
c57d8fc6be
Merge branch 'gtk_widget_get_style_color-docs-fix' into 'main'
...
Fix documentation for `gtk_widget_get_style_color()`
See merge request GNOME/gtk!5119
2022-10-14 10:49:15 +00:00
Sebastian Dröge
294e5bb79f
Fix documentation for gtk_widget_get_style_color()
...
It was pointing at `gtk_widget_get_css_style()` instead.
2022-10-14 12:36:11 +03:00
Matthias Clasen
bde19f9b2a
Fix blank popovers
...
This was a typo in 2b00b64e8c
, making
us render the background on the wrong snapshot.
2022-10-13 16:38:41 -04:00
Matthias Clasen
1d2071b892
NEWS: Updates
2022-10-12 23:27:36 -04:00
Matthias Clasen
b46eb5c20a
Merge branch 'matthiasc/for-main' into 'main'
...
filechooser: Update the settings docs
See merge request GNOME/gtk!5118
2022-10-13 03:09:47 +00:00
Matthias Clasen
3d605615ce
filechooser: Update the settings docs
...
Document the window-position setting as unused.
2022-10-12 22:47:51 -04:00
Matthias Clasen
c502d7fca6
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Add a cross-reference
See merge request GNOME/gtk!5117
2022-10-13 02:43:48 +00:00
Matthias Clasen
9f8abc5d74
docs: Add a cross-reference
...
Note that GtkTreeView is deprecated and link to the
list view introduction from 'Tree and List Widget Overview'.
2022-10-12 22:26:40 -04:00
Matthias Clasen
c8cbb3fbba
Merge branch 'matthiasc/for-main' into 'main'
...
filechooserentry: Add a set_text api
See merge request GNOME/gtk!5116
2022-10-13 02:25:19 +00:00
Matthias Clasen
fa3c8ed5f9
filechooser: Stop using entrycompletion api
...
The file chooser entry now has an api for this.
2022-10-12 21:59:35 -04:00
Matthias Clasen
8ac5f1983e
filechooserentry: Add a set_text api
...
This function prevents the completion popup
from coming up when setting the entry text.
2022-10-12 21:59:19 -04:00
Matthias Clasen
eccc02d084
Merge branch 'matthiasc/for-main' into 'main'
...
Start a migration guide for GTK 5
See merge request GNOME/gtk!5114
2022-10-12 21:02:56 +00:00
Matthias Clasen
0c94db7147
Start a migration guide for GTK 5
...
No need to panic, GTK 5 is still years away!
But it is good to write this material down while
it is fresh in mind.
2022-10-12 16:39:28 -04:00
Matthias Clasen
ed87473bf9
Merge branch 'deprecate-render' into 'main'
...
wip: Deprecate gtk_render apis
See merge request GNOME/gtk!5100
2022-10-12 20:38:19 +00:00
Matthias Clasen
812a879ec2
inspector: Use gtk_widget_get_style_color
...
The graph renderer in the statistics page needs
the CSS foreground color to draw the graph. Use
the just introduced api for it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
5627542d7c
Add gtk_widget_get_style_color
...
There is a widespread need to access the CSS foreground
color for custom drawing in snapshot functions, so make
it available after gtk_style_context_get_color was
deprecated with a new widget api.
2022-10-12 15:35:00 -04:00
Matthias Clasen
f42fe500c9
cssnode: Avoid style context api
...
Duplicate the print flags in gtkcssnodeprivate.h,
so we don't rely on gtkstylecontext.h here.
2022-10-12 15:35:00 -04:00
Matthias Clasen
ac3177ce95
tests: Ignore deprecations
...
Some of our tests use deprecated style context api.
Most of them should be ported to use global style
providers eventually. For now, ignore deprecations.
2022-10-12 15:35:00 -04:00
Matthias Clasen
ccaaff406f
testsuite: Ignore deprecations
...
Some of our tests use deprecated style context
apis. Ignore the deprecations for now.
2022-10-12 15:35:00 -04:00
Matthias Clasen
b1ec43ae33
demos: Ignore deprecations
...
Most of these demos should be ported to use
global style providers eventually. For now,
just ignore the deprecations.
2022-10-12 15:35:00 -04:00
Matthias Clasen
ee8c2a235f
stylecontext: Deprecate most apis
...
The notable exception here are the global provider apis,
which are needed in some form and don't have a replacement
yet. Move them to gtkstyleprovider.[hc], so we can wholly
deprecated gtkstylecontext.[hc].
2022-10-12 15:35:00 -04:00
Matthias Clasen
299fbfd722
tests: Ignore deprecations for render api
2022-10-12 15:35:00 -04:00
Matthias Clasen
5f54ecdf2c
aboutdialog: Stop using gtk_style_context_save
2022-10-12 15:35:00 -04:00
Matthias Clasen
e09138ce45
textview: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
a71893f88b
text: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
01324ffaff
label: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
c354465ed8
scrolledwindow: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
50ab2386ec
printunixdialog: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
bf9f362597
popover: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
d03ee57cc5
flowbox: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
6f24bd9ff4
demos: Ignore deprecations for render apis
...
Eventually, this demo should probably be removed.
2022-10-12 15:35:00 -04:00
Matthias Clasen
616e0a0d32
textview: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
ee76105119
text: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
381f863a18
label: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
57c63d9ce7
Use the new caret rendering api
...
Implement the deprecated gtk_snapshot_render api
for carets with the new one.
2022-10-12 15:35:00 -04:00
Matthias Clasen
0522dade9f
Add gtk_css_style_snapshot_caret
2022-10-12 15:35:00 -04:00
Matthias Clasen
484cff2182
glarea: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, stop using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
dd3c371c08
inscription: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
3145bce6a1
render: Use the new layout render api
2022-10-12 15:35:00 -04:00
Matthias Clasen
73f991a7fd
Add gtk_css_style_snapshot_layout
...
This function renders a PangoLayout at a given
position, using text shadows and color from css.
2022-10-12 15:35:00 -04:00
Matthias Clasen
0205caa371
scrolledwindow: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
c2c46a7036
printunixdialog: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
2b00b64e8c
popover: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
4e2522a080
iconview: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
473065dfeb
flowbox: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
60dafebd91
Deprecate gtk_snapshot_render apis
...
Move the implementations from gtksnapshot.c to
gtk/deprecated/gtkrender.c and deprecated these
functions. We want to get rid of them.
These functions are still used in some of our widgetry,
so use G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS around
them.
2022-10-12 15:35:00 -04:00
Matthias Clasen
35370752d5
Deprecate gtk_render apis
...
These take a GtkStyleContext as argument, and we
want to get rid of GtkStyleContext eventually.
The proper drawing api these days is gtk_snapshot.
2022-10-12 15:35:00 -04:00
Matthias Clasen
808d00906c
printunixdialog: Stop using gtk_render_ apis
...
These are getting deprecated.
2022-10-12 15:35:00 -04:00
Matthias Clasen
da5d5bd71f
popover: Stop using gtk_render_background
...
The gtk_render_ apis are getting deprecated.
2022-10-12 15:34:59 -04:00
Matthias Clasen
0c99e69423
flowbox: Stop using gtk_render_background
...
The gtk_render_ apis are getting deprecated.
2022-10-12 15:34:59 -04:00
Matthias Clasen
410813eb6b
Merge branch 'deprecate-all-the-cells' into 'main'
...
Deprecate treeviews and cell renderers
See merge request GNOME/gtk!5098
2022-10-12 19:28:04 +00:00
Luca Bacci
6cc44eb0fe
Merge branch 'for-master' into 'main'
...
For master
See merge request GNOME/gtk!5095
2022-10-12 13:56:51 +00:00
Matthias Clasen
11ee930b9d
Merge branch 'inspector_a11y' into 'main'
...
GtkInspector: make the inspector at least a little bit more accessible
See merge request GNOME/gtk!5109
2022-10-12 11:06:35 +00:00
Matthias Clasen
69e4c9b01e
tests: Ignore deprecations
...
Eventually, most of these tests should be dropped.
2022-10-11 17:18:21 -04:00
Matthias Clasen
c32fed9238
testsuite: Ignore deprecations
...
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
2022-10-11 17:18:21 -04:00
Matthias Clasen
4941ef659f
tools: Ignore deprecations
...
For now, just ignore deprecations. Eventually,
we will have to go through and drop code that is
dealing with widgets that are going away.
2022-10-11 17:18:21 -04:00
Matthias Clasen
6efb18330f
demos and examples: Ignore deprecations
...
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
2022-10-11 17:18:21 -04:00
Matthias Clasen
5e256590db
Deprecate treeviews and cell renderers
...
This includes
GtkCellArea
GtkCellAreaBox
GtkCellAreaContext
GtkCellEditable
GtkCellRenderer
GtkCellRendererAccel
GtkCellRendererCombo
GtkCellRendererPixbuf
GtkCellRendererProgress
GtkCellRendererSpin
GtkCellRendererSpinner
GtkCellRendererText
GtkCellRendererToggle
GtkCellView
GtkComboBox
GtkComboBoxText
GtkIconView
GtkListStore
GtkTreeModel
GtkTreeModelFilter
GtkTreeModelSort
GtkTreeStore
GtkTreeView
GtkTreeViewColumn
GtkTreeSelection
2022-10-11 17:18:21 -04:00
Matthias Clasen
79303d7cd3
inspector: Drop an unused file
2022-10-11 17:18:21 -04:00
Matthias Clasen
681a818af2
flowbox: Stop using gtk_render_background
...
The gtk_render_ apis are getting deprecated.
2022-10-11 17:18:21 -04:00
Matthias Clasen
933b1eb4df
Merge branch 'filename-sorter' into 'main'
...
stringsorter: Add a collate-mode property
See merge request GNOME/gtk!5111
2022-10-11 20:59:08 +00:00
Matthias Clasen
c419b57754
stringsorter: Fix up a doc typo
...
gi-docgen links can be tricky to get right.
2022-10-11 15:32:05 -04:00
Matthias Clasen
05323869d7
stringsorter: Add more detail to the docs
...
Mention when a collation value of NONE might
be useful.
2022-10-11 14:09:21 -04:00
Matthias Clasen
2520148ebb
Apply 2 suggestion(s) to 2 file(s)
2022-10-11 17:53:26 +00:00
Matthias Clasen
a06a4ad59a
ci: Allow macos builds to fail
...
The runner seems busted, so allow builds to fail
for now.
2022-10-11 13:43:36 -04:00
Matthias Clasen
141aac1a60
stringsorter: Add a collation property
...
The new property lets us choose between
Unicode collation, filename collation, and
plain strcmp.
This will be used in the filechooser.
2022-10-11 13:42:00 -04:00
Lukáš Tyrychtr
8a1578ede8
GtkInspector: make the inspector at least a little bit more accessible
...
Namely, it adds accessible name to the property value editors and to a few labels in the a11y panel.
2022-10-11 13:34:53 +02:00
Matthias Clasen
8ba7840528
Merge branch 'wip/corey/file-clipboard' into 'main'
...
gdkcontentserializer: Use newlines for file separators
Closes #5240
See merge request GNOME/gtk!5107
2022-10-10 21:13:28 +00:00
Corey Berla
3168a3e086
gdkcontentserializer: Use newlines for file separators
...
Use newlines rather than spaces to separate file paths (or uri's)
when serializing text/plain files. There isn't a matching
deserializer, so we can do this in isolation. Newlines
seem to make more sense when pasting into a text editor etc.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5240
2022-10-10 13:27:07 -07:00
Matthias Clasen
3cf9149129
Merge branch 'matthiasc/for-main' into 'main'
...
Matthiasc/for main
See merge request GNOME/gtk!5106
2022-10-10 03:29:41 +00:00
Matthias Clasen
7c8a098852
emojicompletion: Drop an unused include
2022-10-09 23:08:55 -04:00
Matthias Clasen
ecbdb3104a
emojichooser: Drop an unused include
2022-10-09 23:03:43 -04:00
Matthias Clasen
c8a332b3af
searchentry: Drop an unused include
2022-10-09 23:03:36 -04:00
Matthias Clasen
b5f7d57124
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Modernize accordion demo
See merge request GNOME/gtk!5105
2022-10-09 14:26:58 +00:00
Benjamin Otte
0db5c7f421
testgtk: Use global css provider
2022-10-09 10:13:44 -04:00
Benjamin Otte
ed83272f35
tests: Use per-screen CSS providers
2022-10-09 10:13:10 -04:00
Benjamin Otte
20b49e7c34
gtk-demo: Modernize accordion demo
2022-10-09 10:09:59 -04:00
Matthias Clasen
6a6ef0f437
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Fix some criticals
See merge request GNOME/gtk!5104
2022-10-09 13:53:54 +00:00
Benjamin Otte
32ef462f1d
fontbutton: Use attributes for custom font
...
Don't try to use CSS.
2022-10-09 09:10:39 -04:00
Matthias Clasen
b895360f49
inspector: Fix some criticals
...
This is fallout from the recent porting to GtkColumnView.
2022-10-09 09:10:39 -04:00
Matthias Clasen
c2c094e8a1
Merge branch 'matthiasc/for-main' into 'main'
...
widget: Changing the scale does no longer require a redraw
See merge request GNOME/gtk!5103
2022-10-09 13:10:24 +00:00
Benjamin Otte
d4d0192405
widget: Changing the scale does no longer require a redraw
...
It doesn't require one generally anyway, because only the root can
change scale and when that happens the root will queue a redraw.
But even if the root doesn't queue a redraw, render nodes (the only
thing discarded by queue_draw()) are scale-independant.
2022-10-09 08:50:32 -04:00
Matthias Clasen
15ea36e7fd
Merge branch 'matthiasc/for-main' into 'main'
...
glarea: Drop an unused include
See merge request GNOME/gtk!5102
2022-10-09 12:49:42 +00:00
Matthias Clasen
692279586a
Merge branch 'main' into 'main'
...
GtkPaned: Fix symbol names in code example
See merge request GNOME/gtk!5101
2022-10-09 12:22:08 +00:00
Matthias Clasen
9eec475dcc
glarea: Drop an unused include
...
We are not using gtk_render apis here.
2022-10-09 08:10:12 -04:00
Tilo Villwock
661130d429
GtkPaned: Fix symbol names in code example
2022-10-08 13:49:10 +02:00
Matthias Clasen
68b73ebf91
Merge branch 'matthiasc/for-main' into 'main'
...
paperdialog: Drop an unused function
See merge request GNOME/gtk!5099
2022-10-08 03:01:24 +00:00
Matthias Clasen
08c0020ac3
placesview: Stop using GtkEntryCompletion
...
We want to get rid of tree models and cell renderers,
and that includes GtkEntryCompletion. The functionality
here is really not that essential.
2022-10-07 22:22:36 -04:00
Matthias Clasen
ac87c72797
paperdialog: Drop an unused function
...
This gets rid of a GtkListStore use.
2022-10-07 22:03:15 -04:00
Matthias Clasen
5be8710774
Merge branch 'inspector-trees' into 'main'
...
inspector: Stop using GtkTreeView for css nodes
See merge request GNOME/gtk!5097
2022-10-07 21:55:10 +00:00
Matthias Clasen
5fa027ab8a
cssnode: Drop the node-added/-removed signals
...
These are no longer used, and the children-observer
listmodel is a better approach for monitoring the
children.
2022-10-07 17:21:04 -04:00
Matthias Clasen
dbe04adb1a
inspector: Drop the css node tree model
...
This is not used anymore.
2022-10-07 17:17:41 -04:00
Matthias Clasen
6815f3af6d
inspector: Stop using GtkTreeView for css nodes
...
Replace the css node tree with a GtkColumnView, using
the new gtk_css_node_observe_children api.
2022-10-07 15:54:02 -04:00
Matthias Clasen
f8357512d0
Add gtk_css_node_observe_children
2022-10-07 15:54:01 -04:00
Luca Bacci
8bfc19e7f7
GtkFileChooserNativeWin32: Add some option flags
...
Avoid changing the current directory.
Also avoid creating a sample file to test if the target file
can be created.
References:
* "Why does the common file dialog change the current directory?"
-> https://devblogs.microsoft.com/oldnewthing/20101112-00/?p=12293
* "Why does the common file save dialog create a temporary file and then delete it?"
-> https://devblogs.microsoft.com/oldnewthing/20140429-00/?p=1123
2022-10-07 19:06:09 +02:00
Luca Bacci
d6f7449636
GdkWin32: Return TRUE when processing WM_XBUTTONDOWN/UP messages
...
As documented on MSDN:
> Unlike the WM_LBUTTONUP, WM_MBUTTONUP, and WM_RBUTTONUP messages, an
> application should return TRUE from this message if it processes it.
2022-10-07 19:05:29 +02:00
Luca Bacci
f4286e8f1a
GdkWin32: Use gdk_pixbuf_read_pixels () where applicable
...
This is an optimization in case of reading unmodifiable GdkPixbufs.
Also replace uses of GLib integral types with <stdlib.h> integral
types.
2022-10-07 19:05:29 +02:00
Matthias Clasen
14e6fd1f12
Merge branch 'wroy-main-patch-03767' into 'main'
...
Add subproject/libjpeg-turbo.wrap
Closes #5237
See merge request GNOME/gtk!5094
2022-10-07 16:00:36 +00:00
William Roy
2e57621fc5
Add subproject/libjpeg-turbo.wrap
2022-10-07 14:48:49 +00:00
Matthias Clasen
4a8ae3a20c
Merge branch 'inspector-trees' into 'main'
...
inspector: Stop using GtkTreeView for statistics
See merge request GNOME/gtk!5093
2022-10-07 05:57:02 +00:00
Matthias Clasen
61393fdcce
inspector: Stop using GtkTreeView for statistics
...
GtkTreeView is heading towards deprecation; use
a GtkColumnView instead.
2022-10-07 01:40:51 -04:00
Matthias Clasen
6ed6cebcf4
inspector: Fixup
...
We were overlooking a transfer full here.
2022-10-07 00:12:47 -04:00
Jürgen Benvenuti
2f764f6c18
Update German translation
...
(cherry picked from commit 52dd917c6a
)
2022-10-06 20:48:36 +00:00
Matthias Clasen
a646e50019
Merge branch 'main' into 'main'
...
Treat XKB_MOD_NAME_LOGO as super key
Closes #4913
See merge request GNOME/gtk!5088
2022-10-06 10:41:56 +00:00
Po Lu
e967dfed2d
Treat XKB_MOD_NAME_LOGO as super key
2022-10-06 11:19:31 +04:00
Matthias Clasen
2dc33a9de1
Merge branch 'matthiasc/for-main' into 'main'
...
gdk: Cosmetics
See merge request GNOME/gtk!5087
2022-10-06 03:48:36 +00:00
Matthias Clasen
7c5e1c6195
gtk: Rename some private headers
...
Improve the consistency of our private header
naming, by add 'private' to a bunch of them.
2022-10-05 23:01:28 -04:00
Matthias Clasen
8607312fef
gdk: Cosmetics
...
Add a define for each renderer.
2022-10-05 23:01:28 -04:00
Matthias Clasen
abac891bd2
Merge branch 'inspector-trees' into 'main'
...
inspector: Stop using a treeview for css properties
See merge request GNOME/gtk!5086
2022-10-06 02:52:12 +00:00
Matthias Clasen
2e25a13fc0
Merge branch 'matthiasc/for-main' into 'main'
...
mountoperation: Add a mnemonic to a button
See merge request GNOME/gtk!5085
2022-10-06 02:15:16 +00:00
Matthias Clasen
7a2c4e8a38
inspector: Stop using a treeview for css properties
...
Treeviews are heading towards deprecation.
2022-10-05 22:12:57 -04:00
Matthias Clasen
90e0ace325
inspector: Cosmetics
2022-10-05 21:20:04 -04:00
Matthias Clasen
9a2a5d9c8b
mountoperation: Add a mnemonic to a button
...
This is a good practice, even if this is a rarely
used dialog.
2022-10-05 20:14:09 -04:00
António Fernandes
9cb8d21cb5
columnview: Forward all focus to child
...
For the same reasoning as the preceding commit.
Also don't make GtkColumnView focusable. Its internal list view
is already focusable, which is enough to take care of the empty
view case.
2022-10-03 20:48:10 +01:00
António Fernandes
4fc4298920
listbase: Grab focus on items instead of container
...
The container view itself being focusable makes keyboard navigation
slower by adding a useless focus step.
It also means if an item gets removed, the focus jumps back to the view,
instead of jumping to the next item, as seen in nautilus bug report:
https://gitlab.gnome.org/GNOME/nautilus/-/issues/2489
Instead of making the GtkListBase container itself focusable, override
the .grab_focus() vfunc. This way, calling gtk_widget_grab_focus() on
the view container keeps working sucessfully, but focuses the focus
item directly instead.
This is particularly useful to have because applicaiton authors do
not have direct acess to this class's children, so they can't call
gtk_widget_grab_focus() on them directly.
2022-10-03 20:26:24 +01:00
Corey Berla
230188fb30
entrycompletion: Use GSignalGroup on the entry's buffer
...
We connect to the inserted-text signal for the entry's buffer.
During the lifetime of the entry, the buffer changes. This is
literally the example used for GSignalGroup in the docs.
2022-10-03 10:40:27 -07:00
Ian Douglas Scott
dac7a4f6e7
gdk/wayland/surface: Remove SURFACE_IS_TOPLEVEL
...
Always defined to `TRUE`.
2022-09-26 14:26:18 -07:00
Ian Douglas Scott
3679207e09
gdk/wayland/surface: Move more members to GdkWaylandToplevel
2022-09-26 14:26:18 -07:00
Ian Douglas Scott
46d1d54f5a
gdk/wayland/surface: Make gtk_surface
related functions take toplevel
...
These are only used with `GdkWaylandToplevel`, so it should be a function
taking that, and ultimately move to that struct.
2022-09-26 14:26:18 -07:00
Ian Douglas Scott
3131c50b82
gdk/wayland/surface: Make some toplevel functions take GdkWaylandToplevel
2022-09-26 14:26:18 -07:00
Ian Douglas Scott
c2063a623a
gdk/wayland/surface: Move some variables to GdkWaylandPopup
2022-09-26 14:26:16 -07:00
Ian Douglas Scott
3e267c3285
gdk/wayland/surface: Make popup functions take GdkWaylandPopup
...
This will allow them to use member variables from that struct.
Ultimately, `GdkWaylandPopup` should be moved to its own file.
2022-09-26 14:22:37 -07:00
Ian Douglas Scott
887da8f931
gdk/wayland/surface: Don't wrap gdk_wayland_surface_*
for toplevel vfuncs
...
As far as I'm aware, these only exist with `gdk_wayland_surface_` names
for historical reasons, before these types were split.
This way, those functions will be able to access members of the
`GdkWaylandToplevel` struct. And it just saves a few lines of code.
2022-09-26 14:22:37 -07:00
Ondřej Míchal
818ca63d35
gdkdisplay: Document get_monitor_at_surface can return NULL
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5075
2022-08-01 12:54:13 +02:00
Maxim Zakharov
2290c2bb23
gdk/broadway: Implements modal hint for Broadway surface
...
Ensures modal window is raised above parent; does return focus to
parent window when transient child window is closed.
That solves problems with overlapped modal window and focus loss in
complex multi window UI.
2022-05-17 15:18:30 +10:00
Jason Francis
3fc7c97979
gtk: Set widget template children to NULL before destroy unref
2022-05-14 10:13:39 -04:00
Jens Georg
b9551a8952
Remove obsolete "or %NULL" documentation
2022-04-20 15:15:51 +02:00
Jens Georg
e600fcbcc5
widget: Mark format as nullable in activate_action
...
The doc and the code allow it to be NULL
2022-04-19 10:17:39 +02:00