Benjamin Otte
7573a9d2a7
gl: Rewrite update area tracking code
...
Make it more generic. That way we could dynamically change the number of
buffers we track.
We don't do that yet though.
2023-05-24 21:44:29 +02:00
Carlos Garnacho
d24d193301
Merge branch 'lores-scroll-mid-detent' into 'main'
...
Send low-res scroll event in the middle of the wheel detent
See merge request GNOME/gtk!5128
2023-05-24 14:23:47 +00:00
José Expósito
e61938793a
gtkeventcontrollerscroll: Send lores scroll in the middle of the detent
...
Some mice send a value slightly lower than 120 for some detents. The
current approach waits until a value of 120 is reached before sending a
low-resolution scroll event.
For example, the MX Master 3 sends a value of 112 in some detents:
detent detent
| | |
^ ^ ^
112 REL_WHEEL 224
As illustrated, only one event was sent but two were expected. However,
sending the low-resolution scroll event in the middle plus the existing
heuristics to reset the accumulator solve this issue:
detent detent
| | |
^ ^ ^ ^
REL_WHEEL 112 REL_WHEEL 224
Send low-resolution scroll events in the middle of the detent to solve
this problem.
Related to https://gitlab.gnome.org/GNOME/mutter/-/issues/2469
2023-05-24 13:42:49 +00:00
Matthias Clasen
2f584c16f0
Merge branch 'reomveunused' into 'main'
...
widget: Don't include gtkpopover.h
See merge request GNOME/gtk!6012
2023-05-23 23:49:25 +00:00
Maximiliano Sandoval R
2565a28e59
widget: Don't include gtkpopover.h
...
It is not used.
2023-05-23 23:43:15 +02:00
Emmanuele Bassi
793a2b2a70
Merge branch 'zbrown/marshallers' into 'main'
...
marshallers: fix up some mistypes in drags
See merge request GNOME/gtk!6010
2023-05-23 13:50:26 +00:00
Matthias Clasen
146223cd74
Merge branch 'fix-menu-padding' into 'main'
...
menus: Avoid unnecessary right padding
Closes #5839
See merge request GNOME/gtk!6008
2023-05-22 20:50:56 +00:00
Daniel Boles
d8e7f0a8a9
MenuButton: Fix small grammar-o/match related syms
2023-05-22 21:39:36 +01:00
Matthias Clasen
a9adf7163f
menus: Avoid unnecessary right padding
...
We are using placeholders in the 'check' column
that are put in a size group, so that they all
take the same space once a check or radio is shown.
Unfortunately, for the inline-buttons option, we
were using a GtkBuiltinIcon as placeholder, and those
respect the -gtk-icon-size CSS property and take
a minimum size of 16px. Use a GtkGizmo instead to
get the expected result of no extra padding unless
there's a check or radio.
Fixes : #5839
2023-05-22 16:16:45 -04:00
Matthias Clasen
10825cdc72
Merge branch 'matthiasc/for-main' into 'main'
...
widget-factory: Align some widgets better
See merge request GNOME/gtk!6007
2023-05-22 13:17:58 +00:00
Matthias Clasen
3b105a637c
widget-factory: Align some widgets better
2023-05-22 08:36:13 -04:00
Matthias Clasen
fdbc203690
Merge branch 'wip/kabus/date-leak' into 'main'
...
gtk/recentmanager: Fix date leak
Closes #5842
See merge request GNOME/gtk!6005
2023-05-22 12:25:24 +00:00
Khalid Abu Shawarib
26c583227e
gtk/recentmanager: Fix date leak
2023-05-22 12:25:24 +00:00
Арсений Засыпкин
1ea0bebf15
Update Russian translation
2023-05-22 12:18:13 +00:00
Matthias Clasen
ca0e27ec9d
Merge branch 'matthiasc/for-main' into 'main'
...
Improve section model docs
See merge request GNOME/gtk!6003
2023-05-21 23:57:48 +00:00
Matthias Clasen
5edf9fc449
Merge branch 'fm-showitems' into 'main'
...
filelauncher: Use ShowItems to show in File Manager
Closes #5842
See merge request GNOME/gtk!5997
2023-05-21 23:22:57 +00:00
Matthias Clasen
534f11e317
Improve section model docs
...
Mention sections in the list widget overview,
and document the list models that support sections.
2023-05-21 19:20:08 -04:00
Zander Brown
d8cffa9350
marshallers: fix up some mistypes in drags
...
Fix: ff330668cf
2023-05-21 19:14:45 +01:00
Matthias Clasen
60dfa777f0
Merge branch 'gdk-introspection-fix' into 'main'
...
introspection: Include deprecated gdk api in gir
See merge request GNOME/gtk!5999
2023-05-21 14:25:59 +00:00
Matthias Clasen
d6fc0d6c94
gdk: Fix up introspection build
...
Referring to files across directories is not
easy, we need to use files() in just the right
way to make this work.
2023-05-21 09:46:49 -04:00
Matthias Clasen
4e71bd92aa
introspection: Include deprecated gdk api in gir
...
This was overlooked in when the headers were moved
in ed265f6a7e
.
2023-05-21 09:39:13 -04:00
Matthias Clasen
8aec42244e
Merge branch 'ebassi/build-introspection' into 'main'
...
ci: Add introspection to the feature flags
See merge request GNOME/gtk!6000
2023-05-21 12:20:12 +00:00
Emmanuele Bassi
6ff36977f4
ci: Add introspection to the feature flags
...
It should be enabled by default, if we ever want to catch issues.
2023-05-21 12:22:50 +01:00
Matthias Clasen
ed84ccdaca
Merge branch 'docs-css-fix' into 'main'
...
Fix typo in CSS docs
See merge request GNOME/gtk!5998
2023-05-21 11:02:45 +00:00
Arjan Molenaar
d9ec27ab29
Fix typo in CSS docs
2023-05-21 12:11:19 +02:00
Matthias Clasen
ca744b925e
Merge branch 'list-tile-gc' into 'main'
...
Add gtk_list_item_manager_gc_tiles
See merge request GNOME/gtk!5995
2023-05-21 00:51:00 +00:00
Matthias Clasen
53c63673e4
gridview: Use gtk_list_item_manager_gc_tiles
...
This simplifies the code a bit.
2023-05-20 19:50:11 -04:00
Matthias Clasen
431458ed78
listview: Use gtk_list_item_manager_gc_tiles
...
This simplifies the code a bit.
2023-05-20 19:50:11 -04:00
Matthias Clasen
56cfef3544
testsuite: Use gtk_list_item_manager_gc_tiles
...
Use this new api instead of open-coding it.
Also, assert that it merges consecutive
multi-item tiles.
2023-05-20 19:50:11 -04:00
Calvin Walton
be897646b1
filelauncher: Use ShowItems to show in File Manager
...
The non-portal fallback method for launching a file manager to show the
file in its parent directory was incorrectly using the `ShowFolders`
method (open a folder) instead of `ShowItems` (open the parent directory
and show the file).
The `show_item` function (previously `show_folder`) had an unused
`callback` parameter; it has been removed and the type of the parameter
containing the GTask has been renamed and now uses the correct type
instead of gpointer to reduce the amount of casting required.
Fixes GNOME/gtk#5842
2023-05-20 19:40:09 -04:00
Matthias Clasen
e23358e09f
Merge branch 'matthiasc/for-main' into 'main'
...
Cosmetics
See merge request GNOME/gtk!5996
2023-05-20 23:22:56 +00:00
Matthias Clasen
833e1bdcf6
Cosmetics
...
Fix some typos.
2023-05-20 19:03:41 -04:00
Matthias Clasen
0091425729
listitemmanager: Stop exporting tile_gc
...
This function is now just used internally,
so make it static.
2023-05-20 18:59:16 -04:00
Matthias Clasen
b1c2a1c015
listitemmanager: Use gc_tiles
...
Replace an open-coded version of this function
with a call to gtk_list_item_manager_gc_tiles.
2023-05-20 18:59:16 -04:00
Matthias Clasen
31d03f9f26
Add gtk_list_item_manager_gc_tiles
...
This will allow us to simplify size allocation
code in listview and gridview.
2023-05-20 16:17:11 -04:00
Benjamin Otte
3beaf0962c
Merge branch 'drop-filler-tiles' into 'main'
...
Drop the FILLER tile type
See merge request GNOME/gtk!5993
2023-05-20 17:18:53 +00:00
Matthias Clasen
48e49b4c50
gridview: Update factories in set_factory
...
Call update_factories() so the children get their
factories properly updated.
This matches what GtkListView does.
2023-05-20 12:53:39 -04:00
Matthias Clasen
1d4f383ba5
Drop the FILLER tile type
...
It is not used anymore.
2023-05-20 12:28:19 -04:00
Matthias Clasen
8cb3e01eef
gridview: Stop using a filler tile
...
We can just use the footer to fill that space.
2023-05-20 12:28:19 -04:00
Matthias Clasen
42a0dcc7e4
gridview: Add an assertion
...
The want to use the footer tile at the end
to fill leftover space at the bottome right.
So lets assert that we actually dealing with
a footer tile, just in case something changes
in the future that might have us end up with
some other kind of tile.
2023-05-20 12:26:51 -04:00
Matthias Clasen
e9731fc99b
Add some tile helpers
2023-05-20 12:26:39 -04:00
Matthias Clasen
2890557236
Revert "gridview: GC tiles first"
...
This reverts commit e121a5ca6f
.
The tile that was causing the critical in #5836
(what that commit was about) was a FILLER, and we
are getting rid of FILLER tiles here. Which will
avoid the issue in a more elegant way.
2023-05-20 12:25:33 -04:00
Matthias Clasen
43a22bb350
Cosmetics
...
Use the proper g_assert variant.
2023-05-20 07:39:21 -04:00
Matthias Clasen
cd9c277820
Merge branch 'ci-clang-build' into 'main'
...
ci: Add a clang build
See merge request GNOME/gtk!5987
2023-05-18 19:10:52 +00:00
Matthias Clasen
42a12f1788
ci: Add a clang build
...
This is meant to catch build errors with clang.
2023-05-18 14:39:46 -04:00
Matthias Clasen
5f39820729
cups: Silence a compiler warning
...
Bitfields should be unsigned int.
2023-05-18 14:39:46 -04:00
Matthias Clasen
c2a8620660
gsk: Mark some variables as unused
...
Hopefully that shuts up clang.
2023-05-18 13:29:28 -04:00
Asier Sarasua Garmendia
647d5e17c1
Update Basque translation
...
(cherry picked from commit a6931a66c5
)
2023-05-18 16:31:00 +00:00
Matthias Clasen
d87b9ee4c5
Merge branch 'matthiasc/for-main' into 'main'
...
roaring: Mark a variable as unused
See merge request GNOME/gtk!5990
2023-05-18 13:35:17 +00:00
Matthias Clasen
70ba00ae53
testsuite: Make this test compile
...
clang did not like this creative use of
strings at all. Rightfully so.
2023-05-18 08:40:50 -04:00