gtk4.git
2 years agoci: Update the Fedora image
Emmanuele Bassi [Tue, 20 Dec 2022 01:34:45 +0000 (01:34 +0000)]
ci: Update the Fedora image

2 years agoMerge branch 'meson-subproject-usage-fixes' into 'main'
Matthias Clasen [Tue, 20 Dec 2022 01:50:47 +0000 (01:50 +0000)]
Merge branch 'meson-subproject-usage-fixes' into 'main'

Various fixes for using gtk4 as a meson subproject

See merge request GNOME/gtk!5347

2 years agoci: Always update subprojects to latest revision
Nirbheek Chauhan [Mon, 19 Dec 2022 03:38:28 +0000 (09:08 +0530)]
ci: Always update subprojects to latest revision

Otherwise we're not actually updating anything. `meson subprojects
download` will skip subprojects that already exist.

3 years agoci: Fix fedora-mingw64 job
Nirbheek Chauhan [Sun, 18 Dec 2022 05:37:43 +0000 (11:07 +0530)]
ci: Fix fedora-mingw64 job

3 years agoci: Update meson version used for vs2017 job
Nirbheek Chauhan [Sun, 18 Dec 2022 05:49:14 +0000 (11:19 +0530)]
ci: Update meson version used for vs2017 job

3 years agomeson: Fix find_program and subproject usage
Nirbheek Chauhan [Sun, 18 Dec 2022 04:41:54 +0000 (10:11 +0530)]
meson: Fix find_program and subproject usage

Dummy dependencies are not required to execute a subproject
automatically for providing a program, nor do you need to explicitly
call subproject() to do that.

A `[provide]` section in the wrap file is enough.

3 years agomeson: Stop using fallback: kwarg for deps that don't need it
Nirbheek Chauhan [Sun, 18 Dec 2022 01:30:44 +0000 (07:00 +0530)]
meson: Stop using fallback: kwarg for deps that don't need it

Subprojects that use meson.override_dependency() do not require the
caller to provide the dependency variable name inside the subproject.

We also don't want to provide the *subproject* name, because the
subproject name can be `pango-1.50.12` instead of `pango` when using
wrap-file to download the tarball instead of using wrap-git. This
causes the pango subproject to be executed twice when using gtk as
a subproject inside gstreamer (which uses pango-1.50.12 as
a wrap-file).

All the dependencies we use can be switched in this way, but the
remaining ones need to be changed to use meson.override_dependency()
first.

3 years agomeson: Update gitlab.gnome.org SSH server names
Nirbheek Chauhan [Sun, 18 Dec 2022 01:29:33 +0000 (06:59 +0530)]
meson: Update gitlab.gnome.org SSH server names

Also switch the wrap file style to use spaces around `=` which is the
canonical style used by wrapdb now.

3 years agomeson: Remove redundant, duplicate, harfbuzz check
Nirbheek Chauhan [Sun, 18 Dec 2022 01:28:02 +0000 (06:58 +0530)]
meson: Remove redundant, duplicate, harfbuzz check

3 years agomeson: Always look for both cmake and pkgconfig names
Nirbheek Chauhan [Sun, 18 Dec 2022 01:24:44 +0000 (06:54 +0530)]
meson: Always look for both cmake and pkgconfig names

The is_msvc_like change is wrong; it used a false correlation between
"compiler being used" and "dependency method" by saying that on
Windows, when building with MSVC, you will only use CMake to find png,
jpeg, tiff.

You can use pkgconfig to find these deps on Windows with MSVC -- when
the deps have been built with Autotools or Meson (with MSVC). You can
also find these deps using CMake on other platforms like macOS or
Linux.

The solution is simple: just search for both names on all platforms,
and just search for the pkgconfig name first.

3 years agoMerge branch 'nirbheek/fix-build-with-latest-glib' into 'main'
Matthias Clasen [Sun, 18 Dec 2022 16:07:11 +0000 (16:07 +0000)]
Merge branch 'nirbheek/fix-build-with-latest-glib' into 'main'

gdk: Fix g_set_str version check

See merge request GNOME/gtk!5348

3 years agogdk: Fix g_set_str version check
Nirbheek Chauhan [Sun, 18 Dec 2022 05:42:34 +0000 (11:12 +0530)]
gdk: Fix g_set_str version check

The function was added to glib in 2.75.1. This fixes gtk's build with
the glib main branch.

3 years agoMerge branch 'wip/cdavis/file-dialog-accept-label' into 'main'
Matthias Clasen [Fri, 16 Dec 2022 17:04:00 +0000 (17:04 +0000)]
Merge branch 'wip/cdavis/file-dialog-accept-label' into 'main'

gtkfiledialog: Allow devs to set custom accept labels

Closes #5421

See merge request GNOME/gtk!5339

3 years agogtkfiledialog: Allow devs to set custom accept labels
Christopher Davis [Fri, 16 Dec 2022 02:35:56 +0000 (21:35 -0500)]
gtkfiledialog: Allow devs to set custom accept labels

Accept labels can be used for additional context regarding
the purpose of a file. The old GtkFileChooser APIs allowed
developers to set it, but the initial FileDialog API was missing
this functionality.

This commit adds `gtk_file_dialog_set_accept_label ()` to
restore the missing functionality.

Closes https://gitlab.gnome.org/GNOME/gtk/-/issues/5421

3 years agogdkprivate: Add compatibility shim for g_set_str()
Christopher Davis [Fri, 16 Dec 2022 04:08:35 +0000 (23:08 -0500)]
gdkprivate: Add compatibility shim for g_set_str()

Allows us to make use of this API without depending
on bleeding-edge glib

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Fri, 16 Dec 2022 12:30:26 +0000 (12:30 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Silence a compiler warning

See merge request GNOME/gtk!5340

3 years agoSilence a compiler warning
Matthias Clasen [Fri, 16 Dec 2022 05:12:44 +0000 (00:12 -0500)]
Silence a compiler warning

3 years agoMerge branch 'ebassi/ci-image-for-main' into 'main'
Matthias Clasen [Fri, 16 Dec 2022 03:55:18 +0000 (03:55 +0000)]
Merge branch 'ebassi/ci-image-for-main' into 'main'

ci: Install Meson in the build jobs

See merge request GNOME/gtk!5335

3 years agoMerge branch 'no-portals' into 'main'
Matthias Clasen [Thu, 15 Dec 2022 16:27:33 +0000 (16:27 +0000)]
Merge branch 'no-portals' into 'main'

Add GDK_DEBUG=no-portals

Closes #5441

See merge request GNOME/gtk!5336

3 years agoMerge branch 'deprecate-show-hide' into 'main'
Matthias Clasen [Thu, 15 Dec 2022 14:53:48 +0000 (14:53 +0000)]
Merge branch 'deprecate-show-hide' into 'main'

Deprecate gtk_widget_show/hide

See merge request GNOME/gtk!5278

3 years agoMerge branch 'check-button-radio-docs' into 'main'
Matthias Clasen [Thu, 15 Dec 2022 00:25:08 +0000 (00:25 +0000)]
Merge branch 'check-button-radio-docs' into 'main'

gtkcheckbutton: Document how to keep track of changes for radio buttons

See merge request GNOME/gtk!5328

3 years agoMerge branch 'wip/corey/listbase-focus' into 'main'
Benjamin Otte [Wed, 14 Dec 2022 19:06:57 +0000 (19:06 +0000)]
Merge branch 'wip/corey/listbase-focus' into 'main'

listbase: Use set_focus_child properly

Closes #5433 and #5432

See merge request GNOME/gtk!5169

3 years agoci: Install tests in a separate prefix
Emmanuele Bassi [Wed, 14 Dec 2022 19:00:32 +0000 (19:00 +0000)]
ci: Install tests in a separate prefix

Avoid using `sudo` in the installed-tests CI job, since we're installing
Meson as the current user.

3 years agogtkcheckbutton: Document how to keep track of changes for radio buttons
Pablo Correa Gómez [Tue, 13 Dec 2022 22:58:55 +0000 (23:58 +0100)]
gtkcheckbutton: Document how to keep track of changes for radio buttons

3 years agoAdd GDK_DEBUG=no-portals
Matthias Clasen [Wed, 14 Dec 2022 18:49:30 +0000 (13:49 -0500)]
Add GDK_DEBUG=no-portals

Fixes: #5441
3 years agoci: Redefine PATH
Emmanuele Bassi [Wed, 14 Dec 2022 18:35:52 +0000 (18:35 +0000)]
ci: Redefine PATH

3 years agolistbase: Use set_focus_child properly
Corey Berla [Mon, 24 Oct 2022 22:53:29 +0000 (15:53 -0700)]
listbase: Use set_focus_child properly

The EventControllerFocus on the list item, updates the list base focus
tracker and scrolled to position any time the list item enters focus.
This works when interacting within a single window, but has unexpected
results when changing focus between multiple windows.

Instead of using the focus controller workaround, just make
gtk_list_base_update_focus_tracker the set_focus_child vfunc

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5433
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5432
3 years agolistbase: Split scroll_to_item for reuse
Corey Berla [Wed, 14 Dec 2022 17:51:22 +0000 (07:51 -1000)]
listbase: Split scroll_to_item for reuse

3 years agoci: Consistently use meson subcommands
Emmanuele Bassi [Wed, 14 Dec 2022 17:44:27 +0000 (17:44 +0000)]
ci: Consistently use meson subcommands

meson setup:
  configuration
meson compile:
  compilation
meson install
  installation

Do not use ninja directly, and do not use `meson` as a synonym for
`meson setup`.

3 years agobuild: Add known to be failing gsk comparison tests
Emmanuele Bassi [Wed, 14 Dec 2022 17:31:50 +0000 (17:31 +0000)]
build: Add known to be failing gsk comparison tests

The unaligned-offscreen and upside-down-label-3d tests are failing after
upgrading our CI images, seemingly because of some font rendering issue
that is hard to track. Let's use the "failing" testsuite mechanism that
we also use for the reftests.

3 years agoci: Install Meson in the build jobs
Emmanuele Bassi [Wed, 14 Dec 2022 17:09:34 +0000 (17:09 +0000)]
ci: Install Meson in the build jobs

We use the latest 0.64 even if we depend on 0.60 because of fixes in the
subproject command.

3 years agoMerge branch 'ebassi/gidocgen-update' into 'main'
Matthias Clasen [Wed, 14 Dec 2022 16:24:48 +0000 (16:24 +0000)]
Merge branch 'ebassi/gidocgen-update' into 'main'

ci: Update the gi-docgen dependencies

See merge request GNOME/gtk!5263

3 years agoMerge branch 'gbsneto/filechooser-grid-view' into 'main'
Georges Basile Stavracas Neto [Wed, 14 Dec 2022 14:47:21 +0000 (14:47 +0000)]
Merge branch 'gbsneto/filechooser-grid-view' into 'main'

Add GtkGridView to the filechooser

Closes #233

See merge request GNOME/gtk!5163

3 years agoMerge branch 'appdialog' into 'main'
Matthias Clasen [Wed, 14 Dec 2022 13:24:20 +0000 (13:24 +0000)]
Merge branch 'appdialog' into 'main'

Add GtkAppDialog

See merge request GNOME/gtk!5284

3 years agoMerge branch 'gdk-win32-fix-native-decoration-resize' into 'main'
Luca Bacci [Wed, 14 Dec 2022 13:13:14 +0000 (13:13 +0000)]
Merge branch 'gdk-win32-fix-native-decoration-resize' into 'main'

GdkWin32: Fix resizes with native decorations

Closes #5142, #5088, and #5090

See merge request GNOME/gtk!5096

3 years agoUpdate Persian translation
Danial Behzadi [Wed, 14 Dec 2022 12:33:15 +0000 (12:33 +0000)]
Update Persian translation

(cherry picked from commit aabae9248269a01f105378da60ac7d3258460c88)

3 years agoMerge branch 'gdk-win32-modal-handling' into 'main'
Luca Bacci [Wed, 14 Dec 2022 10:08:42 +0000 (10:08 +0000)]
Merge branch 'gdk-win32-modal-handling' into 'main'

GdkWin32: Do not use MA_NOACTIVATEANDEAT

Closes #5297 and #5326

See merge request GNOME/gtk!5208

3 years agoMerge branch 'wip/otte/for-5422' into 'main'
Corey Berla [Wed, 14 Dec 2022 01:56:04 +0000 (01:56 +0000)]
Merge branch 'wip/otte/for-5422' into 'main'

contentserializer: Serialize to file:// if possible

Closes #5422

See merge request GNOME/gtk!5330

3 years agocontentserializer: Serialize to file:// if possible
Benjamin Otte [Wed, 14 Dec 2022 01:26:49 +0000 (02:26 +0100)]
contentserializer: Serialize to file:// if possible

Try to get a native file:// URI instead of any other GVFS
scheme, for interoperability with apps only handling file:// URIs.

This is what GTK3 Nautilus and Thunar do, so apps should be tuned
for this behavior.

See also https://bugzilla.xfce.org/show_bug.cgi?id=13845

Fixes: #5422
3 years agoMerge branch 'stylanydev' into 'main'
Matthias Clasen [Tue, 13 Dec 2022 19:34:12 +0000 (19:34 +0000)]
Merge branch 'stylanydev' into 'main'

Gtk.GestureStylus: implement `anydev` property

See merge request GNOME/gtk!4707

3 years agoDeprecate gtk_widget_show/hide
Matthias Clasen [Mon, 28 Nov 2022 02:16:42 +0000 (21:16 -0500)]
Deprecate gtk_widget_show/hide

gtk_widget_set_visible does the same job.

3 years agotests: Stop using gtk_widget_show/hide
Matthias Clasen [Tue, 29 Nov 2022 12:06:33 +0000 (07:06 -0500)]
tests: Stop using gtk_widget_show/hide

3 years agoexamples: Stop using gtk_widget_show/hide
Matthias Clasen [Tue, 29 Nov 2022 11:35:40 +0000 (06:35 -0500)]
examples: Stop using gtk_widget_show/hide

3 years agotestsuite: Stop using gtk_widget_show/hide
Matthias Clasen [Tue, 29 Nov 2022 12:07:01 +0000 (07:07 -0500)]
testsuite: Stop using gtk_widget_show/hide

3 years agopathbar: Reimplement using GtkBox
Georges Basile Stavracas Neto [Thu, 24 Nov 2022 19:17:30 +0000 (16:17 -0300)]
pathbar: Reimplement using GtkBox

The path bar does a lot of manual management of buttons, mostly to
be able to show navigation arrows when there's not enough space to
show the full path.

Since the GTK4 migration, this is slightly broken in some cases, due
to the 'need_sliders' variable being always set to TRUE. Furthermore,
after the introduction of the Recent button as a special cased fake
root, the allocation of the buttons is generating warnings.

Reimplement the path bar as a GtkBox, inside a GtkScrolledWindow.
This mimics what Nautilus does, and allows us to make navigation more
predictable, and remove most of the complexity from GtkPathBar. It
also prevents it from generating allocation warnings.

The path bar itself now doesn't override GtkWidget.measure nor
GtkWidget.allocate; instead, it delegates layout to the GtkBinLayout
layout manager.

CSS is adjusted to account for the changed hierarchy of buttons.

3 years agofilechooserwidget: Improve grid cell visuals
Georges Basile Stavracas Neto [Wed, 26 Oct 2022 20:48:00 +0000 (17:48 -0300)]
filechooserwidget: Improve grid cell visuals

Use a GtkLabel instead of a GtkInscription to get filenames better
displayed within the available space.

3 years agofilechooserwidget: Don't check operation mode for tooltip
Georges Basile Stavracas Neto [Wed, 26 Oct 2022 20:38:07 +0000 (17:38 -0300)]
filechooserwidget: Don't check operation mode for tooltip

There's no way this could ever have been correct. We always want to
show the tooltip, and it's basically always available.

3 years agofilechooser: Add hover styles to the gridview children
Sam Hewitt [Wed, 26 Oct 2022 19:07:41 +0000 (16:37 -0230)]
filechooser: Add hover styles to the gridview children

3 years agofilechooserwidget: Add toggle view button clone in search
Georges Basile Stavracas Neto [Wed, 26 Oct 2022 18:01:20 +0000 (15:01 -0300)]
filechooserwidget: Add toggle view button clone in search

It's positioned and looks exactly like the browse_toggle_view_button,
but due to the way things are organized, we cannot simply reuse that
button.

Add a clone of browse_toggle_view_button in the search entry page of
the toolbar stack. Make it toggle the same action as of the original
button, and bind the icon name and tooltip texts to it too.

3 years agofilechooserwidget: Show pathbar in recent mode
Georges Basile Stavracas Neto [Wed, 26 Oct 2022 16:40:27 +0000 (13:40 -0300)]
filechooserwidget: Show pathbar in recent mode

As per design direction, show the pathbar in recent mode.

3 years agopathbar: Special case recent button
Georges Basile Stavracas Neto [Wed, 26 Oct 2022 16:38:23 +0000 (13:38 -0300)]
pathbar: Special case recent button

Soon pathbar will be shown on the Recent mode, with a static
path pointing to, well, Recent, so special case it in the
GtkPathBar with a static icon.

3 years agofilechooserwidget: Hide ColumnView settings in GridView
Corey Berla [Sun, 23 Oct 2022 18:03:44 +0000 (11:03 -0700)]
filechooserwidget: Hide ColumnView settings in GridView

3 years agofilechooser: Save and restore view type
Matthias Clasen [Sun, 23 Oct 2022 00:12:20 +0000 (20:12 -0400)]
filechooser: Save and restore view type

With this, the filechooser comes up with the
same view (grid or list) that it had the last
time you used it.

3 years agofilechooserwidget: Rename callback
Georges Basile Stavracas Neto [Sat, 22 Oct 2022 15:49:31 +0000 (12:49 -0300)]
filechooserwidget: Rename callback

It's shared between both column and grid views now.

3 years agofilechooserwidget: Implement 'keynav-failed' for grid view
Georges Basile Stavracas Neto [Sat, 22 Oct 2022 15:42:09 +0000 (12:42 -0300)]
filechooserwidget: Implement 'keynav-failed' for grid view

It's exactly the same as of the column view. Since we're sharing
the callback now, rename it to browse_files_view_keynav_failed_cb.

3 years agofilechooserwidget: Use correct view in various places
Georges Basile Stavracas Neto [Sat, 22 Oct 2022 15:39:40 +0000 (12:39 -0300)]
filechooserwidget: Use correct view in various places

Most of the pointer comparisons against 'browse_files_column_view'
should actually be performed against the current view widget. As
it turns out, it weren't that many places after all.

3 years agostyle: Improve filechooser grid view slightly
Georges Basile Stavracas Neto [Sat, 22 Oct 2022 13:07:28 +0000 (10:07 -0300)]
style: Improve filechooser grid view slightly

3 years agofilechooserwidget: Add a grid view
Georges Basile Stavracas Neto [Sat, 22 Oct 2022 12:51:36 +0000 (09:51 -0300)]
filechooserwidget: Add a grid view

Add a grid view outside of the widgetry tree. The grid view mimics
the column view using bindings, so we only need to manage the column
view.

Also add a button in the path bar section to toggle the view. This
is handled as a new 'toggle-view' action in the file chooser.

The way switching between views currently work is by setting either
the column or grid view as the child of the GtkScrolledWindow. This
has the benefit of unmapping the unused view, which is nice and can
avoid some tricky situations with thumbnails.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/233

3 years agofilethumbnail: Add 'icon-size' property
Georges Basile Stavracas Neto [Sat, 22 Oct 2022 12:44:33 +0000 (09:44 -0300)]
filethumbnail: Add 'icon-size' property

This will be used by future commits so that we can reuse this widget
in the file chooser grid view.

3 years agoMerge branch 'harfbuzz-dep' into 'main'
Matthias Clasen [Tue, 13 Dec 2022 16:15:43 +0000 (16:15 +0000)]
Merge branch 'harfbuzz-dep' into 'main'

build: Use a stable harfbuzz

See merge request GNOME/gtk!5327

3 years agobuild: Use a stable harfbuzz
Matthias Clasen [Tue, 13 Dec 2022 14:29:16 +0000 (09:29 -0500)]
build: Use a stable harfbuzz

We don't need the latest harfbuzz.
Stick to 4.0 for now.

3 years agogtk-demo: Update the pickers demo
Matthias Clasen [Tue, 13 Dec 2022 12:49:10 +0000 (07:49 -0500)]
gtk-demo: Update the pickers demo

3 years agogtk: Update all callers
Matthias Clasen [Tue, 13 Dec 2022 12:49:02 +0000 (07:49 -0500)]
gtk: Update all callers

3 years agofilelauncher: Add a file property
Matthias Clasen [Tue, 13 Dec 2022 12:48:35 +0000 (07:48 -0500)]
filelauncher: Add a file property

3 years agoMerge branch 'docs/default-args' into 'main'
Matthias Clasen [Tue, 13 Dec 2022 12:17:07 +0000 (12:17 +0000)]
Merge branch 'docs/default-args' into 'main'

docs: Emphasize requirement to provide filenames as arguments

See merge request GNOME/gtk!5322

3 years agodocs: Emphasize requirement to give filenames as arguments
andy5995 [Sun, 11 Dec 2022 09:18:53 +0000 (03:18 -0600)]
docs: Emphasize requirement to give filenames as arguments

(related to #5430)

3 years agoMerge branch 'sunflowerskater-main-patch-64457' into 'main'
Matthias Clasen [Mon, 12 Dec 2022 16:48:56 +0000 (16:48 +0000)]
Merge branch 'sunflowerskater-main-patch-64457' into 'main'

appchooser: Rename "application" to "app"

See merge request GNOME/gtk!5323

3 years agoappchooserbutton: Rename "application" to "app"
sunflowerskater [Sun, 11 Dec 2022 22:20:12 +0000 (19:20 -0300)]
appchooserbutton: Rename "application" to "app"

This change is a part of an initiative to use the word "app" instead of "application" in the UI:

Teams/Design/initiatives#123

3 years agoappchooserwidget: Rename "application" to "app"
sunflowerskater [Sun, 11 Dec 2022 22:13:51 +0000 (19:13 -0300)]
appchooserwidget: Rename "application" to "app"

This change is a part of an initiative to use the word "app" instead of "application" in the UI:

https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123

3 years agoappchooser: Rename "application" to "app"
sunflowerskater [Sun, 11 Dec 2022 20:05:54 +0000 (20:05 +0000)]
appchooser: Rename "application" to "app"

This change is a part of an initiative to use the word "app" instead of "application" in the UI: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123

3 years agoMerge branch 'popover-present-docs' into 'main'
Matthias Clasen [Sun, 11 Dec 2022 04:03:10 +0000 (04:03 +0000)]
Merge branch 'popover-present-docs' into 'main'

popover: Clarify docs

See merge request GNOME/gtk!5318

3 years agoMerge branch 'ebassi/image-dispose' into 'main'
Matthias Clasen [Sun, 11 Dec 2022 04:02:49 +0000 (04:02 +0000)]
Merge branch 'ebassi/image-dispose' into 'main'

Do not change the notification queue inside finalization

Closes #5420

See merge request GNOME/gtk!5321

3 years agoMerge branch 'builder-scope-note' into 'main'
Matthias Clasen [Sun, 11 Dec 2022 01:07:21 +0000 (01:07 +0000)]
Merge branch 'builder-scope-note' into 'main'

builderscope: Add a note for implementors

See merge request GNOME/gtk!5317

3 years agoDo not change the notification queue inside finalization
Emmanuele Bassi [Sun, 11 Dec 2022 00:36:03 +0000 (00:36 +0000)]
Do not change the notification queue inside finalization

Notifications are not going to be emitted during the finalization, and
GObject will warn if you try to acquire and release a reference to the
notification queue when the reference count of an object has reached
zero.

Fixes: #5420
3 years agobuilderscope: Add a note for implementors
Matthias Clasen [Sat, 10 Dec 2022 21:02:07 +0000 (16:02 -0500)]
builderscope: Add a note for implementors

Recommend that scope implementations should fall
back to or derive from GtkBuilderCScope in order
to not lose GTK's type-guessing machinery.

Related: #5398

3 years agopopover: Clarify docs
Matthias Clasen [Sat, 10 Dec 2022 21:36:00 +0000 (16:36 -0500)]
popover: Clarify docs

gtk_popover_present() is a misleadingly named
function, so at least give it clear docs that
tell people to use gtk_popover_popup() instead.

3 years agoMerge branch 'docs/deprecated-G_APPLICATION_FLAGS_NONE' into 'main'
Matthias Clasen [Sat, 10 Dec 2022 20:53:09 +0000 (20:53 +0000)]
Merge branch 'docs/deprecated-G_APPLICATION_FLAGS_NONE' into 'main'

docs: Update deprecated G_APPLICATION_FLAGS_NONE in examples

See merge request GNOME/gtk!5315

3 years agodocs: Update deprecated G_APPLICATION_FLAGS_NONE
andy5995 [Sat, 10 Dec 2022 07:12:13 +0000 (01:12 -0600)]
docs: Update deprecated G_APPLICATION_FLAGS_NONE

3 years agoMerge branch 'deprecate-keys-changed' into 'main'
Matthias Clasen [Fri, 9 Dec 2022 19:03:01 +0000 (19:03 +0000)]
Merge branch 'deprecate-keys-changed' into 'main'

treeview: Drop a few unused variables

See merge request GNOME/gtk!5314

3 years agoDeprecate gtk_show_uri
Matthias Clasen [Fri, 9 Dec 2022 16:11:04 +0000 (11:11 -0500)]
Deprecate gtk_show_uri

This API has been superseded by GtkFileLauncher.

3 years agogtk: Stop using gtk_show_uri
Matthias Clasen [Tue, 29 Nov 2022 19:11:26 +0000 (14:11 -0500)]
gtk: Stop using gtk_show_uri

Replace all uses of gtk_show_uri
with GtkFileLauncher.

3 years agogtk-demo: Add a GtkFileLauncher demo
Matthias Clasen [Tue, 29 Nov 2022 18:04:56 +0000 (13:04 -0500)]
gtk-demo: Add a GtkFileLauncher demo

Replace the deprecated app chooser button by a
button that calls gtk_file_launcher_launch.

3 years agoAdd GtkFileLauncher
Matthias Clasen [Sun, 27 Nov 2022 02:26:47 +0000 (21:26 -0500)]
Add GtkFileLauncher

This is a replacement for gtk_show_uri_full,
which can open a GFile in an application, or
open its containing folder in a file manager.

3 years agowindow: Deprecate the ::keys-changed signal
Matthias Clasen [Fri, 9 Dec 2022 18:14:06 +0000 (13:14 -0500)]
window: Deprecate the ::keys-changed signal

3 years agotests: Silence a compiler warning
Matthias Clasen [Fri, 9 Dec 2022 18:13:24 +0000 (13:13 -0500)]
tests: Silence a compiler warning

3 years agotreeview: Drop a few unused variables
Matthias Clasen [Fri, 9 Dec 2022 18:12:47 +0000 (13:12 -0500)]
treeview: Drop a few unused variables

Compilers get pickier every year...

3 years agocomposetable: Drop an unused variable
Matthias Clasen [Fri, 9 Dec 2022 18:09:34 +0000 (13:09 -0500)]
composetable: Drop an unused variable

3 years agoAdd Interlingue translation
Olga Smirnova [Fri, 9 Dec 2022 17:24:41 +0000 (17:24 +0000)]
Add Interlingue translation

3 years agoMerge branch 'dialog-fixes' into 'main'
Matthias Clasen [Fri, 9 Dec 2022 16:22:00 +0000 (16:22 +0000)]
Merge branch 'dialog-fixes' into 'main'

filechooserwidget: Fixes

See merge request GNOME/gtk!5311

3 years agoopenuriportal: Better error handling
Matthias Clasen [Tue, 29 Nov 2022 23:45:22 +0000 (18:45 -0500)]
openuriportal: Better error handling

Nested async calls are always a challenge.

Hopefully, things are straightened out now,
and we report GTK_DIALOG_ERROR errors for
the cases we care about.

3 years agoopenuriportal: Add a check function
Matthias Clasen [Tue, 29 Nov 2022 18:03:34 +0000 (13:03 -0500)]
openuriportal: Add a check function

Add private API to check whether the portal
is available.

3 years agoopenuriportal: Support OpenDirectory
Matthias Clasen [Tue, 29 Nov 2022 15:51:55 +0000 (10:51 -0500)]
openuriportal: Support OpenDirectory

This required an extra argument. Update all callers.

3 years agoopenuriportal: Cosmetics
Matthias Clasen [Tue, 29 Nov 2022 18:04:10 +0000 (13:04 -0500)]
openuriportal: Cosmetics

There were some copy-paste errors.

3 years agofontdialog: Improve docs
Matthias Clasen [Wed, 30 Nov 2022 00:59:05 +0000 (19:59 -0500)]
fontdialog: Improve docs

Be more specific about possible errors.

3 years agocolordialog: Improve the docs
Matthias Clasen [Wed, 30 Nov 2022 00:58:44 +0000 (19:58 -0500)]
colordialog: Improve the docs

Be more specific about possible errors.

3 years agofontdialog: Don't forget to propagate errors
Matthias Clasen [Wed, 30 Nov 2022 00:41:06 +0000 (19:41 -0500)]
fontdialog: Don't forget to propagate errors

Oops.

3 years agofontdialogbutton: Survive window closing
Matthias Clasen [Wed, 30 Nov 2022 00:27:02 +0000 (19:27 -0500)]
fontdialogbutton: Survive window closing

If the parent window of the button gets destroyed
while the dialog is open, we cancel the async op,
but we need to be a little more careful about not
stepping on glass.

3 years agocolordialogbutton: Survive window closing
Matthias Clasen [Wed, 30 Nov 2022 00:25:54 +0000 (19:25 -0500)]
colordialogbutton: Survive window closing

If the parent window of the button gets destroyed
while the dialog is open, we cancel the async op,
but we need to be a little more careful about not
stepping on glass.

3 years agofontdialog: Unset check cancellable
Matthias Clasen [Wed, 30 Nov 2022 00:25:40 +0000 (19:25 -0500)]
fontdialog: Unset check cancellable

3 years agocolordialog: Unset check cancellable
Matthias Clasen [Wed, 30 Nov 2022 00:25:12 +0000 (19:25 -0500)]
colordialog: Unset check cancellable