]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Deprecate use of D-Bus GLib
authorJürg Billeter <j@bitron.ch>
Fri, 20 Aug 2010 11:52:34 +0000 (13:52 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 21 Aug 2010 08:43:57 +0000 (10:43 +0200)
GDBus should be used instead.

compiler/valacompiler.vala

index 6570d81a93562b2a4fee6b02242034e7050fa327..36364bd0e3b09bc71b41800e80dcc0690a8e7a98 100644 (file)
@@ -331,6 +331,9 @@ class Vala.Compiler {
 
                if (context.profile == Profile.GOBJECT) {
                        if (context.has_package ("dbus-glib-1")) {
+                               if (!context.deprecated) {
+                                       Report.warning (null, "D-Bus GLib is deprecated, use GDBus");
+                               }
                                context.codegen = new DBusServerModule ();
                        } else {
                                context.codegen = new GDBusServerModule ();