Skip to content

Commit 9583dc6

Browse files
authored
Merge pull request #1560 from sdroege/0.20-backports
0.20 backports
2 parents b2ddc74 + 46ce407 commit 9583dc6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+548
-206
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [master]
3+
branches: [main]
44
pull_request:
55
workflow_dispatch:
66

@@ -22,8 +22,8 @@ jobs:
2222
conf:
2323
- { name: "cairo", features: "png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface", nightly: "--features 'png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface'", test_sys: true }
2424
- { name: "gdk-pixbuf", features: "v2_42", nightly: "--all-features", test_sys: true }
25-
- { name: "gio", features: "v2_80", nightly: "--all-features", test_sys: true }
26-
- { name: "glib", features: "v2_80", nightly: "--all-features", test_sys: true }
25+
- { name: "gio", features: "v2_84", nightly: "--all-features", test_sys: true }
26+
- { name: "glib", features: "v2_84,log", nightly: "--all-features", test_sys: true }
2727
- { name: "graphene", features: "", nightly: "", test_sys: true }
2828
- { name: "pango", features: "v1_54", nightly: "--all-features", test_sys: true }
2929
- { name: "pangocairo", features: "", nightly: "--all-features", test_sys: true }
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@v4
3737
with:
3838
repository: gtk-rs/checker
39-
ref: master
39+
ref: main
4040
path: checker
4141
if: matrix.rust == 'nightly'
4242
# nightly
@@ -91,7 +91,7 @@ jobs:
9191
if: matrix.conf.test_sys && matrix.conf.name == 'glib'
9292
# GLib compile tests only on stable
9393
- name: Compile tests
94-
run: cargo test --manifest-path glib/Cargo.toml --features "compiletests,v2_78"
94+
run: cargo test --manifest-path glib/Cargo.toml --features "compiletests,v2_84"
9595
if: matrix.rust == 'stable'
9696

9797
build-others:

.github/workflows/docs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [master]
3+
branches: [main]
44
pull_request:
55
workflow_dispatch:
66
release:
@@ -40,7 +40,7 @@ jobs:
4040
- run: cargo install rustdoc-stripper
4141
- run: python3 ./generator.py --embed-docs --yes ./
4242
- run: git clone https://gitlab.gnome.org/World/Rust/gir-rustdoc/ # checkout action doesn't support random urls
43-
- run: echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk-rs-core/' --default-branch 'master' pre-docs | xargs)" >> ${GITHUB_ENV}
43+
- run: echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk-rs-core/' --default-branch 'main' pre-docs | xargs)" >> ${GITHUB_ENV}
4444
- uses: actions-rs/cargo@v1
4545
with:
4646
command: doc
@@ -67,16 +67,16 @@ jobs:
6767
- run: echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)')" >> ${GITHUB_ENV}
6868
- run: echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable/${{ env.RELEASE }}'; else echo 'git'; fi)" >> ${GITHUB_ENV}
6969
- name: Grab gtk-rs LOGO
70-
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
70+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
7171
run: |
72-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
73-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
74-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
75-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
76-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs.svg -O ./target/doc/favicon.svg
72+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
73+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
74+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
75+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
76+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs.svg -O ./target/doc/favicon.svg
7777
7878
- name: deploy
79-
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
79+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
8080
uses: peaceiris/actions-gh-pages@v4
8181
with:
8282
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -87,7 +87,7 @@ jobs:
8787
- run: python3 ./gir-rustdoc/gir-rustdoc.py --project-title 'GTK Core Rust bindings' html-index
8888
- name: deploy index page
8989
uses: peaceiris/actions-gh-pages@v4
90-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
90+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
9191
with:
9292
github_token: ${{ secrets.GITHUB_TOKEN }}
9393
publish_dir: ./public/

.github/workflows/image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '0 0 * * 1'
77
push:
88
branches:
9-
- "master"
9+
- "main"
1010
paths:
1111
- "Dockerfile"
1212
pull_request:

.github/workflows/typos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
push:
55
branches:
6-
- "master"
6+
- "main"
77
jobs:
88
typos:
99
name: Spell Check with Typos

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [master]
3+
branches: [main]
44
pull_request:
55
workflow_dispatch:
66

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Paolo Borelli:
258258
- gio: use `StrV` for the `file_info` API
259259
- gio: use `GStr` for the manual extension point implementation
260260
- glib: list: mark as transparent and impl TransparentPtr
261-
- glib: Rename `StrVItem` to `GStrPtr` and make it clonable and transparent
261+
- glib: Rename `StrVItem` to `GStrPtr` and make it cloneable and transparent
262262
- glib: `key_file`: return `PtrSlice<GStrPtr>`
263263
- glib-macros: further tweak docs
264264
- glib: Rename `GStrPtr` to `GStringPtr`

0 commit comments

Comments
 (0)