Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 16d8fd7

Browse files
Merge pull request #795 from sdroege/0.16-backports
0.16 backports
2 parents 2813c54 + c04c1fd commit 16d8fd7

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

.github/workflows/windows.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010

1111
gvsbuild:
1212
name: build GTK binaries with gvsbuild
13-
runs-on: windows-2019
13+
runs-on: windows-2022
1414

1515
env:
1616
# git revision of gvsbuild we use for to build GTK and the other dependencies
17-
gvsbuildref: 861244f84a04da49172c23646d9e23885094cab4
17+
gvsbuildref: 078140d0b7dcfd6147b3063114fb38365b7ad5a1
1818

1919
# bump this number if you want to force a rebuild of gvsbuild with the same revision
2020
gvsbuildupdate: 1
@@ -45,17 +45,25 @@ jobs:
4545
# Temporarily move the preinstalled git, it causes errors related to cygwin.
4646
- name: (GTK binaries) move git binary
4747
if: steps.cache.outputs.cache-hit != 'true'
48-
run: move "C:\Program Files\Git\usr\bin" "C:\Program Files\Git\usr\notbin"
48+
run: |
49+
move "C:\Program Files\Git\usr\bin" "C:\Program Files\Git\usr\notbin"
50+
move "C:\Program Files\Git\bin" "C:\Program Files\Git\notbin"
4951
shell: cmd
5052

51-
- name: (GTK binaries) run gvsbuild
53+
- name: (GTK binaries) install gvsbuild
5254
if: steps.cache.outputs.cache-hit != 'true'
5355
working-directory: gvsbuild
54-
run: python .\build.py build -p=x64 --vs-ver=16 --msys-dir=C:\msys64 gtk3 graphene
56+
run: python -m pip install .
57+
58+
- name: (GTK binaries) run gvsbuild
59+
if: steps.cache.outputs.cache-hit != 'true'
60+
run: gvsbuild build --platform=x64 --vs-ver=17 --msys-dir=C:\msys64 gtk3 graphene
5561

5662
- name: (GTK binaries) restore git binary
5763
if: steps.cache.outputs.cache-hit != 'true'
58-
run: move "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin"
64+
run: |
65+
move "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin"
66+
move "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin"
5967
shell: cmd
6068

6169
- name: (GTK binaries) output cache key
@@ -64,7 +72,7 @@ jobs:
6472

6573
build:
6674
name: build gtk-rs on Windows
67-
runs-on: windows-2019
75+
runs-on: windows-2022
6876
needs: gvsbuild
6977

7078
strategy:

gdk/Gir.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ status = "generate"
220220
[[object.function]]
221221
name = "init_check"
222222
ignore = true # TODO: manually implement
223+
[[object.function]]
224+
name = "set_allowed_backends"
225+
assertion = "skip"
223226

224227
[[object]]
225228
name = "Gdk.Cursor"

gdk/src/auto/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ pub fn selection_send_notify_for_display(
361361

362362
#[doc(alias = "gdk_set_allowed_backends")]
363363
pub fn set_allowed_backends(backends: &str) {
364-
assert_initialized_main_thread!();
364+
skip_assert_initialized!();
365365
unsafe {
366366
ffi::gdk_set_allowed_backends(backends.to_glib_none().0);
367367
}

0 commit comments

Comments
 (0)