+2008-05-23 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodeclassbinding.vala:
+
+ Support [DBus (visible = false)] for methods, properties, and
+ signals, based on patch by Ali Sabil, fixes bug 532254
+
2008-05-23 Jürg Billeter <j@bitron.ch>
* vapi/dbus-glib-1.vapi: add DBus.ObjectPath class
return new CCodeExpressionStatement (cwarn);
}
+ bool is_dbus_visible (CodeNode node) {
+ var dbus_attribute = node.get_attribute ("DBus");
+ if (dbus_attribute != null
+ && dbus_attribute.has_argument ("visible")
+ && !dbus_attribute.get_bool ("visible")) {
+ return false;
+ }
+
+ return true;
+ }
+
void register_dbus_info () {
var dbus = cl.get_attribute ("DBus");
if (dbus == null) {
|| m.overrides || m.access != SymbolAccessibility.PUBLIC) {
continue;
}
+ if (!is_dbus_visible (m)) {
+ continue;
+ }
var parameters = new Gee.ArrayList<FormalParameter> ();
foreach (FormalParameter param in m.get_parameters ()) {
if (sig.access != SymbolAccessibility.PUBLIC) {
continue;
}
+ if (!is_dbus_visible (sig)) {
+ continue;
+ }
dbus_signals.append (dbus_iface_name);
dbus_signals.append ("\\0");
if (prop.access != SymbolAccessibility.PUBLIC) {
continue;
}
+ if (!is_dbus_visible (prop)) {
+ continue;
+ }
dbus_props.append (dbus_iface_name);
dbus_props.append ("\\0");