[gnome-builder/gnome-builder-3-36] dspy: fix read/write detection



commit b7f8da7e3a0234e3a833c7a3a302ba0a156a122f
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 18 12:44:03 2020 -0700

    dspy: fix read/write detection
    
    Fixes #1219

 src/plugins/dspy/libdspy/dspy-node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/dspy/libdspy/dspy-node.c b/src/plugins/dspy/libdspy/dspy-node.c
index e8389b8e0..f2ec8dac9 100644
--- a/src/plugins/dspy/libdspy/dspy-node.c
+++ b/src/plugins/dspy/libdspy/dspy-node.c
@@ -405,7 +405,7 @@ _dspy_property_info_to_string (DspyPropertyInfo *info)
 
   sig = _dspy_signature_humanize (info->signature);
 
-  if (info->flags == (G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE))
+  if (info->flags == (G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE))
     rw = _("read/write");
   else if (info->flags  & G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE)
     rw = _("write-only");


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