[libgdamm] Comment out properties that need libgda enums to have GTypes



commit d56b659c4b9119b3fa243f2e4b5386735548d5dc
Author: Murray Cumming <murraycu google com>
Date:   Sun Jan 19 19:08:46 2020 +0100

    Comment out properties that need libgda enums to have GTypes
    
    This seems to have been lost when libgda moved to the meson build
    system.

 libgda/src/connection.hg      | 10 ++++++----
 libgda/src/connectionevent.hg |  2 +-
 2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/libgda/src/connection.hg b/libgda/src/connection.hg
index 895ea8e..cb90c10 100644
--- a/libgda/src/connection.hg
+++ b/libgda/src/connection.hg
@@ -44,7 +44,7 @@ class MetaStore;
 
 /** Exception class for Gda connection errors.
  */
-_WRAP_GERROR(ConnectionError, GdaConnectionError, GDA_CONNECTION_ERROR)
+// TODO: Newer libgda seems to have no gda_connection_error_get_type(): _WRAP_GERROR(ConnectionError, 
GdaConnectionError, GDA_CONNECTION_ERROR)
 
 /** Manages a connection to a data source.
  * This class offers access to all operations involving an opened connection to a database.
@@ -66,8 +66,8 @@ protected:
 public:
   _WRAP_CREATE()
 
-  _WRAP_ENUM(Options, GdaConnectionOptions)
-  _WRAP_ENUM(MetaType, GdaConnectionMetaType)
+  _WRAP_ENUM(Options, GdaConnectionOptions, NO_GTYPE)
+  _WRAP_ENUM(MetaType, GdaConnectionMetaType, NO_GTYPE)
 
   _WRAP_METHOD(static Glib::RefPtr<Connection> create_from_string(const Glib::ustring& provider_name, const 
Glib::ustring& cnc_string, const Glib::ustring& auth_string = Glib::ustring(), Options options = 
Options::NONE), gda_connection_new_from_string, errthrow)
 
@@ -345,7 +345,9 @@ public:
   _WRAP_PROPERTY("cnc-string", Glib::ustring)
   _WRAP_PROPERTY("dsn", Glib::ustring)
   _WRAP_PROPERTY("meta-store", Glib::RefPtr<MetaStore>)
-  _WRAP_PROPERTY("options", Options)
+
+  // TODO: The enum needs to have a gtype, instead of using NO_GTYPE: _WRAP_PROPERTY("options", Options)
+
   _WRAP_PROPERTY("is-wrapper", bool)
   _WRAP_PROPERTY("monitor-wrapped-in-mainloop", bool)
   //We ignore the thread-owner property because it is strange and should only be used (well, modified) by 
provider implementations.
diff --git a/libgda/src/connectionevent.hg b/libgda/src/connectionevent.hg
index e13f61b..57a1614 100644
--- a/libgda/src/connectionevent.hg
+++ b/libgda/src/connectionevent.hg
@@ -65,7 +65,7 @@ public:
   _WRAP_METHOD(Glib::ustring get_sqlstate() const, gda_connection_event_get_sqlstate)
   _WRAP_METHOD(void set_sqlstate(const Glib::ustring& sqlstate), gda_connection_event_set_sqlstate)
 
-  _WRAP_PROPERTY("type", Type)
+  // The enum needs to have a gtype, instead of using NO_GTYPE: _WRAP_PROPERTY("type", Type)
 };
 
 } // namespace Gda


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