Skip to content

Commit

Permalink
Fix building with gcc 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano committed Aug 24, 2024
1 parent 738a1e9 commit c5e24cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ namespace Gala {
return;
}

AtkBridge.adaptor_init (0, {});
string[] args = {};
unowned string[] _args = args;
AtkBridge.adaptor_init (ref _args);
}

private void update_ui_group_size () {
Expand Down
4 changes: 2 additions & 2 deletions vapi/atk-bridge-2.0.vapi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[CCode (lower_case_cprefix = "atk_bridge_")]
[CCode (cheader_filename = "atk-bridge.h", lower_case_cprefix = "atk_bridge_")]
namespace AtkBridge {
public static int adaptor_init (int argc, char[] argv);
public static int adaptor_init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
public static void adaptor_cleanup ();
public static void set_event_context (GLib.MainContext cnx);
}

0 comments on commit c5e24cf

Please sign in to comment.