* G.S.Alex <[email protected]> [24.01.2010 16:26]: > Here is a same code : > > ---------------------------------------- > using DBus ; > > int main(){ > > DBus.Connection dbus_con = DBus.Bus.get(DBus.BusType.SYSTEM); > dynamic DBus.Object nm = dbus_con.get_object > ("org.freedesktop.NetworkManager", > "/org/freedesktop/NetworkManager", > "org.freedesktop.NetworkManager"); > ObjectPath[unowned] devices_path = nm.GetDevices(); > for (int i = 0 ; i < devices_path.length ; i++ ){ > string path = devices_path[i]; > dynamic DBus.Object device = dbus_con.get_object > ("org.freedesktop.NetworkManager", > path, > "org.freedesktop.NetworkManager.Device"); > message(device.Interface); //this works fine. > ObjectPath ip4conf_path = device.Ip4Config ; > } > return 0; > } > ---------------------------------------- > > got this error: > (process:10987): GLib-GObject-CRITICAL **: g_value_get_string: > assertion `G_VALUE_HOLDS_STRING (value)' failed > > I can get the ObjectPath propertie in d-feet via python ,so is this a > bug of vala? > _______________________________________________ > Vala-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/vala-list this seems to be a bug. if i change the line
ObjectPath ip4conf_path = device.Ip4Config ; to Value ip4conf_path = device.Ip4Config ; and fix the remaining bugs by hand in the C code i get this GType: GParamValueArray please file a bug Regards, Frederik -- IRC: playya @ Freenode, Gimpnet xmpp: [email protected]
signature.asc
Description: Digital signature
_______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
