Skip to content

Commit

Permalink
Skip gobject-param-spec example for older GJS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Nov 13, 2024
1 parent 12e7402 commit 6d9973e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/gobject-param-spec/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import GObject from 'gi://GObject';
import System from 'system';

console.log('GJS Version:', System.version);

if(System.version < 18200) {
console.log('GJS version 1.82.0 or higher is required for nullable nick and blurb in GObject.ParamSpec, skipping example');
System.exit(0);
}

// Example class demonstrating different ParamSpec usages
class ExampleObject extends GObject.Object {
Expand Down

0 comments on commit 6d9973e

Please sign in to comment.