Skip to content

Commit b8ab5e3

Browse files
committed
Fix Vala for Ubuntu 22.04
1 parent de22743 commit b8ab5e3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

examples/meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if get_option('vapi')
2020
'simple-example-vala',
2121
files('simple-example.vala'),
2222
dependencies: [gtk, gtk_layer_shell, vapi],
23-
c_args: ['-Wno-unused-but-set-variable', '-Wno-unused-parameter', '-Wno-cast-function-type'],
23+
c_args: [
24+
'-Wno-unused-but-set-variable',
25+
'-Wno-unused-parameter',
26+
'-Wno-cast-function-type',
27+
'-Wno-deprecated-declarations',
28+
],
2429
install: false)
2530
endif

examples/simple-example.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using GtkLayerShell;
44
int main(string[] argv) {
55
var app = new Gtk.Application (
66
"com.github.wmww.gtk4-layer-shell.vala-example",
7-
GLib.ApplicationFlags.DEFAULT_FLAGS);
7+
GLib.ApplicationFlags.FLAGS_NONE);
88

99
app.activate.connect (() => {
1010
var window = new Gtk.ApplicationWindow (app);

0 commit comments

Comments
 (0)