Maximiliano Sandoval R
ef07d1556b
picture: Fix Since and Deprecated annotations
...
gi-docgen will parse four or more whitespaces of indentation as code blocks,
two whitespaces were used.
This was missing in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4873 .
2022-07-25 12:59:47 +02:00
Corey Berla
dd5d1030b5
mountoperation: Select "Anonymous" check button by default
...
It is already explicitly assumed that anonymous authentication will
be used when available, but it is not clear to the user since neither
of the check buttons are selected. Select the Anonymous check button
by default.
2022-07-24 20:53:41 -07:00
Jordi Mas
f480ff2e4d
Update Catalan translation
2022-07-21 04:25:20 +02:00
Carlos Garnacho
2b131f09a8
Merge branch 'fix-controller-key-event-propagation-file-chooser-widget' into 'main'
...
GtkFileChooserWidget: Propagate captured key events when the location entry is focused
Closes #4880
See merge request GNOME/gtk!4674
2022-07-19 22:15:04 +00:00
Matthias Clasen
b165028e86
Merge branch 'drag-action' into 'main'
...
tree/iconview: Use a unique drag action in drag_enter/motion callbacks
Closes #3187
See merge request GNOME/gtk!4882
2022-07-18 14:35:11 +00:00
Matthias Clasen
6e379181d9
Merge branch 'treeview-drag-ancestor' into 'main'
...
treeview: Check for column header area in row click/drag gestures
Closes #4453
See merge request GNOME/gtk!4885
2022-07-18 14:33:26 +00:00
Matthias Clasen
edf8c9e501
Merge branch 'matthiasc/for-main' into 'main'
...
css: Fix handling of transform values
See merge request GNOME/gtk!4890
2022-07-18 14:24:49 +00:00
Matthias Clasen
f95f992d32
Merge branch 'wip/carlosg/use-press-serial' into 'main'
...
gdk/wayland: Use last implicit grab serial for DnD start requests
Closes #5048
See merge request GNOME/gtk!4889
2022-07-18 14:18:22 +00:00
Carlos Garnacho
95cf34ab4c
gdk/wayland: Stop storing the last serial in GdkWaylandDisplay
...
This is not used anymore, so we can drop the serial being stored
here.
2022-07-18 15:21:40 +02:00
Matthias Clasen
0cebf6d9c5
Merge branch 'drop-target-unique' into 'main'
...
droptarget: Provide a unique action for gdk_drop_finish
Closes #5051
See merge request GNOME/gtk!4888
2022-07-18 12:38:52 +00:00
Matthias Clasen
de6b8da6c4
Merge branch 'tree-popover-scroll' into 'main'
...
treepopover: Add support for scrolling
Closes #3674 and #4877
See merge request GNOME/gtk!4887
2022-07-18 12:28:34 +00:00
Matthias Clasen
03f24bb5cf
css: Improve test coverage
...
Among other things, this includes a test for the fix
in the previous commit.
2022-07-18 07:08:01 -05:00
Matthias Clasen
6ef3968227
css: Fix handling of transform values
...
When computing a transform value, there is nothing
to do, but we still need to copy the matrix from
src to dest, since it depends on the other transforms
in the array whether we are using the src or the
dest in the end.
This fixes cases like
-gtk-icon-transform: perspective(100px) matrix(1,2,...);
which would otherwise end up with a zero matrix.
2022-07-18 07:08:01 -05:00
Matthias Clasen
eb1a2268bb
gtk: Improve test coverage
2022-07-18 07:08:01 -05:00
Matthias Clasen
64193ae706
sortlistmodel: Add more tests
2022-07-18 07:08:01 -05:00
Matthias Clasen
4682eb214a
filterlistmodel: Add more tests
2022-07-18 07:08:01 -05:00
Carlos Garnacho
5a34b7ecc6
gdk/wayland: Use last press serial for clipboard/primary selections
...
This serial observes key and button presses, we can use that instead
of relying on the last serial which might come from other
events/devices.
2022-07-18 13:01:27 +02:00
Carlos Garnacho
eb0b98d5f2
gdk/wayland: Use last implicit grab serial for DnD start requests
...
This serial should be that from a button press/touch down/etc, use
the last implicit grab here, which will presumably be from the same
device that triggered the event.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5048
2022-07-18 13:00:32 +02:00
Mat
89db59a40d
treepopover: Add support for scrolling
...
Add support for scrolling large tree popovers in a similar fashion to GtkPopoverMenu.
Fixes #3674
Fixes #4877
2022-07-18 00:44:28 +03:00
Mat
9209fd65a5
droptarget: Provide a unique action for gdk_drop_finish
...
gdk_drop_finish() requires a unique drop action. Reuse the existing
make_action_unique() function to get one.
Fixes #5051
2022-07-17 22:59:59 +03:00
Quentin PAGÈS
7dd874cec8
Update Occitan translation
2022-07-17 15:38:50 +00:00
Emmanuele Bassi
4a5d15535e
Merge branch 'picture-suggest-content-fit' into 'main'
...
picture: Remove keep-aspect-ratio mention in the doc
See merge request GNOME/gtk!4886
2022-07-17 15:00:19 +00:00
Mat
c9a48736d6
treeview: Check for column header area in row click/drag gestures
...
Bail out if a row click/drag gesture is performed in the column header area,
since separate gestures handle column headers.
Fixes #4453
2022-07-17 17:36:38 +03:00
Marco Melorio
8376f5c9fa
picture: Remove keep-aspect-ratio mention in the doc
...
We were still suggesting to use it in the main doc page. Suggest using
content-fit instead.
2022-07-17 16:21:53 +02:00
Matthias Clasen
1d94c75a78
Merge branch 'matthiasc/for-main' into 'main'
...
filterlistmodel: Add a test
See merge request GNOME/gtk!4884
2022-07-17 10:50:22 +00:00
Matthias Clasen
d840e082e6
slicelistmodel: Improve a test
...
Make sure that replacements in the underlying model
don't affect the slice list model if they are outside
the slice window.
2022-07-17 06:32:15 -04:00
Matthias Clasen
2ed954d307
sortlistmodel: Add a test
...
Add a test to prove that additions and removals
in the underlying model show up as expected.
2022-07-17 06:22:55 -04:00
Matthias Clasen
7b815768e0
filterlistmodel: Add a test
...
Test that items added in the underlying model show
up in the filter model (if they pass the filter).
Test removals as well.
See #5050
2022-07-17 06:22:31 -04:00
Mat
d89297b152
tree/iconview: Use a unique drag action in drag_enter/motion callbacks
...
Functions already exist for providing a unique drag action for gdk_drop_finish().
Reuse these functions in the drag_enter/motion callbacks, since they require
a unique action as the return value.
Fixes #3187
2022-07-17 06:09:53 +03:00
Matthias Clasen
ff038428d8
Merge branch 'matthiasc/for-main' into 'main'
...
widget-factory: Make the icon work uninstalled
See merge request GNOME/gtk!4881
2022-07-17 01:33:09 +00:00
Matthias Clasen
7321eb881a
widget-factory: Make the icon work uninstalled
...
Include the app logo as a resource, so we can show
it even when uninstalled.
2022-07-16 21:16:40 -04:00
Matthias Clasen
648e423cc5
Merge branch 'fix-wrong-label-wrap-in-popover' into 'main'
...
popover: Correctly substract arrow height when measuring popover widget
See merge request GNOME/gtk!4880
2022-07-16 23:19:10 +00:00
Benjamin Otte
09da4db81f
Merge branch 'dnd' into 'main'
...
DnD Fix Preferred Action for X11
Closes #4259
See merge request GNOME/gtk!4785
2022-07-16 21:37:15 +00:00
Corey Berla
16fd2608fd
gdkdrop-x11: Use the preferred action if possible
...
The XDND suggested action is a relic from when the source would control
the action for a drop. With the new GtkDropTarget the target decides
the action (not the source). That means the all of the returned
results from the ::enter and ::motion handlers will be unexpectely
ignored. Prefer to use the preferred action over the x11 suggested action.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4259
2022-07-16 14:02:47 -07:00
Corey Berla
c9c48d78bf
gdkdrop-x11: Fix preferred action
...
gdk_x11_drop_update_actions() sets actions to
drop_x11->suggested_action when !drop_x11->xdnd_have_actions
and then sets it again to drop_x11->suggested_action if it is.
If xdnd_have_actions is true use xdnd_actions.
2022-07-16 13:42:58 -07:00
Yubao Liu
50a8cbc0da
popover: Correctly substract arrow height when measuring popover widget
...
For default popover arrow position and default height-for-width layout mode,
natural_width is calculated first with for_size=-1 and orientation=HORIZONTAL,
at the end of gtk_popover_measure() natural_width won't be added with tail_height.
Then to measure with for_size=natural_width and orientation=VERTICAL, obviously
for_size shouldn't be substract with tail_height.
The wrong logic will force content in popover gets less width and then text labels
in popover may get wrapped unnecessarily.
2022-07-17 00:29:42 +08:00
Benjamin Otte
188cb49b44
Merge branch 'content-fit-reftests' into 'main'
...
reftests: Add content-fit picture tests
See merge request GNOME/gtk!4879
2022-07-16 16:06:57 +00:00
Marco Melorio
6da65b25b6
reftests: Add content-fit picture tests
2022-07-16 17:53:13 +02:00
Matthias Clasen
405cfc8f1f
Merge branch 'test-coverage' into 'main'
...
gtk-demo: Fix icon theme breakage
See merge request GNOME/gtk!4878
2022-07-16 14:08:37 +00:00
Matthias Clasen
9daf83a1da
gtk-demo: Make the icon work uninstalled
...
Include the app logo as a resource, so we can show
it even when uninstalled.
2022-07-16 09:43:46 -04:00
Matthias Clasen
f7811f5dc3
gtk-demo: Add a winning sound to the puzzle
...
We should celebrate every win.
2022-07-16 09:43:46 -04:00
Matthias Clasen
25ec58be3c
gtk-demo: Fix icon theme breakage
...
The starred emblem silently went away :(
2022-07-16 09:43:46 -04:00
Matthias Clasen
61a843e824
gdk: Improve test coverage
2022-07-16 09:43:46 -04:00
Matthias Clasen
14cb208ec2
png loader: gray can have alpha
2022-07-16 09:43:46 -04:00
Matthias Clasen
c642649311
gdk: Drop an unused function
2022-07-16 09:43:46 -04:00
Matthias Clasen
882c805b53
gdk: Improve test coverage
2022-07-16 09:43:46 -04:00
Benjamin Otte
9cc7dbe9c9
Merge branch 'content-fit-followup' into 'main'
...
GtkContentFit followups
See merge request GNOME/gtk!4877
2022-07-16 00:24:31 +00:00
Marco Melorio
3eac4ef5c9
picture: Move variable definition at the top
2022-07-16 01:40:08 +02:00
Marco Melorio
f1faa71d6d
picture: Set overflow to be hidden
...
The new content-fit property was wrongly suggesting to manually set
widgets' overflow property, but that property is not really intended to
be set by external code. This commit removes those suggestions and
directly set picture's overflow to be hidden.
2022-07-16 01:40:01 +02:00
Marco Melorio
a08bc46936
picture: Fix replacement for deprecated methods
2022-07-16 01:18:07 +02:00