From d3d91d10c9ca3782c5936c630e87730e3bf9c32d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Jul 2010 02:21:42 +0200 Subject: [PATCH] build-sys: fix compatibility with vala 0.9 --- configure.ac | 2 +- src/systemadm.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index eef4391e..b06fc2f9 100644 --- a/configure.ac +++ b/configure.ac @@ -183,7 +183,7 @@ if test "x$enable_gtk" != "xno"; then fi AM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"]) -AM_PROG_VALAC([0.8]) +AM_PROG_VALAC([0.9]) AC_SUBST(VAPIDIR) AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x) diff --git a/src/systemadm.vala b/src/systemadm.vala index 65a58b71..3610e2b8 100644 --- a/src/systemadm.vala +++ b/src/systemadm.vala @@ -297,7 +297,7 @@ public class MainWindow : Window { bbox.pack_start(cancel_button, false, true, 0); - bus = Bus.get(session ? BusType.SESSION : BusType.SYSTEM); + bus = DBus.Bus.get(session ? DBus.BusType.SESSION : DBus.BusType.SYSTEM); manager = bus.get_object( "org.freedesktop.systemd1", -- 2.39.5