[gjs] Test for GObject.ParamFlags.READWRITE
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Test for GObject.ParamFlags.READWRITE
- Date: Tue, 27 Oct 2015 22:42:56 +0000 (UTC)
commit ad03ef93fca6943034808fc3b22d709c2e8d8518
Author: Philip Chimento <philip chimento gmail com>
Date: Mon Oct 6 22:56:27 2014 -0700
Test for GObject.ParamFlags.READWRITE
This adds READWRITE to the GObject test, since the correct value for it
has been introspectable since GLib 2.42.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727370
configure.ac | 2 +-
installed-tests/js/testGObjectClass.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5b74cdd..8e36748 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,7 +68,7 @@ fi
AM_CONDITIONAL([ENABLE_COVERAGE], [test x$enable_coverage = xyes])
# Checks for libraries.
-m4_define(glib_required_version, 2.36.0)
+m4_define(glib_required_version, 2.42.0)
AC_CHECK_HEADERS([malloc.h])
AC_CHECK_FUNCS(mallinfo)
diff --git a/installed-tests/js/testGObjectClass.js b/installed-tests/js/testGObjectClass.js
index 41f8e71..9d512f0 100644
--- a/installed-tests/js/testGObjectClass.js
+++ b/installed-tests/js/testGObjectClass.js
@@ -10,7 +10,7 @@ const MyObject = new GObject.Class({
Properties: {
'readwrite': GObject.ParamSpec.string('readwrite', 'ParamReadwrite',
'A read write parameter',
- GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
+ GObject.ParamFlags.READWRITE,
''),
'readonly': GObject.ParamSpec.string('readonly', 'ParamReadonly',
'A readonly parameter',
@@ -19,7 +19,7 @@ const MyObject = new GObject.Class({
'construct': GObject.ParamSpec.string('construct', 'ParamConstructOnly',
'A readwrite construct-only parameter',
- GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE |
GObject.ParamFlags.CONSTRUCT_ONLY,
+ GObject.ParamFlags.READWRITE |
GObject.ParamFlags.CONSTRUCT_ONLY,
'default')
},
Signals: {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]