Commit deefe3cd authored by Matthias Clasen's avatar Matthias Clasen

inspector: Add comments

The binding support pokes some not-quite-official (or entirely
private) implementation details. Add comment to warn about this.
parent b86ddc94
......@@ -1330,6 +1330,9 @@ add_binding_info (GtkInspectorPropEditor *editor)
object = editor->priv->object;
name = editor->priv->name;
/* Note: this is accessing private GBinding details, so keep it
* in sync with the implementation in GObject
*/
bindings = (GHashTable *)g_object_get_data (G_OBJECT (object), "g-binding");
if (!bindings)
return;
......@@ -1407,6 +1410,10 @@ add_binding_info (GtkInspectorPropEditor *editor)
}
}
/* Note: Slightly nasty that we have to poke at the
* GSettingsSchemaKey internals here. Keep this in
* sync with the implementation in GIO!
*/
struct _GSettingsSchemaKey
{
GSettingsSchema *schema;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment