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