[vala] Deprecate use of D-Bus GLib



commit 60de36cdd9a61cf12ebaf886686af38f11c42d31
Author: Jürg Billeter <j bitron ch>
Date:   Fri Aug 20 13:52:34 2010 +0200

    Deprecate use of D-Bus GLib
    
    GDBus should be used instead.

 compiler/valacompiler.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 12b20ba..af22abd 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]