fix(gtk-session-lock): make types use correct @girs types
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
bab5698f39
commit
4e1ad1c8f6
3 changed files with 8 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,7 +1,7 @@
|
||||||
*.egg-info
|
*.egg-info
|
||||||
*.temp
|
*.temp
|
||||||
*node_modules/
|
*node_modules/
|
||||||
*types
|
**/types
|
||||||
*build/
|
*build/
|
||||||
result*
|
result*
|
||||||
*config.js
|
*config.js
|
||||||
|
|
|
@ -161,7 +161,6 @@ const createWindow = (monitor: Gdk.Monitor) => {
|
||||||
const win = PasswordPrompt(monitor);
|
const win = PasswordPrompt(monitor);
|
||||||
|
|
||||||
windows.push(win);
|
windows.push(win);
|
||||||
// @ts-expect-error should be fine
|
|
||||||
lock.new_surface(win, monitor);
|
lock.new_surface(win, monitor);
|
||||||
win.show();
|
win.show();
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,6 +27,12 @@ buildNpmPackage {
|
||||||
"-g ${gdk-pixbuf.dev}/share/gir-1.0"
|
"-g ${gdk-pixbuf.dev}/share/gir-1.0"
|
||||||
"-g ${harfbuzz.dev}/share/gir-1.0"
|
"-g ${harfbuzz.dev}/share/gir-1.0"
|
||||||
"-g ${atk.dev}/share/gir-1.0"
|
"-g ${atk.dev}/share/gir-1.0"
|
||||||
]} -o $out
|
]} -e gjs -o ./types
|
||||||
|
|
||||||
|
mkdir -p $out
|
||||||
|
cp ./types/gtksessionlock* $out/
|
||||||
|
|
||||||
|
substituteInPlace $out/gtksessionlock* --replace-warn \
|
||||||
|
"from '." "from '@girs"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue