Matthias Clasen
019650ff26
columnview: Clarify docs
...
Mention that gtk_column_view_sort_by_column
can be called multiple times to ste up
complex sorting.
2022-10-20 06:56:25 -04:00
Matthias Clasen
eb045fe936
columnview: Reimplement column view sorting
...
Replace the private GtkColumnViewSorter implementation
with a GtkMultiSorter containing GtkInvertibleSorters
wrapping the individual column sorters.
2022-10-20 06:56:25 -04:00
Matthias Clasen
173f82772e
Add GtkInvertibleSorter
...
This is a sorter that wraps another sorter
and allows to invert its sort order.
2022-10-20 06:56:25 -04:00
Matthias Clasen
3d521d3b56
Add gtk_multi_sorter_splice
...
There is no reason to have a weaker list api
on this sorter than on a list store. We will
need this function in the following commits.
2022-10-19 23:34:11 -04: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
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
Matthias Clasen
d4dd0dcd79
Merge branch 'accessible_range_interface' into 'main'
...
Introduce GtkAccessibleRange
See merge request GNOME/gtk!5066
2022-10-05 11:33:56 +00:00
Matthias Clasen
d454586927
Review fixes
2022-10-05 11:13:21 +00:00
Matthias Clasen
1917b6a0a3
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Use more compact list styles
See merge request GNOME/gtk!5083
2022-10-05 10:14:04 +00:00
Matthias Clasen
a924b820c2
inspector: Use more compact list styles
...
Use the same style classes throughout for
data lists that benefit from smaller fonts.
2022-10-04 23:25:12 -04:00
Matthias Clasen
9e82d2b843
Merge branch 'inspector-menus' into 'main'
...
Drop unused includes
See merge request GNOME/gtk!5082
2022-10-05 03:11:41 +00:00
Matthias Clasen
ab7a04d89f
inspector: Stop using a treeview for menus
...
Replace this with a GtkColumnView.
2022-10-04 22:49:05 -04:00
Matthias Clasen
a377f95aac
Drop unused includes
...
This gets rid of treeview includes in a number of places.
2022-10-04 22:49:05 -04:00
Matthias Clasen
4356e0c3ce
Merge branch 'mountoperation-trees' into 'main'
...
mountoperation: Survive on Wayland
See merge request GNOME/gtk!5081
2022-10-05 02:48:39 +00:00
Matthias Clasen
5d5de9f759
mountoperation: Don't use a treeview
...
Port the process list from GtkTreeView
to GtkListView, and fix a number of broken
things along the way.
2022-10-04 21:26:07 -04:00
Matthias Clasen
e1f69ea278
testmountoperation: Test process dialog
...
Without this, it is hard to trigger the
dialog. Event with this, we have to force
GtkMountOperation to use its own dialog.
2022-10-04 21:26:07 -04:00
Matthias Clasen
6a76fe41c6
mountoperation: Survive on Wayland
...
The code was assuming it is dealing with an
X11 display, and trigger assertions. Fix that
to make it work at least as well as it does
on Windows.
2022-10-04 21:26:07 -04:00
Matthias Clasen
aae82d7992
Merge branch 'inspector-trees' into 'main'
...
inspector: Don't use treeviews in the recorder
See merge request GNOME/gtk!5080
2022-10-04 20:54:10 +00:00
Matthias Clasen
ca576e877f
inspector: Don't use treeviews in the recorder
...
Replace the event and render node details views with
columnviews.
2022-10-04 16:26:28 -04:00
Alexander Shopov
bc23038848
Update Bulgarian translation
...
(cherry picked from commit 2ca2a15637
)
2022-10-04 18:07:24 +00:00
Matthias Clasen
43e8730acd
Merge branch 'inspector-fixes' into 'main'
...
inspector: Fix some lifecycle issues
See merge request GNOME/gtk!5079
2022-10-04 15:34:53 +00:00
Piotr Drąg
c43def5fce
Update POTFILES.in
2022-10-04 15:20:57 +02:00
Matthias Clasen
e68b365fa1
inspector: Fix some lifecycle issues
...
The template use in the inspector was not properly
disposing all widgets. gtk_widget_dispose_template
will only unparent widgets that have been named
as template children, so we need to make the toplevel
elements in the ui file named children, or manually
dispose them. This commit does the former.
2022-10-04 07:10:35 -04:00
Matthias Clasen
3867f9b8ea
Merge branch 'deprecate-entry-completion' into 'main'
...
Deprecate GtkEntryCompletion
See merge request GNOME/gtk!5078
2022-10-04 03:35:26 +00:00
Matthias Clasen
0b20c57867
Merge branch 'deprecate-app-choosers' into 'main'
...
Deprecate app choosers
See merge request GNOME/gtk!5077
2022-10-04 03:28:09 +00:00
Matthias Clasen
7e9ca5b41d
Deprecate GtkEntryCompletion
...
We want to drop cell renderers and tree models
in GTK 5. The functionality of GtkEntryCompletion
may be replaced by a new widget in GTK 5.
2022-10-03 23:23:56 -04:00
Matthias Clasen
a527a4d82e
Deprecate the app chooser widgets
...
These are a family of pretty specialized widgets, and
are very rarely used. Instead of porting them away
from GtkTreeView and GtkComboBox, deprecate them.
2022-10-03 23:02:09 -04:00
Matthias Clasen
adfc29968a
Revert "gtk: Use gnome.mkenums_simple"
...
This reverts commit 11829fe7d0
.
The mkenums_simple function can't properly handle headers
in subdirectories currently, so go back to the template
version.
2022-10-03 22:20:07 -04:00
Benjamin Otte
e17e94d2da
Merge branch 'oh-no-my-docs' into 'main'
...
Remove outdated docs
See merge request GNOME/gtk!5076
2022-10-03 22:21:48 +00:00
Benjamin Otte
9af3bb8dc1
Remove outdated docs
...
There are a lot of automatic conversions in the blame log.
2022-10-03 21:12:42 +00:00
Matthias Clasen
998dd11cbd
Merge branch 'wip/jimmac/combobox-lists' into 'main'
...
stylesheet: sync combox with other popovers
Closes #5221
See merge request GNOME/gtk!5074
2022-10-03 21:02:25 +00: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
Jakub Steiner
a96c75ff02
stylesheet: sync combox with other popovers
...
- use the same lists style as everything else (menus, sidebars ...)
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5221
2022-10-03 15:43:07 +02:00
Carlos Garnacho
1b4ed00509
Merge branch 'evince_crash_popover_motion2' into 'main'
...
fix crash in gtk_synthesize_crossing_events()
Closes #5190
See merge request GNOME/gtk!5052
2022-10-03 12:19:35 +00:00
Fabio Tomat
a54284b629
Update Friulian translation
...
(cherry picked from commit 6387863256
)
2022-10-03 08:35:56 +00:00
Goran Vidović
ee9e9bb3e1
Update Croatian translation
2022-10-02 14:05:29 +00:00
Aleksandr Melman
cae9689281
Update Russian translation
2022-10-01 15:40:59 +00:00
Emin Tufan Çetin
1f6e2cf291
Update Turkish translation
2022-10-01 14:57:10 +00:00
Zurab Kargareteli
69a76054e8
Update Georgian translation
2022-10-01 10:17:09 +00:00
Emmanuele Bassi
31fea11255
a11y: Drop GtkAccessibleRange.get_minimum_increment()
...
MinimumIncrement is an AT-SPI-ism that has no counterpart in the ARIA
specification, so it should not live inside public API. Additionally,
it's not really a useful method because it collapses two values on the
adjustment API.
The only method in the GtkAccessibleRange interface should be the
set_current_value(), which allows ATs to control the current position in
a ranged widget.
The AT-SPI implementation can now use all the accessible properties,
including the VALUE_TEXT one, mapped to the Text property on the
AtSpi.Value interface.
2022-09-30 18:36:02 +01:00
Emmanuele Bassi
5dd7e24806
Clean up GtkAccessibleRange
...
Coding style and documentation fixes.
2022-09-30 16:58:00 +01:00
Goran Vidović
848dc78112
Update Croatian translation
2022-09-30 12:05:09 +00:00
Matthias Clasen
e9d7cd3a48
Merge branch 'wip/handle-zero-bounds' into 'main'
...
Fix shrinking windows when suspending
See merge request GNOME/gtk!5069
2022-09-30 11:26:29 +00:00
Jonas Ådahl
b3a3a6ceb1
toplevel-size: Report zero bounds as infinite
...
Empty/zero bounds are sent by the Wayland compositor if there are no
valid bounds to report, e.g. if there are no connected monitors. Report
this to GTK, which uses this to clamp calculated sizes, as INT_MAX, so
that clamping isn't done until there are actual valid bounds to clamp
to.
This fixes clients sometimes shrinking to their minimum size during
hotplugs or after having suspended the session.
2022-09-30 09:31:40 +02:00
Jonas Ådahl
148c133674
surface/wayland: Handle no current monitor when calculating bounds
...
We shouldn't assume there is always a monitor to derive bounds from.
If there is no monitor, pass empty bounds, as this matches what
xdg_toplevel.configure_bounds do in this case.
2022-09-30 09:31:40 +02:00
Asier Sarasua Garmendia
d2c9cbba4f
Update Basque translation
2022-09-29 16:55:20 +00:00
Balázs Úr
8b33900e1d
Update Hungarian translation
2022-09-29 16:43:31 +00:00
Nart Tlisha
0c3572312a
Update Abkhazian translation
2022-09-29 15:19:37 +00:00
Lukáš Tyrychtr
7e683ed89b
Use proper version specifier
2022-09-29 09:55:10 +02:00
Lukáš Tyrychtr
7fb892460a
Document that this will be available only in GTK 4.10
2022-09-29 09:36:09 +02:00
Lukáš Tyrychtr
d517804acd
Actually use the AccessibleRange interface
2022-09-29 09:36:09 +02:00
Lukáš Tyrychtr
ce761122b2
Implement also for GtkPaned
2022-09-29 09:36:09 +02:00
Lukáš Tyrychtr
76a5354ad7
Implement GtkAccessibleRange for GtkScaleButton
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
006b473c0c
Improve documentation
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
5e1af6d7d5
Implement GtkAccessibleRange for GtkProgressBar
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
ec0cd4a994
Implement GtkAccessibleRange for GtkLevelBar
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
86864d7bc0
Account for GtkAccessibleRange implementations which do not have a
...
minimum step and it makes no sense for them to set the current value
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
485ffcde38
Implement GtkAccessibleRange for GtkSpinButton
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
0304eaec94
Implement GtkAccessibleRange for GtkRange
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
a7814a0963
Introduce GtkAccessibleRange
...
This introduces GtkAccessibleRange, an interface which allows the accessibility backend to work with a control which can adjust a value.
2022-09-29 09:36:08 +02:00
Zurab Kargareteli
160a83023a
Update Georgian translation
2022-09-28 18:33:41 +00:00
Matthias Clasen
911abe2d2c
Fix expected test output
...
The major.minor version number shows up in the expected
output of this test, so it needs to be adjusted at the
beginning of every cycle.
2022-09-28 13:32:40 -04:00
Matthias Clasen
0c02573c47
Add 4.10 version macros
2022-09-28 13:30:01 -04:00
Matthias Clasen
4257e1ce4f
Post-release version bump
...
This is an experiment to see if I can keep up with
doing post-release version bumps, so git snapshots
will always have a different version from released
tarballs.
This commit also marks the beginning of the 4.10
development cycle, as 4.8 has been branched.
2022-09-28 13:19:49 -04:00
Matthias Clasen
39bc13c8a7
Merge branch 'matthiasc/for-main' into 'main'
...
Add more names to sources
See merge request GNOME/gtk!5064
2022-09-28 17:02:09 +00:00
Matthias Clasen
dd7cd6ffdd
Add more names to sources
...
This helps with identifying things in sysprof logs,
and while debugging.
2022-09-28 12:37:21 -04:00
Matthias Clasen
349cda3d36
Merge branch 'post-install' into 'main'
...
meson: Remove post-install script
See merge request GNOME/gtk!5063
2022-09-28 16:21:49 +00:00
Xavier Claessens
48cc56081d
meson: Remove post-install script
...
GTK depends on Meson >= 0.60 so it was never used.
2022-09-28 11:25:43 -04:00
Matthias Clasen
aa9a7a931d
Merge branch 'wip/carlosg/shuffle-reset-take2' into 'main'
...
gtkimcontextwayland: Shuffle full resets after IM changes
Closes #5200
See merge request GNOME/gtk!5050
2022-09-28 01:39:49 +00:00
Matthias Clasen
3aee45de28
Merge branch 'wroy-main-patch-32519' into 'main'
...
Fix #5211 : Preprocessor conformance with MSVC
Closes #5211
See merge request GNOME/gtk!5058
2022-09-28 01:39:15 +00:00
Matthias Clasen
5f469d8903
Merge branch 'broadway-device-query-state-fix' into 'main'
...
GTK4 gdk/broadway: correct gdk_broadway_device_query_state() to return pointer coordinates relative to the upper left corner of surface
See merge request GNOME/gtk!5053
2022-09-28 01:38:45 +00:00
Matthias Clasen
2ce2e90205
Merge branch 'fix-scale-crashes' into 'main'
...
scale: Fix a typo
See merge request GNOME/gtk!5061
2022-09-28 01:22:49 +00:00
Matthias Clasen
8b76cc841d
scale: Fix a typo
...
We want to update the label size request when
the adjustment changes, not when anything else
changes.
This may be the reason for crash reports like
https://retrace.fedoraproject.org/faf/problems/bthash/?bth=1e5cc1318358d5db298e5d6c2ec47361922cce74
2022-09-27 21:03:56 -04:00
Aurimas Černius
75b1d75751
Updated Lithuanian translation
2022-09-27 22:40:49 +03:00
Hugo Carvalho
2d19a1f1ec
Update Portuguese translation
2022-09-27 19:39:53 +00:00
Rafael Fontenelle
e57d005076
Update Brazilian Portuguese translation
2022-09-27 13:10:05 +00:00
Matthias Clasen
31d483dfbc
Apply 1 suggestion(s) to 1 file(s)
2022-09-27 11:31:55 +00:00
Martin
fc2cb9d063
Update Slovenian translation
2022-09-27 08:03:24 +00:00
Fran Dieguez
91cc03a81a
Update Galician translation
2022-09-27 06:22:18 +00:00
Benjamin Otte
67049c3261
Merge branch 'wip/otte/for-main' into 'main'
...
drop target: Warn about broken signal handler returns
See merge request GNOME/gtk!5060
2022-09-27 02:07:21 +00:00
Benjamin Otte
c98cea3dbb
drop target: Warn about broken signal handler returns
...
Signal handlers ust return their preferred action and that one must be
unique.
Shout at them if they don't do that, before gdk_drop_status() does
tesame thing.
Related: gnome-build-meta#554
Related: gnome-builder#1799
2022-09-27 03:50:29 +02:00
Emmanuele Bassi
0a67ac6d47
Merge branch 'left-right-typo' into 'main'
...
Fix GtkSettings docs typo
See merge request GNOME/gtk!5059
2022-09-26 22:23:29 +00:00
Mitchell Hentges
f8c0d86d6c
Fix GtkSettings docs typo
...
"left of right" should be "left or right".
There's a small (subjective?) English nit in there as well: I believe
that buttons are placed (for example) "on the right" rather than "at the
right".
2022-09-27 00:00:30 +02:00
William Roy
872e04f94e
Fix preprocessor conformance with MSVC
2022-09-26 19:52:57 +00:00
Goran Vidović
d5c60438d1
Update Croatian translation
2022-09-26 19:30:45 +00:00
Anders Jonsson
60788913da
Update Swedish translation
2022-09-26 18:28:19 +00:00
Matthias Clasen
f01118f2fc
Merge branch 'kjellahl/gtkprintbackendlpr' into 'main'
...
gtkprintbackendlpr.c: Add #include "gtkprivate.h"
See merge request GNOME/gtk!5057
2022-09-26 18:22:21 +00:00
Kjell Ahlstedt
9db812ea7f
gtkprintbackendlpr.c: Add #include "gtkprivate.h"
...
Necessary after GTK_NOTE was replaced by GTK_DEBUG.
GTK_DEBUG is defined in gtk/gtkprivate.h. GTK_NOTE was defined
in gtk/gtkdebug.h.
2022-09-26 18:38:06 +02:00
Piotr Drąg
d538e78d8a
Update Polish translation
2022-09-26 18:01:02 +02:00
Yuri Chornoivan
ba0499a803
Update Ukrainian translation
2022-09-26 14:54:56 +00:00
Matthias Clasen
1318fdc52c
Merge branch 'fix_4577' into 'main'
...
Make the presentation of the stack sidebar listbox nicer for A11Y
Closes #4577
See merge request GNOME/gtk!4661
2022-09-26 14:41:29 +00:00
Luca Bacci
d3c50fad6c
Merge branch 'gdk-win32-fix-subclassing-gdk-win32-clipdrop' into 'main'
...
GdkWin32: Fix subclassing for GdkWin32Clipdrop
Closes #5207
See merge request GNOME/gtk!5055
2022-09-26 12:59:17 +00:00
Luca Bacci
e2219858ae
GdkWin32: Fix subclassing for GdkWin32Clipdrop
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5207
2022-09-26 14:34:24 +02:00
Matthias Clasen
85043a2d1b
Merge branch 'bump-meson-req' into 'main'
...
Bump the meson requirement
See merge request GNOME/gtk!5051
2022-09-25 17:24:53 +00:00
Piotr Drąg
cac813bbc4
Update POTFILES.in
2022-09-25 14:10:28 +02:00
Nelson Benítez León
94a4c2cb40
fix crash in gtk_synthesize_crossing_events()
...
Update ancestor between GTK_CROSSING_OUT and
GTK_CROSSING_IN as it may have changed.
Fixes #5190
2022-09-24 21:25:05 -04:00
Matthias Clasen
11829fe7d0
gtk: Use gnome.mkenums_simple
...
This lets us avoid template files, and works just as well.
2022-09-24 21:23:00 -04:00
Matthias Clasen
455eefa854
gdk: Use gnome.mkenums_simple
...
This lets us avoid template files, and works just as well.
2022-09-24 21:22:53 -04:00
Matthias Clasen
0f4f90d722
Bump the meson requirement
...
GLib requires meson 0.60 nowadays, and it does not
make much sense for us to support an older meson.
2022-09-24 20:07:03 -04:00
Matthias Clasen
cefb0a3eb8
Merge branch 'header-cleanup' into 'main'
...
Header cleanup
See merge request GNOME/gtk!5049
2022-09-24 14:23:39 +00:00
Matthias Clasen
bc661a8ed5
gdk: Rename gdkpixbuf-drawable.c
...
There is nothing particularly specific to drawables
in there (and we don't have that concept anymore),
so just name the source file to match the header.
Easier for everybody.
2022-09-24 10:03:37 -04:00
Matthias Clasen
9ff549799d
gdk: Tweaks to keyname handling
...
Rename the private header to follow our naming
conventions, and drop the extra gdkkeys.c file.
2022-09-24 10:03:37 -04:00
Matthias Clasen
e499a09759
Drop gtkintl.h
...
Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.
2022-09-24 10:03:37 -04:00
Carlos Garnacho
fb280e47d6
gtkimcontextwayland: Shuffle full resets after IM changes
...
Doing reset() on the text widgets after commit and delete_surrounding
is still too eager for some IMs (e.g. those that expect being able
to commit text while keeping a preedit buffer shown).
However, reset() is more of a "synchronize state" action on Wayland,
and it is still desirable to do that after changes that do come from
the IM (e.g. requesting the new surrounding text and cursor/anchor
positions). Notably here, the text_input protocol may still come up
with a preedit string after this state synchronization happens.
Shuffle the code so that the text widgets do not reset() the IM
context after text is deleted or committed, but the Wayland IM does
apply its practical effects after these actions happen. This keeps
the Wayland IM fully up-to-date wrt text widget state, while not
altering the ::commit and ::delete-surrounding-text behavior for
other IM context implementations.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5200
Fixes: 5b78fe2721
(gtktextview: Also reset IM context after IM...)
Fixes: 7c0a395ff9
(gtktext: Also reset IM context after IM...)
Fixes: 52ac71b972
(gtktextview: Shuffle the places doing IM reset)
Fixes: 9e29739e66
(gtktext: Shuffle the places doing IM reset)
2022-09-24 11:52:16 +02:00
Matthias Clasen
4aabc45685
Drop gdkintl.h
...
This header was merely including gi18n-lib.h.
Just do that directly.
2022-09-23 23:33:42 -04:00
Matthias Clasen
a8af7caae1
Rename gdk-private.h to gdkprivate.h
...
The extra - does not add any value.
2022-09-23 23:23:27 -04:00
Matthias Clasen
7d2c296357
Rename gdkconstructor.h to gdkconstructorprivate.h
...
This is the naming convention for private headers.
2022-09-23 23:14:08 -04:00
Matthias Clasen
c24a69549d
Rename gdkdebug.h to gdkdebugprivate.h
...
This is the naming convention for private headers.
2022-09-23 23:12:01 -04:00
Matthias Clasen
f141da6b55
gtk: Dissolve gtk-autocleanup.h
...
Move the autocleanup declarations into their
respective headers.
2022-09-23 23:07:43 -04:00
Matthias Clasen
3688ece655
gsk: Dissolve gsk-autocleanup.h
...
Move the autocleanup declarations into their
respective headers.
2022-09-23 19:50:09 -04:00
Matthias Clasen
61a51dea7b
gdk: Dissolve gdk-autocleanup.h
...
Move the autocleanup declarations into their
respective headers.
While we are at it, correct the autocleanup
declaration for GdkEvent to use gdk_event_unref,
not g_object_unref. Oops
2022-09-23 19:49:58 -04:00
Matthias Clasen
bccb4f87be
Merge branch 'debug-envvars-cleanup' into 'main'
...
Clean up debug env vars
See merge request GNOME/gtk!5044
2022-09-23 23:06:47 +00:00
Matthias Clasen
52b6dbf2b4
gtk: Remove old debug macros
...
These are no longer used.
2022-09-23 18:51:46 -04:00
Matthias Clasen
f33f55bcbb
gtk: Use the new debug macros
2022-09-23 18:12:39 -04:00
Matthias Clasen
f4d3f45c16
gtk: Introduce new debug macros
...
Introduce GTK_DISPLAY_DEBUG() and GTK_DEBUG(), which
mirror the new macros in gdk. They use the same helper
function gdk_debug_message().
2022-09-23 18:12:39 -04:00
Matthias Clasen
1e65d6640f
tests: Rewrite the icontheme tests
...
The lookup order tests were relying on out
debug spew using g_log, so they can redirect
the output by setting a log writer function.
Rewrite this to use g_test_subprocess() and
parse stderr.
2022-09-23 18:12:39 -04:00
Matthias Clasen
8a4fd30797
gsk: drop old debug macros
...
These are no longer used.
2022-09-23 18:11:48 -04:00
Matthias Clasen
9818ec4ad9
gsk: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
4d08eb264d
gsk: Introduce new debug macros
...
Introduce GSK_RENDERER_DEBUG() and GSK_DEBUG(), which
mirror the new macros in gdk. They use the same helper
function gdk_debug_message().
2022-09-23 18:11:48 -04:00
Matthias Clasen
bc159207bd
gdk: Drop old debug macros
...
Drop the old GDK_NOTE() and GDK_DISPLAY_NOTE()
macros from gdkdebug.h. Reintroduce them in the
win32 backend, where they are still used.
2022-09-23 18:11:48 -04:00
Matthias Clasen
1f166ae071
macos: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
ce4c2154f4
x11: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
71fedee85d
wayland: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
90c2b548e5
broadway: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
1d48f96fc5
gdk: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
10255eee72
Introduce new debug macros
...
Introduce GDK_DISPLAY_DEBUG() and GDK_DEBUG() and
the helper function gdk_debug_message(). This is
meant to clean up the mess of our current debug
statements which wildly mix g_message, g_print
and g_printerr.
2022-09-23 18:11:48 -04:00
Matthias Clasen
5b2568e9e4
Merge branch 'wip/jimmac/backdrop-titles' into 'main'
...
theme: tone down unfocused title labels
Closes #4468
See merge request GNOME/gtk!5047
2022-09-23 17:27:08 +00:00
Jakub Steiner
be6413b0e7
theme: tone down unfocused title labels
...
- mimic libadwaita in toning down unfocused titles. Cargo culting the
filter instead of using normal opacity property.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4468
2022-09-23 17:01:24 +02:00
Matthias Clasen
15d1c86b2c
Merge branch 'wip/carlosg/touchpad-gestures-matching-fingers' into 'main'
...
gtkgesture: Do not update gestures with mismatching n-points on touchpad
See merge request GNOME/gtk!5046
2022-09-23 14:37:58 +00:00
Marek Černocký
dd47e3bcab
Updated Czech translation
2022-09-23 16:22:41 +02:00
Carlos Garnacho
872534e763
gtkgesture: Do not update gestures with mismatching n-points on touchpad
...
Check that the touchpad gesture event has a matching number of fingers before
updating the GtkGesture point tracking, instead of afterwards. Avoids pointless
tracking of these touchpad events when we know beforehand that the gesture
will never be activated by the touchpad events.
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/5199
2022-09-23 16:04:32 +02:00
Marek Černocký
d351cbbcea
Updated Czech translation
2022-09-23 15:57:50 +02:00
Matthias Clasen
6c95547c3f
docs: Some updates
...
Make the section about environment variables match
current code.
Add a warning about env vars not being stable and
only for debugging.
2022-09-21 21:59:33 -04:00
Matthias Clasen
c7a7e550dc
Only print supported debug flags
...
It is a bit disorienting to print a lot of unavailable
debug flags, with some working ones mixed in. Just show
the ones that work.
2022-09-21 21:51:58 -04:00
Matthias Clasen
ee1a634c25
Mark the invert-text-dir flag as always there
...
This flag works in non-debug builds too.
2022-09-21 21:47:06 -04:00
Matthias Clasen
55ab99cb98
Make GL flavor flags always available
...
No need to restrict this to debug builds.
2022-09-21 21:29:34 -04:00
Matthias Clasen
f50b0a0bcb
Make the gl-debug debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 21:17:16 -04:00
Matthias Clasen
01054c9c79
Make the gl-gles debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 21:12:22 -04:00
Matthias Clasen
8bd3ec2ba1
Make the gl-legacy debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 21:09:08 -04:00
Matthias Clasen
e08a9ea9ad
Drop the gl-texture-rect debug flag
...
This was not doing anything.
2022-09-21 21:05:25 -04:00
Matthias Clasen
1987398ec5
Drop the software-gl debug flag
...
This was not doing anything.
2022-09-21 21:03:40 -04:00
Matthias Clasen
fa0fc9acb8
Make the gl-disable flag always available
...
No need to restrict this to debug builds.
2022-09-21 20:57:22 -04:00
Matthias Clasen
fa1c461c13
Make the portals debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 20:55:46 -04:00
Matthias Clasen
a99b05525d
Make the nograbs flag always available
...
No need to restrict this to debug builds.
2022-09-21 20:53:46 -04:00
Matthias Clasen
a337b21a4f
Make vulkan-disable always available
...
There is no need to restrict this to debug builds.
2022-09-21 20:51:35 -04:00
Matthias Clasen
1b96828667
Make vulkan-validate always available
...
There is no need to restrict this debug builds.
2022-09-21 20:49:53 -04:00
Matthias Clasen
7785c18c56
Fix high-depth handling
...
We mark this flag as always available, but we
were only checking it in debug builds.
2022-09-21 20:47:26 -04:00
Matthias Clasen
183709c522
Fix default-settings handling
...
This is meant to be always available, but we
were checking for debug in one place.
2022-09-21 20:45:43 -04:00
Emmanuele Bassi
458bf674ad
Merge branch 'windows-build-instructions-link' into 'main'
...
Update GTK on Windows link: use gtk.org, not wiki
See merge request GNOME/gtk!5043
2022-09-21 21:06:23 +00:00
Matthias Clasen
3016edbe72
Merge branch 'font-chooser-docs' into 'main'
...
fontchooser: Add some details to the docs
See merge request GNOME/gtk!5041
2022-09-21 18:57:58 +00:00
Mitchell Hentges
fa554a8e85
Update GTK on Windows link: use gtk.org, not wiki
...
The old wiki page has a couple issues:
* It's out-of-date, not having any notes for GTK4 specifically,
and it doesn't link to `gvsbuild`, which (I believe) is
the current official (and best) way to build GTK with MSVC.
* It's "locked", so it's harder for contributors to update. This
is OK, except for one spicy detail:
* It's not clear how to contribute/report issues on the locked wiki
pages, so out-of-date information falls off the radar.
Regardless :) the gtk.org GTK for Windows docs are a much better
springboard, in my opinion.
2022-09-21 20:12:21 +02:00
Matthias Clasen
5b03f5c531
fontchooser: Add some details to the docs
2022-09-21 09:39:06 -04:00
Maxim Zakharov
2acd10d7b0
gdk/broadway: correct gdk_broadway_device_query_state() to return pointer
...
coordinates relative to the upper left corner of surface
2022-09-21 15:42:40 +10:00
Matthias Clasen
a012f5bddb
Merge branch 'cross-gi-docgen-detection' into 'main'
...
build: fix gi-docgen detection in cross builds
See merge request GNOME/gtk!5039
2022-09-20 10:58:45 +00:00
Michal Vasilek
98796d4513
build: fix gi-docgen detection in cross builds
...
gi-docgen is supposed to be ran natively on the build machine, without
native: true dependency() searches for gi-docgen on the host system.
When it doesn't find it, it falls back to a subproject even if gi-docgen
is available on the build machine.
also make gtk_doc require introspection
2022-09-20 01:27:26 +02:00
Matej Urbančič
2bbf7d267a
Update Slovenian translation
2022-09-19 19:50:27 +00:00
Bruce Cowan
266d72a82f
Update British English translation
2022-09-19 15:17:18 +00:00
Matthias Clasen
873c437235
Merge branch 'wip/smcv/shifted-shortcuts' into 'main'
...
gdkevents: Don't ignore modifiers that are not currently active
Closes #5095
See merge request GNOME/gtk!5037
2022-09-19 13:55:10 +00:00
Matthias Clasen
15e0f3e8c6
Merge branch 'wip/smcv/reliable-gresource' into 'main'
...
build: Use more conservative GResource embedding on non-x86_64
Closes #5107
See merge request GNOME/gtk!4956
2022-09-19 13:30:22 +00:00
Martin
af2a4d4a91
Update Slovenian translation
2022-09-19 08:38:02 +00:00
Sabri Ünal
d4e2f23287
Update Turkish translation
2022-09-18 08:21:42 +00:00
Baurzhan Muftakhidinov
332bd868f5
Update Kazakh translation
2022-09-18 04:56:54 +00:00
Simon McVittie
60a83a51c3
build: Use more conservative GResource embedding on non-x86_64
...
Doing clever things with objcopy is faster and seems to be reliable on
x86_64 Linux, but also doesn't work on all toolchains and architectures:
in particular, Debian has had trouble with this on arm and mips.
In a distro build environment where we are compiling all of GTK every
time, the cost of potentially unreliable builds is higher than the cost
of using slower but more conservative GResource embedding.
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/5107
Signed-off-by: Simon McVittie <smcv@debian.org >
2022-09-17 21:50:38 +01:00
Simon McVittie
79285bd63e
gdkevents: Don't ignore modifiers that are not currently active
...
The X11 backend can mark modifiers like Shift as consumed even if they
aren't actually active, which seems to be something to do with making
shortcuts like `<Control><Shift>plus` and `<Control>plus` work as
intended regardless of whether the plus symbol is obtained by pressing
Shift and a key (like `+/=` on American, British or French keyboards)
or not (like `*/+` on German keyboards).
However, this can go badly wrong when the modifier is *not* pressed.
For example, terminals normally have separate bindings for `<Control>c`
(send SIGINT) and `<Control><Shift>c` (copy). If we disregard the
consumed modifiers completely, when the X11 backend marks Shift as
consumed, pressing Ctrl+c would send SIGINT *and* copy to the clipboard,
which is not what was intended.
By masking out the members of `consumed` that are not in `state`, we
get the same interpretation for X11 and Wayland, and ensure that
keyboard shortcuts that explicitly mention Shift can only be triggered
while holding Shift. It continues to be possible to trigger keyboard
shortcuts that do not explicitly mention Shift (such as `<Control>plus`)
while holding Shift, if the backend reports Shift as having been
consumed in order to generate the plus keysym.
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/5095
Bug-Debian: https://bugs.debian.org/1016927
Signed-off-by: Simon McVittie <smcv@debian.org >
2022-09-17 19:40:53 +01:00
Matthias Clasen
3a941eff4a
4.8.1
2022-09-16 12:29:33 -04:00
Matthias Clasen
65adcec82f
Merge branch 'detect-stylus' into 'main'
...
Recognize "stylus" devices as GDK_SOURCE_PEN
Closes #4394
See merge request GNOME/gtk!4776
2022-09-16 12:12:37 +00:00
Matthias Clasen
ffb6f39715
Merge branch 'fix-filetransfer-mimetype' into 'main'
...
portal: Use the right mimetype for file transfers
Closes #5182
See merge request GNOME/gtk!5033
2022-09-16 00:35:13 +00:00
Matthias Clasen
9a16269747
Merge branch 'wip/abono/gtk-main-remove-condition' into 'main'
...
gtk/main: Remove condition that always evaluates TRUE
See merge request GNOME/gtk!5031
2022-09-15 19:24:04 +00:00
Matthias Clasen
32f55a74b0
portal: Use the right mimetype for file transfers
...
The filetransfer protocol says to use
application/vnd.portal.filetransfer, but I used
application/vnd.portal.files when I implemented the
protocol. Oops.
This commit dds the correct mimetype, but we still
support the old one to preserve interoperatibility
with existing flatpaks using GTK 4.6.
Fixes : #5182
2022-09-15 15:18:17 -04:00
Alessandro Bono
5320acf589
gtk/main: Remove condition that always evaluates TRUE
2022-09-15 16:44:44 +02:00
Benjamin Otte
b9b2ac2ce3
Merge branch 'wip/coreyberla/gridview-rubberband' into 'main'
...
gridview: Fix rubberbanding from negative x coordinates
Closes nautilus#2492
See merge request GNOME/gtk!5030
2022-09-14 18:48:11 +00:00
Corey Berla
ad041fc5d4
gridview: Fix rubberbanding from negative x coordinates
...
This is a follow-up to 1e9a36ffa8
. For GridView
we also need to make sure that we aren't rubberbanding below x=0 which
causes unexpected rubberbanding behavior.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2492
2022-09-14 11:27:52 -07:00
Matthias Clasen
952f85c12d
Merge branch 'single-key-compose' into 'main'
...
input: Accept short compose sequences
Closes #5172
See merge request GNOME/gtk!5026
2022-09-13 10:24:49 +00:00
Matthias Clasen
72d6241c84
Add a test for short compose sequences
...
Add a table that has a short sequence
to verify that we can parse this.
2022-09-12 22:30:47 -04:00
Matthias Clasen
aac3f1860f
Update test results
...
The table sizes change, even though none of our
test tables include short sequences.
2022-09-12 22:30:47 -04:00
Matthias Clasen
6be27682a8
Regenerate builtin sequences
...
The table format has changed.
2022-09-12 22:30:47 -04:00
Matthias Clasen
8931169e00
input: Accept short compose sequences
...
Some of the X keyboard layouts use compose
sequences of length one to make individual
keys generate multiple Unicode characters.
To support this use case, change the index
part of the table format to also include
an offset for length 1. Bump the table
version to indicate this change.
Fixes : #5172
2022-09-12 22:30:47 -04:00
Matthias Clasen
72785c68d6
Cosmetics: Fix a typo
2022-09-12 12:01:30 -04:00
Boyuan Yang
5c831d030a
Update Chinese (China) translation
2022-09-11 19:24:40 +00:00
Jordi Mas
f17a924e7b
Update Catalan translation
2022-09-11 14:32:27 +02:00
Matthias Clasen
2e542d8cae
Merge branch 'misc-gl-fixes' into 'main'
...
gsk: Make glyph upload more similar to icons
See merge request GNOME/gtk!4074
2022-09-10 20:09:28 +00:00
Matthias Clasen
511a4ec475
gsk: Make glyph upload more similar to icons
...
When uploading glyphs to the atlas, clear
the padding bytes so that no dirt remains there.
2022-09-10 15:25:59 -04:00
Matthias Clasen
b76a2e44ba
Merge branch 'matthiasc/for-main' into 'main'
...
clang-format: This did not work
See merge request GNOME/gtk!5021
2022-09-10 18:51:14 +00:00
Matthias Clasen
d28b94f0cb
clang-format: This did not work
...
I thought AlignConsecutiveDeclarations would
align function parameters, but it doesn't.
So drop it again.
2022-09-10 14:35:40 -04:00
Cheng-Chia Tseng
c4766b2747
Update Chinese (Taiwan) translation
2022-09-10 09:09:29 +00:00
Matthias Clasen
98bdf67468
Merge branch 'game-sounds' into 'main'
...
gtk-demo: Make losing games hurt
See merge request GNOME/gtk!5017
2022-09-10 00:32:45 +00:00
Emmanuele Bassi
dca57bebb7
Merge branch 'a11y-state-changes' into 'main'
...
a11y: Be safe against state type changes
See merge request GNOME/gtk!5018
2022-09-10 00:04:03 +00:00
Matthias Clasen
de9a5f94c2
Merge branch 'less-fetching-in-ci' into 'main'
...
ci: Improve style check script
See merge request GNOME/gtk!5020
2022-09-10 00:02:41 +00:00
Matthias Clasen
659a129f81
Merge branch 'clang-format-improvement' into 'main'
...
ci: Improve clang-format style
See merge request GNOME/gtk!3770
2022-09-09 23:59:49 +00:00
Matthias Clasen
0c8bdf2ac2
ci: Improve clang-format style
...
Add
AlignConsecutiveDeclarations: true
PointerAlignment: Right
which will produce the style we want with llvm 13.
2022-09-09 19:43:27 -04:00
Matthias Clasen
3d2dcb437c
ci: Improve style check script
...
Only fetch the two branches we are about to
compare, and use existing git merge-base to
find the common ancestor.
2022-09-09 19:41:42 -04:00
Emmanuele Bassi
22de54a9dc
Merge branch 'ebassi/style-check' into 'main'
...
ci: Re-sync the style check with GLib
See merge request GNOME/gtk!5019
2022-09-09 23:30:38 +00:00
Matthias Clasen
4b5ed886ce
ci: Fix the git usage in scripts
...
Thanks, git.
2022-09-10 00:16:12 +01:00
Emmanuele Bassi
821dd26934
ci: Move style check to its own stage
...
Drop the `.pre` phase.
2022-09-10 00:16:12 +01:00
Emmanuele Bassi
d6597098f1
ci: Re-sync the style check with GLib
2022-09-10 00:16:12 +01:00
Matthias Clasen
4c1bc93f6f
a11y: Be safe against state type changes
...
For some of the a11y states, calling gtk_accessible_reset_state
can change the type of the state value from boolean or tristate
to undefined.
Handle that, instead of throwing criticals.
Related: !4910
2022-09-09 16:07:24 -04:00
Matthias Clasen
ef9b844c7f
Merge branch 'filechooser-keybindings' into 'main'
...
filechooser: Restore ~ and . functionality
See merge request GNOME/gtk!5016
2022-09-09 19:38:39 +00:00
Matthias Clasen
681ec04b85
gtk-demo: Make losing games hurt
...
Use a more annoying sound for losses.
And use it for all games.
2022-09-09 15:36:31 -04:00
Matthias Clasen
7dd3289837
Merge branch 'widget-factory-filechooser' into 'main'
...
widget-factory: Add a file chooser
See merge request GNOME/gtk!5015
2022-09-09 18:44:31 +00:00
Matthias Clasen
7e54a7e5a5
filechooser: Restore ~ and . functionality
...
We'll have to keep patching up these things
until somebody rewrites the file chooser :(
Inspired by: !4970
2022-09-09 14:44:28 -04:00
Matthias Clasen
f050a9e889
widget-factory: Add a file chooser
...
We don't have a readily accessible file chooser
in our demo apps. Fix that by making the Open
menu item on page 2 bring up a file chooser.
2022-09-09 14:28:08 -04:00
Matthias Clasen
ae2964c7c6
Merge branch 'fix-fontrendering-demo' into 'main'
...
gtk-demo: Avoid a segfault
Closes #5166
See merge request GNOME/gtk!5014
2022-09-09 16:57:27 +00:00
Matthias Clasen
54daad3878
gtk-demo: Avoid a segfault
...
The code in the fontrendering demo is a bit sloppy
and assumes that we always get a single run when
appending a sequence of 4 chars and 4 spaces.
That is not in general true, such as for Emoji.
Instead of working harder to handle Emoji here,
just give up and fall back to 'a'.
Fixes : #5166
2022-09-09 12:34:54 -04:00
Matthias Clasen
d7817e6fc6
Merge branch 'gtkplaces' into 'main'
...
gtkplacesview: Right click popover fix crash and align menu with mouse
See merge request GNOME/gtk!4662
2022-09-09 14:59:03 +00:00
Matthias Clasen
de94f3d97f
Merge branch 'gtktooltip.c-optimise' into 'main'
...
gtk/gtktooltip.c: check result of event position get operation
Closes #5134
See merge request GNOME/gtk!4996
2022-09-09 14:56:33 +00:00
Matthias Clasen
066884aed1
Merge branch 'wip/carlosg/im-reset' into 'main'
...
Avoid early IM reset on updates
Closes #5133
See merge request GNOME/gtk!5012
2022-09-09 12:36:43 +00:00
Rūdolfs Mazurs
e7501185cd
Update Latvian translation
2022-09-07 20:56:57 +00:00
Matthias Clasen
a08277adcd
Merge branch 'fix-file-transfer-portal' into 'main'
...
Stop recursion in registering serializers
See merge request GNOME/gtk!5013
2022-09-07 15:04:43 +00:00
Matthias Clasen
e8e69a1208
Make clipboard tests work with portals
...
This was not working right, since it hasn't been
tested with portals - there are no portals in ci.
2022-09-07 08:45:31 -04:00
Matthias Clasen
e16414b3ac
Handle absence of portals
...
When the documents portal is not on the bus,
we still get an (unowned) proxy, and we need
to handle that situation.
2022-09-07 08:45:31 -04:00
Matthias Clasen
2e42786091
portals: Fix FileTransfer portal calls
...
We were not passing the right arguments to
the AddFiles call, causing the file transfer
to fail.
2022-09-07 06:47:02 -04:00
Matthias Clasen
b756aa0764
Make the file transfer portal setup sync again
...
We need to register the portal mime types before
the others to prefer them, doing this call async
messes up that ordering.
This is effectively reverting 69fb3648b2
2022-09-07 06:45:03 -04:00
Matthias Clasen
9654fd451f
Stop recursion in registering serializers
...
This was probably unintentional, and messes up
the ordering of our registration.
2022-09-06 23:35:48 -04:00
Matthias Clasen
7d564ecdc9
Merge branch 'textbuffer-set-text-docs' into 'main'
...
Document irreversibility of gtk_text_buffer_set_text
See merge request GNOME/gtk!5005
2022-09-06 22:19:30 +00:00
Matthias Clasen
d850dfd245
Merge branch 'launch-uri-no-export' into 'main'
...
Make gtk_launch_uri more robust
Closes #5152
See merge request GNOME/gtk!5010
2022-09-06 20:50:06 +00:00
Matthias Clasen
a6d5757627
Merge branch 'gtk-scale-set-digits-update-label' into 'main'
...
GtkScale: Update the label size request from set_digits ()
Closes #5156
See merge request GNOME/gtk!5011
2022-09-06 20:34:39 +00:00
Matthias Clasen
ad8a3e5b45
Merge branch 'wip/antoniof/columnview-rtl' into 'main'
...
columnview: Invert columns on RTL
Closes nautilus#2302
See merge request GNOME/gtk!5002
2022-09-06 20:30:15 +00:00
Carlos Garnacho
5b78fe2721
gtktextview: Also reset IM context after IM surrounding text deletion
...
When the IM commands the GtkText to delete text, the cursor position
would change, and so would the surrounding text. Reset the IM context
so that these updates are properly picked up by the IM.
Fixes backspace key behavior in the GNOME Shell OSK, since that relies
on the surrounding text being properly updated for the next iteration.
2022-09-06 22:17:40 +02:00
Carlos Garnacho
7c0a395ff9
gtktext: Also reset IM context after IM surrounding text deletion
...
When the IM commands the GtkText to delete text, the cursor position
would change, and so would the surrounding text. Reset the IM context
so that these updates are properly picked up by the IM.
Fixes backspace key behavior in the GNOME Shell OSK, since that relies
on the surrounding text being properly updated for the next iteration.
2022-09-06 22:17:40 +02:00
Carlos Garnacho
41f26975a9
gtktext: Avoid early IM reset on updates
...
Resetting the IM on IM updates is too eager and indeed the simple
IM context doesn't like that this happens in the middle of dead
key handling.
We however want to reset the IM after actual text buffer changes
(say, a committed string) moved the cursor position, altered the
surrounding text, etc. So that the IM implementation does know to
update its state.
Since there is going to be an actual IM reset anyways, it does
no longer make sense to try to preserve the old priv->need_im_reset
status during commit handling.
Fixes: 52ac71b972
("gtktextview: Shuffle the places doing IM reset")
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5133
2022-09-06 22:17:40 +02:00
Carlos Garnacho
085374198f
gtktext: Avoid early IM reset on updates
...
Resetting the IM on IM updates is too eager and indeed the simple
IM context doesn't like that this happens in the middle of dead
key handling.
We however want to reset the IM after actual text buffer changes
(say, a committed string) moved the cursor position, altered the
surrounding text, etc. So that the IM implementation does know to
update its state.
Fixes: 9e29739e66
("gtktext: Shuffle the places doing IM reset")
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5133
2022-09-06 22:17:40 +02:00
Matthias Clasen
586675c902
Merge branch 'treepopover-ellipsize' into 'main'
...
treepopover: Do not propagate natural width of content
See merge request GNOME/gtk!4895
2022-09-06 20:17:33 +00:00
Matthias Clasen
1679fc8675
Merge branch 'display-wayland-update-scale' into 'main'
...
wayland/display: Remove duplicate update_scale() call
See merge request GNOME/gtk!5003
2022-09-06 20:14:38 +00:00
Matthias Clasen
9cc1dcf2a4
4.8.0
2022-09-06 15:59:04 -04:00
Luca Bacci
cc57692345
GtkScale: Update the label's size request from set_digits ()
...
Update the label size request when setting the digits property
by calling the update_label_request () util function.
That util function works by measuring the size request of the
label with the lower and upper values of the adjustment, then
taking the max. That way the size requisition is constant
regardless of the actual displayed value.
Since the util function internally works by setting the text
of the label, let it also set the text at last by taking in
account the current adjustment's value. Most of its callers
do that anyway.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5156
2022-09-06 21:08:31 +02:00
Matthias Clasen
a0db8a24c2
Make gtk_launch_uri more robust
...
We were failing to launch the uri if we are on
Wayland, but have no xdg_foreign protocol support.
Fixes : #5152
2022-09-06 12:37:56 -04:00
Zurab Kargareteli
e4be073f0a
Update Georgian translation
2022-09-06 16:28:59 +00:00
Zurab Kargareteli
4ffefec469
Update Georgian translation
2022-09-06 16:28:00 +00:00
Changwoo Ryu
db2432b5db
Update Korean translation
2022-09-06 04:15:30 +00:00
Aurimas Černius
7d29b456b8
Updated Lithuanian translation
2022-09-05 22:38:20 +03:00
Daniel Mustieles
8fbb647daa
Updated Spanish translation
2022-09-05 14:30:59 +02:00
Fran Dieguez
c28b8297ee
Update Galician translation
2022-09-04 22:24:45 +00:00
Aleksandr Melman
4eb0dd7264
Update Russian translation
2022-09-04 20:45:34 +00:00
Rūdolfs Mazurs
b3d6972803
Update Latvian translation
2022-09-04 15:50:02 +00:00
Jürgen Benvenuti
0eab3c3940
Update German translation
2022-09-04 13:57:48 +00:00
Elliott Sales de Andrade
4cbfb69f74
Document irreversibility of gtk_text_buffer_set_text
...
If you've begun a user action and call `gtk_text_buffer_set_text`, you
get an unexpected warning:
```
Gtk-WARNING **: Cannot begin irreversible action while in user action
```
which can be fixed by doing the delete/insert yourself. But this is not
documented as occurring, so document it.
2022-09-04 02:47:57 -04:00
Boyuan Yang
4603e7bb18
Update Chinese (China) translation
2022-09-03 21:16:03 +00:00
Rūdolfs Mazurs
8d504cae44
Update Latvian translation
2022-09-03 13:04:54 +00:00
Piotr Drąg
0f35ece2af
Update Polish translation
2022-09-03 15:00:46 +02:00
Marek Černocký
204cac7ebf
Updated Czech translation
2022-09-03 09:50:27 +02:00
Robert Mader
06a51b6ca6
wayland/display: Remove duplicate update_scale() call
...
`apply_monitor_change()` already calls `update_scale()`.
Note that this only affects old compositor versions (see
`should_update_monitor()`) so it's just a minor cleanup.
2022-09-03 00:53:02 +02:00
Balázs Úr
853bfcb130
Update Hungarian translation
2022-09-02 21:29:08 +00:00
Jordi Mas
6a1f5c0af5
Update Catalan translation
2022-09-02 20:34:04 +02:00
António Fernandes
91e6f8e4b9
columnview: Invert columns on RTL
...
Respect text direction.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2302
2022-09-02 15:44:59 +01:00
Carlos Garnacho
bce90df49d
Merge branch 'treeview-gesture-claim' into 'main'
...
treeview: Don't claim event sequence too early
Closes #3649 , #3985 , #4206 , and #4669
See merge request GNOME/gtk!4883
2022-09-02 12:40:15 +00:00
Mat
58953671fe
treeview: Don't claim event sequence too early
...
We want to claim the event sequence in the click gesture when appropriate,
such as activating a row or clicking an editable cell, but this is currently
done too early, preventing other gestures for drag-and-drop and rubberband
selection entirely.
Fixes #3649
Fixes #3985
Fixes #4669
2022-09-02 15:04:43 +03:00
Ask Hjorth Larsen
df527758b1
Updated Danish translation
2022-09-02 11:51:27 +02:00
Emin Tufan Çetin
3cd55fdf35
Update Turkish translation
2022-09-01 22:53:55 +00:00
Alexander Shopov
25783573c6
Update Bulgarian translation
2022-09-01 21:11:55 +00:00
Luca Bacci
041a186272
Merge branch 'implement-gtk-color-picker-for-windows' into 'main'
...
Implement GtkColorPicker for Windows
Closes #5136
See merge request GNOME/gtk!4983
2022-09-01 20:39:15 +00:00
Christian Hergert
f5488bb4b2
gdk: fix typo in frame clock docs
2022-09-01 12:16:10 -07:00
Luca Bacci
86a38918d7
Implement GtkColorPicker for Windows
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5136
2022-09-01 19:25:07 +02:00
Hugo Carvalho
88f38f598b
Update Portuguese translation
2022-09-01 17:18:51 +00:00
Nathan Follens
4aee6edbbd
Update Dutch translation
2022-09-01 16:21:14 +00:00
Matthias Clasen
adcec93b02
Merge branch 'gtkplacessidebar' into 'main'
...
gtkplacessidebar: Fix crash when remove or rename bookmark
See merge request GNOME/gtk!4625
2022-09-01 15:00:42 +00:00
Matthias Clasen
79ff151624
Merge branch 'inscription_a11y' into 'main'
...
GtkInscription: Set the a11y label when updating the text property
See merge request GNOME/gtk!5000
2022-09-01 14:38:49 +00:00
Lukáš Tyrychtr
27f32b7f9b
GtkInscription: Set the a11y label when updating the text property
2022-09-01 16:19:59 +02:00
Anders Jonsson
1771f75c6c
Update Swedish translation
2022-09-01 13:15:36 +00:00
Marek Černocký
979c418e46
Updated Czech translation
2022-09-01 14:41:37 +02:00
Marek Černocký
28f63259ab
Updated Czech translation
2022-09-01 14:34:27 +02:00
Leônidas Araújo
105a2262dc
Update Brazilian Portuguese translation
2022-08-31 14:53:19 +00:00
Danial Behzadi
3615619f41
Update Persian translation
2022-08-31 12:45:30 +00:00
Kukuh Syafaat
0782bfa52b
Update Indonesian translation
2022-08-31 09:17:12 +00:00
Asier Sarasua Garmendia
ccd5565f75
Update Basque translation
2022-08-31 07:04:00 +00:00
Matthias Clasen
e502155dfa
Merge branch 'gbsneto/cleanup-gsettings' into 'main'
...
gtk: Remove last-folder-uri from schema
See merge request GNOME/gtk!4998
2022-08-30 19:14:44 +00:00
Georges Basile Stavracas Neto
9261b0079d
gtk: Remove last-folder-uri from schema
...
It's unused since 2013, apparently.
2022-08-30 15:58:47 -03:00
Goran Vidović
4638f942b8
Update Croatian translation
2022-08-30 11:56:21 +00:00
Maxim Zakharov
982b4ff3b2
gtk/gtktooltip.c: check result of event position get operation
...
Do not perform coordinates transformation when gdk_event_get_position()
returns FALSE as it returns NaNs in that case and these coordinates
are not used anyway in further processing (closes #5134 ).
2022-08-30 15:54:52 +10:00
Yuri Chornoivan
46483bebcd
Update Ukrainian translation
2022-08-29 19:21:22 +00:00
Matthias Clasen
e077a6bffe
Merge branch 'wip/jimmac/HC-italic-hints' into 'main'
...
HC: entry - make hints italic
Closes #5143
See merge request GNOME/gtk!4994
2022-08-29 18:55:34 +00:00
Matthias Clasen
66dc193aeb
Merge branch 'font-feature-work' into 'main'
...
fontchooser: Rename default feature value
See merge request GNOME/gtk!4995
2022-08-29 18:48:00 +00:00
Matthias Clasen
39439aa838
fontchooser: Rename default feature value
...
"Default" is a better fit than "None" here.
2022-08-29 14:14:07 -04:00
Matthias Clasen
018bd0a927
fontchooser: Add a tooltip to the tweak button
...
Icon-only buttons are always better with a tooltip.
2022-08-29 12:13:32 -04:00
Matthias Clasen
975ab6e7cf
fontchooser: Remove placeholder from preview entry
...
The way we explicitly set the font on the entry
conflicts with the placeholder text styling. But the
entry isn't normally empty, so placeholder text is
not that important here. Remove it and use a tooltip
instead.
2022-08-29 10:21:37 -04:00
Jordi Mas
53c8975739
Update Catalan translation
2022-08-29 12:28:26 +02:00
Jakub Steiner
09176fc1b3
HC: entry - make hints italic
...
- to keep contrast but indicated difference between a value and a hint
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5143
2022-08-29 11:58:29 +02:00
Matthias Clasen
0f2582ff02
Merge branch 'font-feature-work' into 'main'
...
fontchooser: Improve handling of features
See merge request GNOME/gtk!4992
2022-08-29 01:26:12 +00:00
Matthias Clasen
c364f1ee12
fontchooser: Improve handling of features
...
salt and swsh need to be treated like cvXX, with
a dropdown. Also add examples to the default cases
of radio groups.
2022-08-28 17:02:56 -04:00
Mat
9c919ffa46
treepopover: Do not propagate natural width of content
...
Propagating the natural width of the tree popover contents breaks ellipsizing of items
(see 'Unconstrained menu' in tests/testcombo).
2022-07-20 16:51:33 +03:00
Nate Eldredge
5faa300c5e
Recognize "stylus" devices as GDK_SOURCE_PEN
...
Add "stylus" to the list of substrings in a device name that cause it to be recognized
as a GDK_SOURCE_PEN device (previously "wacom", "pen" and "eraser"). Some devices
just use "stylus" in their name, and are otherwise recognized as
GDK_SOURCE_TOUCHSCREEN instead.
Fixes #4394 .
2022-05-29 15:30:19 -06:00
Corey Berla
7df347d9a5
places: Align popover menu with mouse position
...
The popover menu previously always pops up in the center of each
row regardless of where the mouse cursor is currently positioned.
Make the popover popup at the current mouse position. If the popover
is triggered by the keyboard (i.e. SHIFT+F10), then align it with the
start of the row.
2022-05-07 18:50:59 +01:00
Corey Berla
7ed8a6ae3c
places: Fix crash when right clicking row
...
After right clicking multiple rows, or after adding / removing rows
(i.e. new network locations), right clicking the row will crash
nautilus.
This happens because the popover may become orphan but still expect
a parent.
Reposition the popover menu instead of reparenting it.
2022-05-07 18:45:17 +01:00
Corey Berla
ff84b96480
places: Fix crash when disconnecting
...
After disconnecting a network mount in places (when there's 2 or more
mounts), right clicking another mount crashes the application.
Set row_for_action to NULL when successfully unmounted.
2022-05-07 18:22:15 +01:00
António Fernandes
64347f2c79
placessidebar: Point to row instead or reparenting popovers
...
In GTK 3 we used to move the popovers around using set_relative_to();
this is gone in GTK 4 and the apparent direct replacement is setting
the target widget as the new parent.
But this requires a lot of careful handling least the popover become
orphan, which gets us ready to crash at any moment.
Since we only care about positioning the popovers relative to a row,
let's use the set_pointing_to() instead of reparenting. Now, the
sidebar is always the parent.
2022-05-07 18:10:44 +01:00
Lukáš Tyrychtr
4ab9592924
Use the correct macro
2022-04-25 14:21:40 +02:00
Lukáš Tyrychtr
6f01d458d5
Localize the a11y label
2022-04-22 11:42:32 +02:00
Lukáš Tyrychtr
6f9013297a
Make the presentation of the stack sidebar listbox nicer for A11Y
...
This fixes #4577 .
2022-04-21 17:55:39 +02:00