From 63dbe4ffa62a1ffc8ac4d90d4dd39816ddee8b82 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Wed, 24 Nov 2021 17:42:16 +0100 Subject: Use config.vapi to include config.h Thank you to ricotz on #vala. --- src/ui/main.vala | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/ui/main.vala') diff --git a/src/ui/main.vala b/src/ui/main.vala index 82dc9d1..f0712e1 100644 --- a/src/ui/main.vala +++ b/src/ui/main.vala @@ -14,18 +14,12 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -[CCode (cname="PACKAGE")] -extern const string PACKAGE; - -[CCode (cname="LOCALEDIR")] -extern const string LOCALEDIR; - namespace Disfluid { class Main: GLib.Object { public static int main (string[] args) { GLib.Intl.setlocale (GLib.LocaleCategory.ALL, ""); - GLib.Intl.bindtextdomain (PACKAGE, LOCALEDIR); - GLib.Intl.textdomain (PACKAGE); + GLib.Intl.bindtextdomain (Build.PACKAGE, Build.LOCALEDIR); + GLib.Intl.textdomain (Build.PACKAGE); int return_code = 1; Disfluid.Api.init ((api) => { var settings = new Disfluid.Settings (api); -- cgit v1.2.3