Benjamin Otte
e2f730c0bf
filedialog: Add gtk_file_dialog_set_initial_file()
...
A shortcut for setting initial-folder and initial-name at the same time.
We can remove all arguments from the actual async calls this way.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8a2d35b9fb
filedialog: Add gtk_file_dialog_set_initial_name()
2022-12-24 07:56:57 -05:00
Benjamin Otte
26cec4a021
filedialog: Rename current-folder to initial-folder
...
It's not the current one - unlike in GtkFileChooser - because there are
no live updates. So we use a more descriptive name.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8d8e83afa2
fontdialog: Handle Escape better
...
Closing the dialog by hitting Escape should
have the same effect as clicking the cancel
button. Make it so.
2022-12-24 07:56:57 -05:00
Benjamin Otte
381bb84f3d
alertdialog: Bring the GError back
...
Make sure we have a GError, so that dismissing and cancelling can be
separated.
2022-12-24 07:56:57 -05:00
Benjamin Otte
977fedfdf1
dialog: GTK_DIALOG_ERROR_ABORTED => GTK_DIALOG_ERROR_CANCELLED
...
This is done via the GCancellable, so let's call it cancelling.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8957302bd4
dialog: GTK_DIALOG_ERROR_CANCELLED => GTK_DIALOG_ERROR_DISMISSED
...
The term "cancelling" is used with GCancellable, a user clicking a close
button is not that.
User input is usually described as "dismissing", so we use that term.
2022-12-24 07:56:57 -05:00
Benjamin Otte
8a7f739f9f
directorylist: Always add standard::name
...
glib can't figure out how to do that, so we need to do that ourselves.
2022-12-24 07:56:57 -05:00
Matthias Clasen
fce4810fb4
Merge branch 'ccook/doc-changes-1' into 'main'
...
Various spelling mistakes across a few domains that show up in documentation.
See merge request GNOME/gtk!5370
2022-12-24 12:52:19 +00:00
Matthias Clasen
d5ba76a82c
Merge branch 'wip/carlosg/autohide-checks-on-x11' into 'main'
...
gdk/surface: Handle clicks outside client surfaces
See merge request GNOME/gtk!5369
2022-12-24 12:50:09 +00:00
Cam Cook
1cd44ec7b7
Make stylecheck happy
2022-12-23 11:21:18 -05:00
Cam Cook
424d56830a
Merge remote-tracking branch 'upstream/main' into ccook/doc-changes-1
2022-12-23 11:02:18 -05:00
Cam Cook
7fc4d02851
Various spelling mistakes across a few domains that show up in documentation.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkAspectFrame](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkaspectframe.c#L457 ) | "requistion of the child" | "requisition of the child" |
| [GtkPaned](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkpaned.c#L2500 ) | "(attributes org.gtk.Method.set_propery=wide-handle)" | "(attributes org.gtk.Method.set_property=wide-handle)"|
| [GtkPopover](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkpopover.c#L2484 ) | "with gtk_popover_set_offset()." | "with [method@Gtk.Popover.set_offset()]." |
| [GtkPopoverMenu](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkpopovermenu.c#L859 ) | "with gtk_popover_menu_add_child()" | "with [method@Gtk.PopoverMenu.add_child()]" |
| [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L316 ) | "the queired range" | "the queried range" |
| [GtkScrolledWindow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkscrolledwindow.c#L76 ) | "automatically removed hen" | "automatically removed when"|
| [GtkSearchBar](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtksearchbar.c#L425 ) | "Connects the \`GtkEditable widget" | "Connects the `GtkEditable` widget" |
2022-12-23 11:01:07 -05:00
Carlos Garnacho
e7f798dcf5
gdk/surface: Handle clicks outside client surfaces
...
The owner_events=TRUE grab makes GDK on X11 see events happening
outside every client window as received on the grab window.
Additionally check that the pointer is inside the grab window
(i.e. it received GDK_CROSSING_NORMAL crossing events for the
core pointer) in order to handle clicks happening outside client
windows.
These new paths are expected to be a no-op on Wayland, and to
also work for touchscreen input on X11, due to emulated pointer
events.
2022-12-23 16:12:03 +01:00
Yuri Chornoivan
f6bd63c9ad
Update Ukrainian translation
2022-12-23 13:49:23 +00:00
Matthias Clasen
99320f99c3
Merge branch 'wip/ignazp/clipboard_eol' into 'main'
...
clipboard: improve EOL conversion of plain text
See merge request GNOME/gtk!5367
2022-12-22 13:31:07 +00:00
Ignazio Pillai
8ecb624934
clipboard: improve EOL conversion of plain text
...
Handle the case of clipboard text with CR line endings
2022-12-22 12:55:30 +01:00
Matthias Clasen
123eebb93d
Merge branch 'tweak-gtkfilechooser-button-tooltips' into 'main'
...
GtkFileChooser: Tweak Grid View & List View button tooltips
See merge request GNOME/gtk!5345
2022-12-21 12:39:53 +00:00
Emmanuele Bassi
b6596d5313
Merge branch 'remove_a11y_name_fallback' into 'main'
...
Don't present GTK class names to assistive technologies even as a fallback
Closes gnome-control-center#2244
See merge request GNOME/gtk!5365
2022-12-21 11:06:20 +00:00
Lukáš Tyrychtr
ffe333a21f
Don't present GTK class names to assistive technologies even as a fallback
...
A screen reader user is not interested in GTK internals, for example,
he does not care whether a button is an image button or not,
and a screen reader will report the fact that it is a button anyway.
Same applies for GtkEntry widgets, for example.
This actually is sufficient to fix gnome-control-center#2244.
And, according to the discussion in #5145 , it should be fine.
2022-12-21 11:35:46 +01:00
Matthias Clasen
257ca10eb1
Merge branch 'file-nullable' into 'main'
...
filelauncher: Make set_file argument nullable
See merge request GNOME/gtk!5357
2022-12-21 03:23:58 +00:00
Benjamin Otte
ae097d9674
Merge branch 'wip/antoniof/listbase-rubberband-better-fix' into 'main'
...
listbase: Cancel rubberband if not handling drag
See merge request GNOME/gtk!4831
2022-12-21 01:14:57 +00:00
Luca Bacci
1659c59410
Merge branch 'include-hicolor-index-theme-as-resource-rebased' into 'main'
...
Include hicolor index.theme as a resource (rebased)
Closes #5303
See merge request GNOME/gtk!5361
2022-12-20 16:08:11 +00:00
Luca Bacci
cf91e09d75
Include hicolor index.theme as a resource
...
index.theme file copied from upstream xdg/default-icon-theme
repository at tag 0.17:
https://gitlab.freedesktop.org/xdg/default-icon-theme/-/tree/0.17
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5303
2022-12-20 16:30:00 +01:00
Emmanuele Bassi
020636c49f
Merge branch 'revert-09691ead' into 'main'
...
Revert "Merge branch 'include-hicolor-index-theme-as-resource' into 'main'"
See merge request GNOME/gtk!5360
2022-12-20 15:22:28 +00:00
Luca Bacci
59df956f4f
Revert "Merge branch 'include-hicolor-index-theme-as-resource' into 'main'"
...
This reverts merge request !5341
2022-12-20 13:23:51 +00:00
Matthias Clasen
09691ead4c
Merge branch 'include-hicolor-index-theme-as-resource' into 'main'
...
Include hicolor index.theme as a resource
Closes #5303
See merge request GNOME/gtk!5341
2022-12-20 12:24:25 +00:00
Maximiliano Sandoval R
18a7f715c4
filelauncher: Make set_file argument nullable
2022-12-20 11:08:47 +01:00
Aleksandr Melman
d1347bbf33
Update Russian translation
2022-12-20 09:33:25 +00:00
Matthias Clasen
1b816c91d0
Merge branch 'fix-asan-more' into 'main'
...
ci: Disable f16c for asan
See merge request GNOME/gtk!5356
2022-12-20 06:04:46 +00:00
Matthias Clasen
5df0cbfa69
ci: Disable f16c for asan
...
It appears that f16c crashes asan instantly.
2022-12-20 00:43:59 -05:00
Matthias Clasen
47b5d0d546
Merge branch 'no-more-installed-tests' into 'main'
...
build: Drop the install-tests option
See merge request GNOME/gtk!5352
2022-12-20 05:33:56 +00:00
Matthias Clasen
4f65c121b7
ci: More verbose output from asan
2022-12-20 00:32:51 -05:00
Matthias Clasen
a0de7884cd
Merge branch 'another-flaky-reftest' into 'main'
...
ci: Declare a reftest as flaky
See merge request GNOME/gtk!5354
2022-12-20 05:07:51 +00:00
Matthias Clasen
b5b9cb189f
Merge branch 'macos-ci-is-iffy' into 'main'
...
ci: Mark macos build as allow-fail
See merge request GNOME/gtk!5355
2022-12-20 05:02:25 +00:00
Matthias Clasen
ee2152ff5c
ci: Mark macos build as allow-fail
...
It fails too often, and it never does us
any good.
2022-12-19 23:55:13 -05:00
Matthias Clasen
d8d5cace2a
ci: Declare a reftest as flaky
...
fixed-widget-stacking is failing frequently due
to a blinking cursor showing up in one of the
windows in ci.
2022-12-19 23:52:51 -05:00
Matthias Clasen
21e9a508bd
Merge branch 'fix-gtk_doc=true' into 'main'
...
meson: Require gi-docgen when gtk_doc is required
See merge request GNOME/gtk!5351
2022-12-20 04:17:22 +00:00
Matthias Clasen
3121f88265
build: Drop the install-tests option
...
We no longer use installed tests in CI,
so lets reap the benefit and simplify
our build setup for tests.
2022-12-19 23:12:47 -05:00
Matthias Clasen
b56224fc16
Merge branch 'fix-introspection-test-deps' into 'main'
...
build: Lift gir and build_gir to toplevel
See merge request GNOME/gtk!5350
2022-12-20 04:04:17 +00:00
Nirbheek Chauhan
4346a33a63
meson: Require gi-docgen when gtk_doc is required
...
Fixes build with only `-Dgtk_doc=true` without
`-Dintrospection=enabled`:
Program gi-docgen found: NO
Configuring gdk4.toml using configuration
docs/reference/gdk/meson.build:13:2: ERROR: Tried to use not-found external program in "command"
`introspection` is `auto` by default.
The rest of the docs build is only contingent on
`if get_option('gtk_doc')` so we should use the same restriction here.
We check for `build_gir` below already, and the gi-docgen subproject
itself does not need gobject-introspection so it's fine to do it like
this.
2022-12-20 09:27:48 +05:30
Matthias Clasen
596f59f471
tests: Maybe skip introspection tests
...
If we don't find the python gi module,
skip the introspection test.
2022-12-19 22:38:38 -05:00
Matthias Clasen
d758754f20
build: Lift gir and build_gir to toplevel
...
build_gir is used in multiple subdirectories,
so it is a bit nasty that it is defined in
one too.
2022-12-19 22:38:38 -05:00
Emmanuele Bassi
e049b6992d
Merge branch 'ebassi/ci-image-for-main' into 'main'
...
Various CI fixes
See merge request GNOME/gtk!5349
2022-12-20 03:37:43 +00:00
Emmanuele Bassi
ca0bae2196
ci: Don't cache subprojects
...
We're downloading them anyway.
2022-12-20 02:41:52 +00:00
Matthias Clasen
a920c0d2de
Merge branch 'wip/gtk4-fix-delete-surrounding' into 'main'
...
gtkimcontextwayland: Convert byte based offset to char based offset in delete_surrounding_text
See merge request GNOME/gtk!5254
2022-12-20 02:40:14 +00:00
Emmanuele Bassi
0db3666d3c
tests: Add shorthand-entry-border to the flaky suite
...
This test fairly consistently times out when running in a contended CI.
2022-12-20 02:18:25 +00:00
Emmanuele Bassi
2b808bf849
ci: Remove installed-tests job
...
Installed tests require access to the system prefix, and thus a
system-wide installation of Meson, which we don't have.
We're going to restore this job at a later date.
2022-12-20 01:56:28 +00:00
Emmanuele Bassi
737342ef23
ci: Don't use builddep to install Wayland build dependencies
...
We don't want to bring undefined dependencies into the image.
Additionally, Wayland depends on Meson, and we don't want to use
Fedora's version of Meson.
2022-12-20 01:54:57 +00:00
Emmanuele Bassi
cf709473f7
ci: Update the Fedora image
2022-12-20 01:54:57 +00:00