Matthias Clasen [Wed, 9 Nov 2022 15:24:20 +0000 (16:24 +0100)]
wayland: Reimplement export_handle
Reimplement the backend API on top of the new async
calls.
Matthias Clasen [Wed, 9 Nov 2022 15:12:01 +0000 (16:12 +0100)]
window: fixups
Matthias Clasen [Wed, 9 Nov 2022 15:11:52 +0000 (16:11 +0100)]
wayland: fixups
Matthias Clasen [Wed, 9 Nov 2022 11:32:02 +0000 (12:32 +0100)]
wayland: Support the v2 protocol in both places
The old api should better support both versions of the
foreign protocol too.
Matthias Clasen [Wed, 9 Nov 2022 11:22:00 +0000 (12:22 +0100)]
wayland: Add zxdg_foreign_v2 protocol support
Matthias Clasen [Wed, 9 Nov 2022 07:41:55 +0000 (08:41 +0100)]
window: Use gdk_toplevel_export_handle
Matthias Clasen [Sun, 6 Nov 2022 16:17:02 +0000 (17:17 +0100)]
Add gdk_toplevel_export_handle
This code is backend-specific, and should not live
in gtkwindow.c.
Matthias Clasen [Tue, 8 Nov 2022 16:29:15 +0000 (16:29 +0000)]
Merge branch 'wayland_display_geometry' into 'main'
wayland: calculate union of geometry of all monitors for toplevel bounds
See merge request GNOME/gtk!4790
Matthias Clasen [Tue, 8 Nov 2022 16:27:06 +0000 (16:27 +0000)]
Merge branch 'cursor-size' into 'main'
GtkSettings: Provide settings in logical pixels also on X11
Closes #5223 and #5230
See merge request GNOME/gtk!5172
Matthias Clasen [Tue, 8 Nov 2022 16:14:18 +0000 (16:14 +0000)]
Merge branch 'wip/carlosg/back-forward-mask' into 'main'
gdk/wayland: Fix button mask calculation on button events
Closes #5301
See merge request GNOME/gtk!5191
Matthias Clasen [Tue, 8 Nov 2022 16:05:59 +0000 (16:05 +0000)]
Merge branch 'add-link-to-docs' into 'main'
Link the file mentioned as a reference for key values
See merge request GNOME/gtk!5198
Matthias Clasen [Tue, 8 Nov 2022 16:01:11 +0000 (16:01 +0000)]
Merge branch 'ebassi/since-for-main' into 'main'
docs: Add deprecation notices for properties
See merge request GNOME/gtk!5204
Matthias Clasen [Tue, 8 Nov 2022 15:28:08 +0000 (15:28 +0000)]
Merge branch 'ccook/gtk_aspect_frame_doc_fix' into 'main'
doc/comment fix: @self misspelled as self@
See merge request GNOME/gtk!5200
Matthias Clasen [Tue, 8 Nov 2022 15:23:03 +0000 (15:23 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Add new printf patterns to make-pot
See merge request GNOME/gtk!5188
Emmanuele Bassi [Tue, 8 Nov 2022 10:45:00 +0000 (10:45 +0000)]
docs: Add deprecation notices for properties
Matthias Clasen [Mon, 7 Nov 2022 14:51:34 +0000 (14:51 +0000)]
Merge branch 'fix-color-dialog-button-new' into 'main'
colordialogbutton: Actually accept NULL
Closes #5321
See merge request GNOME/gtk!5202
Matthias Clasen [Wed, 2 Nov 2022 11:04:59 +0000 (07:04 -0400)]
gtk-demo: Improve language handlng
In the font features demo, don't add a
item for the default language to the dropdown,
that does not make sense.
Matthias Clasen [Tue, 1 Nov 2022 23:04:07 +0000 (19:04 -0400)]
gtk-demo: Add a few mssing language names
Matthias Clasen [Sun, 6 Nov 2022 14:34:24 +0000 (15:34 +0100)]
gtk4-demo: Tweak the pickers demo
Redo the file picker a bit.
Matthias Clasen [Tue, 1 Nov 2022 11:14:45 +0000 (07:14 -0400)]
po: Match make-pot
We are not normally using the gtk40-pot target to
generate the gtk40.pot file. On the off chance that
somebody does, lets make sure we pass the same
arguments to xgettext here as in the make-pot script
that is used on damn lies.
Matthias Clasen [Mon, 7 Nov 2022 14:32:51 +0000 (15:32 +0100)]
Add a test for picker button constructors
This turns out to be hard enough that a test
is useful.
Matthias Clasen [Mon, 7 Nov 2022 14:24:13 +0000 (15:24 +0100)]
colordialogbutton: Actually accept NULL
As pointed out in #5321, my previous fix was not
good enough.
Fixes: #5321
Colin Kinloch [Mon, 7 Nov 2022 11:08:18 +0000 (11:08 +0000)]
wayland: calculate union of geometry of all monitors for toplevel bounds
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
Cam Cook [Sun, 6 Nov 2022 22:59:23 +0000 (17:59 -0500)]
doc/comment fix: the ref to @self was misspelled as self@ for gtkaspectframe.h/gtk_aspect_frame_get_child
Noticed this while reviewing the gi-docgen docs for GtkAspectFrame while developing some java bindings.
It's my understanding that @self was intended; as it would cause gi-docgen to interpret it as a reference to
the the GtkAspectFrame pointer named 'self'.
Matthias Clasen [Sun, 6 Nov 2022 13:36:49 +0000 (13:36 +0000)]
Merge branch 'fix-color-button-new' into 'main'
color/fontdialogbutton: Fix constructors
Closes #5321
See merge request GNOME/gtk!5199
Matthias Clasen [Sun, 6 Nov 2022 13:12:02 +0000 (14:12 +0100)]
color/fontdialogbutton: Fix constructors
The arguments were meant to be nullable.
Make it so!
Fixes: #5321
Pedro Sader Azevedo [Sun, 6 Nov 2022 01:54:38 +0000 (01:54 +0000)]
Link the file mentioned as a reference for key values
Balázs Úr [Sat, 5 Nov 2022 22:21:06 +0000 (22:21 +0000)]
Update Hungarian translation
Goran Vidović [Sat, 5 Nov 2022 18:55:57 +0000 (18:55 +0000)]
Update Croatian translation
Matthias Clasen [Sat, 5 Nov 2022 10:50:51 +0000 (10:50 +0000)]
Merge branch 'make-pot-update' into 'main'
Add new printf patterns to make-pot
See merge request GNOME/gtk!5197
Matthias Clasen [Tue, 1 Nov 2022 11:07:51 +0000 (07:07 -0400)]
Add new printf patterns to make-pot
This script is used to extract our strings for translators
on damn lines, and passing these flags to xgettext makes
it put a hint into the pot file about strings that are
used as printf format strings.
Luca Bacci [Fri, 4 Nov 2022 16:00:25 +0000 (16:00 +0000)]
Merge branch 'gdk-win32-settings-rework' into 'main'
GdkWin32 settings rework
See merge request GNOME/gtk!5193
Luca Bacci [Fri, 4 Nov 2022 15:11:27 +0000 (16:11 +0100)]
GdkWin32: Add more GDK_NOTE calls for settings
Luca Bacci [Fri, 4 Nov 2022 14:59:15 +0000 (15:59 +0100)]
GdkWin32: Set the "gtk-hint-font-metrics" property
Helps for https://gitlab.gnome.org/GNOME/gtk/-/issues/5257
Luca Bacci [Fri, 4 Nov 2022 14:57:25 +0000 (15:57 +0100)]
GdkWin32: Set the "gtk-cursor-blink" setting
Luca Bacci [Fri, 4 Nov 2022 14:56:20 +0000 (15:56 +0100)]
GdkWin32: Set the "gtk-cursor-theme-size" setting
Note that we have to set the logical value, that's why
we use GetSystemMetrics and not GetSystemMetricsForDpi.
Luca Bacci [Fri, 4 Nov 2022 14:54:02 +0000 (15:54 +0100)]
GdkWin32: Detect the high contrast setting
And set the theme name accordingly ("Default-hc")
Luca Bacci [Fri, 4 Nov 2022 14:38:29 +0000 (15:38 +0100)]
GdkWin32: Fix leak of screen HDC
Luca Bacci [Fri, 4 Nov 2022 14:35:04 +0000 (15:35 +0100)]
GdkWin32: Remove special-casing for old Pango versions
We require Pango 1.50 now
Luca Bacci [Fri, 4 Nov 2022 14:31:40 +0000 (15:31 +0100)]
GdkWin32: Remove old code
Luca Bacci [Fri, 4 Nov 2022 14:30:12 +0000 (15:30 +0100)]
GdkWin32: Sort settings alphabetically
Carlos Garnacho [Wed, 2 Nov 2022 16:11:10 +0000 (17:11 +0100)]
gdk/wayland: Fix button mask calculation on button events
There's 2 things broken here:
- The mask was calculated on top of the GDK button (i.e. skipping
4-7 buttons), so GDK_BUTTON4_MASK and GDK_BUTTON5_MASK were not
assigned. This is now calculated on the (continuous) BTN_ evcodes
so it is guaranteed that the next 2 physical buttons (i.e.
back/forward) get these two places in the mask assigned.
- Furthermore, these buttons would be pushed to places in the
modifier mask that they didn't belong to. It is now checked hard
that only the first 5 buttons enable a modifier flag.
Overall, this ensures that no event masks with bonkers values are
forwarded, and that no stale implicit grabs are left after additional
buttons are pressed.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5301
Sabri Ünal [Wed, 2 Nov 2022 06:06:38 +0000 (06:06 +0000)]
Update Turkish translation
Nathan Follens [Tue, 1 Nov 2022 23:10:49 +0000 (23:10 +0000)]
Update Dutch translation
(cherry picked from commit
381c05607060c584779f9e6fab6f662ddfada1fa)
Luca Bacci [Wed, 26 Oct 2022 12:10:48 +0000 (14:10 +0200)]
X11: Provide settings in logical pixels
This makes GtkSettings values on X11 match what we get on
other backends.
Reporting size settings in logical pixels (i.e for scale
== 1) is useful for properly supporting mixed-DPI setups.
As X11 doesn't support mixed-DPI setups anyway, XSettings
doesn't bother providing logical values. Thus we scale
from physical to logical values ourselves.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5223
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5230
Matthias Clasen [Tue, 1 Nov 2022 02:22:06 +0000 (22:22 -0400)]
Post-release version bump
Matthias Clasen [Tue, 1 Nov 2022 02:07:15 +0000 (22:07 -0400)]
4.9.1
Matthias Clasen [Tue, 1 Nov 2022 01:09:51 +0000 (01:09 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Revert "modules: Fix build on Visual Studio"
See merge request GNOME/gtk!5187
Matthias Clasen [Tue, 1 Nov 2022 00:35:15 +0000 (20:35 -0400)]
gdk: Bump the jpeg malloc limit
Bump the limit for memory use during jpeg loading
to 1GB, matching what gdk-pixbuf has for this.
Matthias Clasen [Tue, 1 Nov 2022 00:18:12 +0000 (20:18 -0400)]
Revert "modules: Fix build on Visual Studio"
This reverts commit
acd9c12667a021936b30e0fa8f43d3a8c7133cf7.
This commit breaks the build with GLib main on all platforms,
and defining _GLIB_EXTERN arguably invades the GLib namespace.
A different fix for msvc will have to be found.
Matthias Clasen [Mon, 31 Oct 2022 21:15:10 +0000 (21:15 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Be consistent in preconditions for async API
See merge request GNOME/gtk!5186
Matthias Clasen [Mon, 31 Oct 2022 19:33:48 +0000 (15:33 -0400)]
Be consistent in preconditions for async API
Do the same checks in all our finish functions.
Aleksandr Melman [Mon, 31 Oct 2022 12:30:25 +0000 (12:30 +0000)]
Update Russian translation
Matthias Clasen [Sun, 30 Oct 2022 23:22:19 +0000 (23:22 +0000)]
Merge branch 'ebassi/since-for-main' into 'main'
Ebassi/since for main
See merge request GNOME/gtk!5185
Emmanuele Bassi [Sun, 30 Oct 2022 20:08:39 +0000 (20:08 +0000)]
docs: Add missing Deprecated annotations
Emmanuele Bassi [Sun, 30 Oct 2022 20:08:21 +0000 (20:08 +0000)]
docs: Add missing Since annotations
Matthias Clasen [Sun, 30 Oct 2022 13:29:35 +0000 (13:29 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
alertdialog: Small refactoring
See merge request GNOME/gtk!5184
Matthias Clasen [Sun, 30 Oct 2022 12:42:08 +0000 (08:42 -0400)]
Add a test for POTFILES.in
Add a test that runs make-pot. This will only pass
if you've updated po/POTFILES.in and .skip after
moving source files around.
Unfortunately, it won't catch new source files that
are missing.
Matthias Clasen [Sat, 29 Oct 2022 23:17:37 +0000 (19:17 -0400)]
alertdialog: Small refactoring
Move the deprecated code out into its own function.
Piotr Drąg [Sun, 30 Oct 2022 11:34:21 +0000 (12:34 +0100)]
Update POTFILES.in
Matthias Clasen [Sat, 29 Oct 2022 20:39:18 +0000 (20:39 +0000)]
Merge branch 'deprecate-gtkdialog2' into 'main'
Deprecate GtkDialog
See merge request GNOME/gtk!5182
Matthias Clasen [Sat, 29 Oct 2022 17:53:47 +0000 (13:53 -0400)]
Deprecate GtkDialog
GtkDialog is too flexible in terms of UI (headerbars vs action bar,
etc), and has archaic APIs. It is time to retire it.
Matthias Clasen [Sat, 29 Oct 2022 19:22:50 +0000 (19:22 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Docs updates
See merge request GNOME/gtk!5180
Matthias Clasen [Sat, 29 Oct 2022 18:13:56 +0000 (14:13 -0400)]
Update docs
Mention new deprecations in the future migration guide.
Matthias Clasen [Sat, 29 Oct 2022 17:52:13 +0000 (17:52 +0000)]
Merge branch 'async-dialog-api2' into 'main'
Add new async APIs to replace chooser dialogs
See merge request GNOME/gtk!5174
Matthias Clasen [Sat, 29 Oct 2022 16:06:26 +0000 (12:06 -0400)]
NEWS: Updates
Matthias Clasen [Sat, 29 Oct 2022 15:31:35 +0000 (11:31 -0400)]
Deprecate GtkFileChooser and implementations
These are being replaced by GtkFileDialog.
This commit only moves the headers for GtkFileChooserWidget and
GtkFileChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFileChooserWindow.
Matthias Clasen [Sat, 29 Oct 2022 14:36:29 +0000 (10:36 -0400)]
Deprecate GtkMessageDialog
It is getting replaced by GtkAlertDialog
This commit only moves the header to deprecated/,
and keeps the implementation in gtk/, since it will
eventually be salvaged into a private, dialog-free
widget.
Matthias Clasen [Thu, 27 Oct 2022 02:58:21 +0000 (22:58 -0400)]
Deprecate GtkFontChooser and implementations
These are being replaced by GtkFontDialog
and GtkFontDialogButton
This commit only moves the headers for GtkFontChooserWidget and
GtkFontChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFontChooserWindow.
Matthias Clasen [Thu, 27 Oct 2022 01:52:06 +0000 (21:52 -0400)]
Deprecate GtkColorChooser and implementations
These are being replaced by GtkColorDialog
and GtkColorDialogButton.
This commit only moves the headers for GtkColorChooserWidget
and GtkColorChooserDialog to deprecated/, and keeps the
implementations in gtk/, since they will eventually be
salvaged into a private GtkColorChooserWindow.
Matthias Clasen [Sat, 29 Oct 2022 03:07:12 +0000 (23:07 -0400)]
examples: Port to async dialog API
Matthias Clasen [Sat, 29 Oct 2022 02:42:32 +0000 (22:42 -0400)]
print-editor: Port to async dialog API
Matthias Clasen [Sat, 29 Oct 2022 00:43:37 +0000 (20:43 -0400)]
node-editor: Port to async dialog API
Matthias Clasen [Sat, 29 Oct 2022 00:24:53 +0000 (20:24 -0400)]
constraint-editor: Port to async dialog API
Matthias Clasen [Sat, 29 Oct 2022 00:16:21 +0000 (20:16 -0400)]
widget-factory: Port to async dialog API
Matthias Clasen [Fri, 28 Oct 2022 15:38:57 +0000 (11:38 -0400)]
gtk-demo: Port to async dialog API
Matthias Clasen [Wed, 26 Oct 2022 17:38:22 +0000 (13:38 -0400)]
gtk-demo: Rewrite the pickers demo
This needs some more work. For now, just have
very simple test cases for some of the new async
APIs.
Matthias Clasen [Fri, 28 Oct 2022 14:00:37 +0000 (10:00 -0400)]
inspector: Port to async dialog API
Matthias Clasen [Fri, 28 Oct 2022 15:32:55 +0000 (11:32 -0400)]
gtk: Port to async dialog API
Matthias Clasen [Mon, 24 Oct 2022 10:54:01 +0000 (06:54 -0400)]
Add GtkFileDialog
Add an async API for picking a file, together with
a builder object for it. This is meant to replace direct
use of GtkFileChooserDialog.
Matthias Clasen [Tue, 25 Oct 2022 04:12:28 +0000 (00:12 -0400)]
Add GtkAlertDialog
This is replacing GtkMessageDialog with an
async API for showing informational messages.
Matthias Clasen [Tue, 25 Oct 2022 03:09:02 +0000 (23:09 -0400)]
Add GtkFontDialogButton
This is like GtkColorDialogButton, but for fonts.
Matthias Clasen [Mon, 24 Oct 2022 03:21:41 +0000 (23:21 -0400)]
Add GtkFontDialog
This is similar to GtkColorDialog, but for fonts.
Matthias Clasen [Mon, 24 Oct 2022 19:42:52 +0000 (15:42 -0400)]
Add GtkColorDialogButton
This is a new color button implementation
built around GtkColorDialog.
Matthias Clasen [Mon, 24 Oct 2022 19:41:43 +0000 (15:41 -0400)]
Add GtkColorDialog
Add an async API for picking a color, together with
a builder object for it. This is meant to replace direct
use of GtkColorChooserDialog.
Matthias Clasen [Thu, 27 Oct 2022 01:27:24 +0000 (21:27 -0400)]
Add GtkDialogError
This error domain will be used by async apis
in future commits.
Matthias Clasen [Sat, 29 Oct 2022 03:58:50 +0000 (23:58 -0400)]
fontchooser: Add a way to set a GtkFilter
We keep this private, since the chooser apis
are going away. This will be used in GtkFontDialog.
Matthias Clasen [Fri, 28 Oct 2022 19:24:23 +0000 (15:24 -0400)]
messagedialog: Cosmetics
Matthias Clasen [Sat, 29 Oct 2022 02:08:19 +0000 (02:08 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
ci: Try to fix the macos build
See merge request GNOME/gtk!5179
Matthias Clasen [Sat, 29 Oct 2022 01:38:14 +0000 (21:38 -0400)]
ci: Require macos to build again
Matthias Clasen [Sat, 29 Oct 2022 01:03:56 +0000 (21:03 -0400)]
ci: Try to fix the macos build
It seems that libjpeg-turbo first finds nasm,
and then doesn't find it. Turn off simd to keep
it from looking for it in the first place.
Matthias Clasen [Fri, 28 Oct 2022 23:41:03 +0000 (23:41 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
printeroptionwidget: Drop unused include
See merge request GNOME/gtk!5178
Matthias Clasen [Fri, 28 Oct 2022 15:03:36 +0000 (11:03 -0400)]
printeroptionwidget: Drop unused include
Matthias Clasen [Fri, 28 Oct 2022 16:20:18 +0000 (16:20 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk4-demo: Avoid a critical from a11y code
See merge request GNOME/gtk!5177
Matthias Clasen [Fri, 28 Oct 2022 15:59:35 +0000 (11:59 -0400)]
gtk4-demo: Avoid a critical from a11y code
Even though we want to be accessible,
we must not divide by zero.
Emmanuele Bassi [Thu, 27 Oct 2022 17:06:22 +0000 (17:06 +0000)]
Merge branch 'bilelmoussaoui/file-chooser-gi' into 'main'
g-i: Add missing since annotation
See merge request GNOME/gtk!5175
Bilal Elmoussaoui [Thu, 27 Oct 2022 15:38:14 +0000 (15:38 +0000)]
g-i: Add missing since annotation
Matthias Clasen [Wed, 26 Oct 2022 18:22:43 +0000 (18:22 +0000)]
Merge branch 'revert-
9c919ffa462dd4511da0bfd19d36d2e15c51651b-main' into 'main'
Revert "treepopover: Do not propagate natural width of content"
See merge request GNOME/gtk!5171
Mat [Wed, 26 Oct 2022 10:58:10 +0000 (13:58 +0300)]
Revert "treepopover: Do not propagate natural width of content"
This reverts commit
9c919ffa462dd4511da0bfd19d36d2e15c51651b.
Matthias Clasen [Tue, 25 Oct 2022 00:39:57 +0000 (00:39 +0000)]
Merge branch 'ebassi/glade-docs' into 'main'
docs: Remove mentions of Glade
See merge request GNOME/gtk!5168