Skip to content

Commit

Permalink
Simplify code sample
Browse files Browse the repository at this point in the history
Remove application flag and conditional preprocessor statements
  • Loading branch information
colinkiama committed Feb 20, 2024
1 parent a9480fa commit 19fcea7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions assets/code-sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
public class ExampleApp : Gtk.Application {
public ExampleApp () {
Object (
application_id: "com.example.App",
#if GLIB_2_74
flags: ApplicationFlags.DEFAULT_FLAGS
#else
flags: ApplicationFlags.FLAGS_NONE
#endif
);
Object (application_id: "com.example.App");
}
public override void activate () {
Expand Down

0 comments on commit 19fcea7

Please sign in to comment.