[gtk+] inspector: Add comments
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Add comments
- Date: Fri, 11 Jul 2014 14:27:49 +0000 (UTC)
commit deefe3cd6a4dc61a6fb3a7a3ff6cd57288366865
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 11 10:27:00 2014 -0400
inspector: Add comments
The binding support pokes some not-quite-official (or entirely
private) implementation details. Add comment to warn about this.
gtk/inspector/prop-editor.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c
index ee8b80c..4614a92 100644
--- a/gtk/inspector/prop-editor.c
+++ b/gtk/inspector/prop-editor.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]