Matthias Clasen
fff32faa67
Merge branch 'screenshot-popovers' into 'main'
...
builder-tool: Screenshot popovers properly
See merge request GNOME/gtk!4699
2022-05-07 00:39:35 +00:00
Matthias Clasen
c0acf264a9
builder-tool: Screenshot popovers properly
...
Do the necessary shenanigans to get popovers to show
up in screenshots.
2022-05-06 14:43:45 -04:00
Matthias Clasen
dacca9ece0
Merge branch 'check-half-float' into 'main'
...
gdk: Check OES_vertex_half_float GLES extension
See merge request GNOME/gtk!4689
2022-05-06 18:02:05 +00:00
Benjamin Otte
bd9c491076
Merge branch 'list-item-factory-notify-by-pspec' into 'main'
...
list-item: Use notify_by_pspec instead of by name
See merge request GNOME/gtk!4697
2022-05-06 16:11:21 +00:00
Matthias Clasen
93d62acdf3
Merge branch 'builder-treestore-data' into 'main'
...
Add buildable data support to GtkTreeStore
See merge request GNOME/gtk!4695
2022-05-06 15:22:41 +00:00
Matthias Clasen
0da75b0bbf
gsk: Check for half float support
...
The GL renderer currently relies on half float support
in vertex buffers, so check that we have it.
Related: #4894
2022-05-06 11:05:57 -04:00
Ivan Molodetskikh
8328bd9f96
list-item: Use notify_by_pspec instead of by name
...
This is a hot path when scrolling a ColumnView, and
g_param_spec_pool_lookup () was taking a measurable part in this hot
path. Instead, notify using pspecs to avoid the name lookup.
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/3334
2022-05-06 18:05:03 +03:00
Luca Bacci
1a82e6a762
Merge branch 'gdk-win32-rework-scroll-input-handling' into 'main'
...
GdkWin32: Rework scroll input handling
See merge request GNOME/gtk!4633
2022-05-06 14:58:32 +00:00
Benjamin Otte
886bb0f522
Merge branch 'list-item-factory-no-freeze-thaw' into 'main'
...
listitemfactory: Track notify manually instead of freeze/thaw
See merge request GNOME/gtk!4696
2022-05-06 14:52:21 +00:00
Ivan Molodetskikh
d65e7c9d05
listitemfactory: Track notify manually instead of freeze/thaw
...
freeze/thaw_notify () showed up on the perf trace for rapid ColumnView
scrolling. Track the three properties manually to make it a little
faster.
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/3334
2022-05-06 17:31:24 +03:00
Matthias Clasen
a96af76c8a
Merge branch 'unclipped-screenshots' into 'main'
...
builder-tool: Include shadows in screenshots
See merge request GNOME/gtk!4692
2022-05-06 13:49:14 +00:00
Matthias Clasen
0ce49daa5f
testsuite: test new treestore builder functionality
...
Verify that we can nest rows.
2022-05-06 09:29:44 -04:00
Matthias Clasen
08154c41f9
treestore: support nested data in builder
...
This allows <row> elements to be nested.
Note that the child rows must come after
the data for the row itself.
2022-05-06 09:29:44 -04:00
Matthias Clasen
f880d24f2a
builder: Allow checking for multiple parents
2022-05-06 09:29:44 -04:00
Matthias Clasen
10b5698b78
testsuite: Copy liststore builer tests for trees
...
This adds tests for data, but not nesting yet.
2022-05-06 09:29:44 -04:00
Matthias Clasen
c2e8604805
treestore: Copy liststore buildable implementation
...
This add support for data, but does not allow
nesting yet.
2022-05-06 09:29:44 -04:00
Matthias Clasen
1a488722fa
treestore: Cosmetics
...
Some renaming in the buildable code to make it more
similar to the liststore implementation.
2022-05-06 09:29:44 -04:00
Benjamin Otte
361e8ac076
Merge branch 'otte-main-patch-11831' into 'main'
...
Don't invalidate parent if it didn't change
See merge request GNOME/gtk!4693
2022-05-06 13:03:47 +00:00
Luca Bacci
66a0e0a59e
GdkWin32: Send smooth scroll events
...
Bring back smooth scroll events as the issues mentioned
in [1] do not occur anymore. Also rework code style and
comments.
References:
[1] GTK4: Scrolling hides mouse on windows
https://gitlab.gnome.org/GNOME/gtk/-/issues/3581
[2] Why are mouse wheel messages delivered to the focus window
instead of the window under the mouse?
https://devblogs.microsoft.com/oldnewthing/20160420-00/?p=93325
2022-05-06 15:01:59 +02:00
Benjamin Otte
c29bf115f2
Don't invalidate parent if it didn't change
...
This looks like a leftover excess invalidation from when the surrounding
code was refactored to not just be called on parent changes but also
when repositioning inside the same parent in commit
507016cafc
Ivan Molodetskikh found this problem in
https://gitlab.gnome.org/GNOME/gtk/-/issues/3334#note_1445873 which
contains a longer analysis of this problem and the performance
reductions it causes.
Related: #3334
2022-05-06 11:50:55 +00:00
Matthias Clasen
b74aec3606
Merge branch 'editable-label-fixes' into 'main'
...
theme: Fix editable label selection
See merge request GNOME/gtk!4690
2022-05-05 23:38:23 +00:00
Matthias Clasen
e3abd7df5c
builder-tool: Include shadows in screenshots
...
Remove the clipping to the widget area that
GtkWidgetPaintable imposes, so we can see shadows
and other out-of-bounds rendering. This is particularly
useful for toplevel windows with client-side decorations.
2022-05-05 18:29:05 -04:00
Matthias Clasen
25069cf233
editablelabel: Make :editing writable
...
This does not hurt, and lets us start editing from
a ui file, which is useful for documentation screenshots.
2022-05-05 17:33:24 -04:00
Matthias Clasen
158963ff77
gdk: Check OES_vertex_half_float GLES extension
...
This will be checked in the GL renderer.
2022-05-05 13:21:25 -04:00
Matthias Clasen
19fa7d513d
theme: Fix editable label selection
...
When the editable label is in editing mode,
selections should appear the same as in other
entries.
2022-05-05 12:44:40 -04:00
Matthias Clasen
a0374334d4
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Fix a spinbutton example
See merge request GNOME/gtk!4686
2022-05-04 12:28:32 +00:00
Matthias Clasen
3bae7f540e
docs: Fix a spinbutton example
...
We need to use editable api for editable functionality.
2022-05-04 07:42:45 -04:00
Benjamin Otte
23fc3d9ecd
Merge branch 'checkbutton-label' into 'main'
...
Expose GtkCheckButton label child for manipulation
Closes #4698
See merge request GNOME/gtk!4489
2022-05-03 22:05:47 +00:00
Matthias Clasen
c645da00dc
Merge branch 'wrap-mode-invalid-cast' into 'main'
...
Don't cast GtkWrapMode to the incompatible enum PangoWrapMode
Closes #4869
See merge request GNOME/gtk!4671
2022-05-03 17:46:51 +00:00
Matthias Clasen
4867ac653a
Merge branch 'wip/exalm/eye-icons' into 'main'
...
icons: Use the proper eye icons
See merge request GNOME/gtk!4663
2022-05-03 17:37:54 +00:00
Matthias Clasen
b0ccfce1d6
Merge branch 'wip/carlosg/ignore-null-preedit' into 'main'
...
imcontextwayland: Ignore preedit updates from NULL to NULL
See merge request GNOME/gtk!4667
2022-05-03 17:37:36 +00:00
Matthias Clasen
3f6b5ccf4a
Merge branch 'ebassi/issue-4883' into 'main'
...
Keep FileChooserNative alive while a portal is running
Closes #4883
See merge request GNOME/gtk!4675
2022-05-03 16:37:27 +00:00
Pablo Correa Gómez
07299dd9c7
Expose GtkCheckButton label as a child for manipulation
...
This allows consumers greater control over the label without the need
to expose each of the label properties as part of GtkCheckButton interface.
Specifically, motivation for this commit is to be able to wrap the label.
Closes #4698
2022-05-03 16:25:55 +02:00
Matthias Clasen
d3ffc0c3bb
Merge branch 'wip/another-randr-error-trap-4' into 'main'
...
x11: Trap errors happening when getting output properties
See merge request GNOME/gtk!4681
2022-05-03 00:44:05 +00:00
Luca Bacci
48ef26317e
Merge branch 'fix-introspection-tests-win' into 'main'
...
testsuite: Fix introspection test on Windows
See merge request GNOME/gtk!4664
2022-05-02 19:00:38 +00:00
Luca Bacci
981981dc46
Merge branch 'fix-list-model-checks-null-vs-empty' into 'main'
...
GtkFileChooserWidget: fixes for NULL vs empty GListModel
Closes #4851 and #4858
See merge request GNOME/gtk!4678
2022-05-02 18:53:27 +00:00
Jonas Ådahl
f1551a87f6
x11: Trap errors happening when getting output properties
...
This is to avoid getting X11 errors (thus aborting/exiting with a
failure) during rapid hotplugs, which may happen during e.g. CI testing.
2022-05-02 17:28:36 +02:00
Yuri Chornoivan
9c42b8fb2b
Update Ukrainian translation
2022-05-02 09:14:32 +00:00
Yuri Chornoivan
f6aa6dc59d
Update Ukrainian translation
2022-05-02 09:11:07 +00:00
Matthias Clasen
35cd02cd1e
Merge branch 'fix-large-compose-file' into 'main'
...
composetable: Add a missing NULL check
Closes #4873
See merge request GNOME/gtk!4679
2022-05-02 08:26:38 +00:00
Matthias Clasen
2b183a9f4e
Reject compose tables that are too large
...
The fixed-size format we use currently can only handle up
to 32768 bytes of string data. If a compose file contains
more, reject it with a warning.
Fixes : #4873
2022-05-02 16:03:45 +08:00
Matthias Clasen
5df314fa8f
composetable: Add a missing NULL check
...
gtk_compose_table_parse can return NULL. Handle it.
2022-05-02 15:39:03 +08:00
Luca Bacci
5a1396d38e
GtkFileChooserWidget: return empty GListModel in get_files () instead of NULL
2022-05-01 16:52:13 +02:00
Luca Bacci
6ce36e6a7d
GtkFileChooserWidget: check for empty instead of NULL GListModel
...
While porting GtkFileChooserWidget from GList to GListModel we did not
change some checks for NULL to checks for empty list.
Fixes #4851 , #4858
2022-05-01 16:52:13 +02:00
Emmanuele Bassi
196ec107d1
Keep FileChooserNative alive while a portal is running
...
Even if the FileChooserNative instance drops out on us while we're still
waiting for the portal to answer, we should keep the data and pointers
alive until the sequence of asynchronous operations is running. The code
already tries to do that, by acquiring a strong reference to the
GtkFileChooserNative instance, but it's also freeing data as soon as the
dialog is hidden, while asynchronous callbacks that will look at the
fields on that data are still in flight.
To avoid that, we defer freeing the data until the asynchronous
callbacks are invoked, and we keep a reference on the dialog while we're
emitting signals on it.
Fixes : #4883
2022-04-29 15:27:10 +01:00
Federico Mena Quintero
4ddf1b70a2
Make the wrap_mode test unix-only
...
The relevant accessibility code is not built on Windows.
2022-04-28 09:46:48 -05:00
Emmanuele Bassi
b3f04413b4
Merge branch 'wip/sophie-h/fix-4020' into 'main'
...
filechooser: Small fix for select folder mode
Closes #4020
See merge request GNOME/gtk!4650
2022-04-27 13:46:14 +00:00
Federico Mena Quintero
898a2e9fcf
textbuffer: Test the serialization of the wrap-mode attribute
2022-04-26 20:22:59 -05:00
Federico Mena Quintero
ae06e40bcc
Put the text buffer tests in the internal_tests suite
...
We'll start testing the internal gtk_text_buffer_get_run_attributes()
soon.
2022-04-26 14:01:08 -05:00
Benjamin Otte
940248598e
Merge branch 'wip/otte/for-main' into 'main'
...
roaring: Remove extra careful code
Closes #4252 and #4517
See merge request GNOME/gtk!4669
2022-04-26 18:58:08 +00:00