[gnome-builder/wip/chergert/pipeline-merge: 58/76] configuration: use priv-> to access fields



commit 52cea1a5d93d0b32898a3f38b46f8c3408cbe6bc
Author: Christian Hergert <chergert redhat com>
Date:   Sat Feb 4 11:29:15 2017 -0800

    configuration: use priv-> to access fields
    
    This was made subclassable, and we need to use priv now instead of self.

 libide/buildsystem/ide-configuration.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libide/buildsystem/ide-configuration.c b/libide/buildsystem/ide-configuration.c
index 84a13be..b142793 100644
--- a/libide/buildsystem/ide-configuration.c
+++ b/libide/buildsystem/ide-configuration.c
@@ -1227,12 +1227,13 @@ const gchar * const *
 ide_configuration_get_internal_strv (IdeConfiguration *self,
                                      const gchar      *key)
 {
+  IdeConfigurationPrivate *priv = ide_configuration_get_instance_private (self);
   const GValue *v;
 
   g_return_val_if_fail (IDE_IS_CONFIGURATION (self), NULL);
   g_return_val_if_fail (key != NULL, NULL);
 
-  v = g_hash_table_lookup (self->internal, key);
+  v = g_hash_table_lookup (priv->internal, key);
 
   if (v != NULL && G_VALUE_HOLDS (v, G_TYPE_STRV))
     return g_value_get_boxed (v);
@@ -1418,7 +1419,9 @@ ide_configuration_set_internal_object (IdeConfiguration *self,
 gboolean
 ide_configuration_get_ready (IdeConfiguration *self)
 {
+  IdeConfigurationPrivate *priv = ide_configuration_get_instance_private (self);
+
   g_return_val_if_fail (IDE_IS_CONFIGURATION (self), FALSE);
 
-  return self->device_ready && self->runtime_ready;
+  return priv->device_ready && priv->runtime_ready;
 }


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