[pygda] Avoid warning about GdaEasyCreateTableFlag.



commit 3e23a04d4977b0ae21cf3e648da0a641f041bb07
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 18 11:06:08 2011 +0100

    Avoid warning about GdaEasyCreateTableFlag.
    
    * gda/gda.defs: GdaEasyCreateTableFlag: This is an enum, not flags.
    I guess that h2defs.py guessed it based on the name.
    This avoids this warning during import:
      Trying to register gtype 'GdaEasyCreateTableFlag' as flags when in fact it is
      of type 'GEnum'.

 ChangeLog    |  185 ++++++++++++++++++++++++++++++---------------------------
 gda/gda.defs |    4 +-
 2 files changed, 98 insertions(+), 91 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2131a55..de1c68c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,33 +1,43 @@
+2011-03-18  Murray Cumming  <murrayc murrayc com>
+
+	Avoid warning about GdaEasyCreateTableFlag.
+
+	* gda/gda.defs: GdaEasyCreateTableFlag: This is an enum, not flags.
+	I guess that h2defs.py guessed it based on the name.
+	This avoids this warning during import:
+  Trying to register gtype 'GdaEasyCreateTableFlag' as flags when in fact it is
+  of type 'GEnum'.
+
 2.29.1:
 
 2011-01-06  Murray Cumming  <murrayc murrayc com>
 
 	Avoid a warning about a GType with an unsuitable layout.
 
-	* gda/gda.defs: Avoid the warning about GdaLockable by correcting the 
-	.def file generated by h2defs.py to show that it is really an interface, 
+	* gda/gda.defs: Avoid the warning about GdaLockable by correcting the
+	.def file generated by h2defs.py to show that it is really an interface,
 	not an object.
 
 2011-01-06  Murray Cumming  <murrayc murrayc com>
 
 	Fix the install, not using the gtk-2.0 directory.
 
-	* gda/Makefile.am: Install the module directly in the, for instance, 
+	* gda/Makefile.am: Install the module directly in the, for instance,
 	site-packages directory, instead of in the gtk-2.0 sub-directory.
-	That seemed to work with gnome-python-extras, or with my previous Ubuntu 
-	Maverick install, but the import could not find it with my current Ubuntu 
+	That seemed to work with gnome-python-extras, or with my previous Ubuntu
+	Maverick install, but the import could not find it with my current Ubuntu
 	Natty install, in jhbuild.
 
 2010-11-07  Murray Cumming  <murrayc murrayc com>
 
 	Depend on pygobject instead of pygtk.
 
-	* configure.ac: Check for pygobject instead of pygtk, and change 
+	* configure.ac: Check for pygobject instead of pygtk, and change
 	the variable names accordingly.
 	* gda/Makefile.am: Adapt.
-	
-	This is the reason for the split away from gnome-python-extras. There is no 
-	pygtk for GTK+ 3 yet, but pygobject is still OK because glib has not broken 
+
+	This is the reason for the split away from gnome-python-extras. There is no
+	pygtk for GTK+ 3 yet, but pygobject is still OK because glib has not broken
 	ABI. This makes life easier for people building pygda.
 
 2010-11-07  Murray Cumming  <murrayc murrayc com>
@@ -36,21 +46,21 @@
 
 	* tests/common.py: Don't mention the other modules in gnome-python-extras.
 
-ChangeLog Entries from gnome-python-extras, before pygda was split into a 
+ChangeLog Entries from gnome-python-extras, before pygda was split into a
 separate git/tarball module:
 
 2010-05-03  Murray Cumming  <murrayc murrayc com>
 
 	Gda: Regenerate .defs.
-	
+
 	* gda/gda.defs: Regenerated again, removing all private API and
-	including new API that requires the renamed get_type() functions 
+	including new API that requires the renamed get_type() functions
 	in latest libgda for GdaSqlParser API.
 
 2010-05-02  Murray Cumming  <murrayc murrayc com>
 
 	Use pygobject-codegen-2.0 instead of deprecated pygtk-codegen-2.0.
-	
+
 	* configure.ac: Check for pygobject-codegen-2.0 instead of pygtk-codegen-2.0.
 	Rename the automake variables.
 	* egg/recent/Makefile.am:
@@ -65,9 +75,9 @@ separate git/tarball module:
 2010-05-02  Murray Cumming  <murrayc murrayc com>
 
 	Gda: Updated
-	
+
 	* gda/gda.defs: Regenerated with small corrections, against libgda-4.0 (not 4.2)
-	* gda/gda.override: Added gda-sql-parser headers, though the API does not 
+	* gda/gda.override: Added gda-sql-parser headers, though the API does not
 	seem to be generated yet.
 
 2009-06-24  Armin Burgmeier  <armin openismus com>
@@ -86,12 +96,12 @@ separate git/tarball module:
 
 	* gda/gda.defs: Use define-interface instead of define-object for
 	DataHandler and DataModel, because h2defs.py gets this wrong.
-	* gda/gda_defs_interface.patch: Added this change as a patch so we can 
+	* gda/gda_defs_interface.patch: Added this change as a patch so we can
 	reapply it when we next regenerate gda.defs.
 
 2009-01-30  Murray Cumming  <murrayc murrayc com>
 
-	* gda/gda.defs: Regenerated to avoid some undefined symbols with 
+	* gda/gda.defs: Regenerated to avoid some undefined symbols with
 	the latest libgda.
 
 2.25.2:
@@ -109,15 +119,15 @@ separate git/tarball module:
 
 2008-12-18  Murray Cumming  <murrayc murrayc com>
 
-	* gda/gda.defs: Updated by hand to fix the build, because h2defs.py 
+	* gda/gda.defs: Updated by hand to fix the build, because h2defs.py
 	now crashes on the gda-*.h headers.
 
 2008-11-17  Murray Cumming  <murrayc murrayc com>
 
-	* gda/gda.defs: Regenerated with h2defs.py to fix the build with 
+	* gda/gda.defs: Regenerated with h2defs.py to fix the build with
 	latest libgda-4.0.
 
-2008-11-17  Johannes Schmid  <jhs gnome org>	
+2008-11-17  Johannes Schmid  <jhs gnome org>
 
 	* gdl/gdl.override: Fix build with gdl enabled
 
@@ -180,9 +190,9 @@ separate git/tarball module:
 
 2007-12-29  Gian Mario Tagliaretti  <gianmt gnome org>
 
-	* configure.ac: 
-	* Makefile.am: 
-	* docs/gtkmozembed/Makefile.am 
+	* configure.ac:
+	* Makefile.am:
+	* docs/gtkmozembed/Makefile.am
 	* docs/gtkspell/Makefile.am Add conditional docs build (--enable-docs)
 
 	* docs/ref-html-style.xsl:
@@ -268,21 +278,21 @@ separate git/tarball module:
 
 2007-03-27  Murray Cumming  <murrayc murrayc com>
 
-	* gda/gda.defs: Corrected the .defs for the interfaces, such as GdaDataModel, which 
+	* gda/gda.defs: Corrected the .defs for the interfaces, such as GdaDataModel, which
 	were wrongly declared as objects.
-	* examples/gda/select.py: Do not use get() on values, because these are now GValues, instead of 
+	* examples/gda/select.py: Do not use get() on values, because these are now GValues, instead of
 	GdaValues, and they have a cleverer API.
 
 2007-03-27  Murray Cumming  <murrayc murrayc com>
 
-	* examples/gda/select.py: Change execute_single_command() to execute_select_command(), for 
+	* examples/gda/select.py: Change execute_single_command() to execute_select_command(), for
 	pygda 3.0. This now gets further but then fails with this error:
 	TypeError: multiple bases have instance lay-out conflict
 
 2007-03-27  Murray Cumming  <murrayc murrayc com>
 
 	* examples/gda/select.py: Rename DATABASE to DB_NAME as advised by a libgda-3.0 runtime warning.
-	* gda/gda.defs: Add gda_data_source_info_new(), which we already hand-coded in gda.override 
+	* gda/gda.defs: Add gda_data_source_info_new(), which we already hand-coded in gda.override
 	because it does not really exist.
 	*_open_connection(): Added default values, as we had before in pygda 1.2.
 
@@ -292,20 +302,20 @@ separate git/tarball module:
 
 2007-03-27  Murray Cumming  <murrayc murrayc com>
 
-	* gda/gda.defs: Renamed gda_config* function to config_*(), 
-	so that they appear as gda.config_*() in the python API. This is the 
-	same hack that I used for libgda-1.2, and it was lost when we regenerated 
-	the .defs with h2defs.py. This restores the gda.config_*() methods to the API, 
+	* gda/gda.defs: Renamed gda_config* function to config_*(),
+	so that they appear as gda.config_*() in the python API. This is the
+	same hack that I used for libgda-1.2, and it was lost when we regenerated
+	the .defs with h2defs.py. This restores the gda.config_*() methods to the API,
 	so that the examples can use them.
-	Added define-boxed for DataSourceInfo and ProviderSourceInfo, which 
+	Added define-boxed for DataSourceInfo and ProviderSourceInfo, which
 	h2defs.py failed to generate. This restores the functions that used these objects.
 
 2007-03-26  Gian Mario Tagliaretti  <gianmt gnome org>
 
 	* configure.ac: Conditionally build new module gksu2
-	
+
 	* Makefile.am: New module gksu2
-	
+
 	* gksu2/*: Import of new module gksu2
 
 2007-03-21  Armin Burgmeier  <armin openismus com>
@@ -493,7 +503,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 2006-01-18  Murray Cumming  <murrayc murrayc com>
 
 	* gda/pygda-1.2.pc.in: Fix a typo on the prefix line.
-	* gda/pygda-2.0.pc.in: Remove this from CVS. See my last commit for 
+	* gda/pygda-2.0.pc.in: Remove this from CVS. See my last commit for
 	explanation.
 
 === 2.13.2 ===
@@ -524,15 +534,15 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* gda/gda.override:
 	* gda/pygda-1.2.pc.in:
 	* gda/pygdavalue_conversions.c: (pygda_value_from_pyobject),
-	(pygda_value_as_pyobject): Revert pygda to wrapping the libgda-1.2 API 
-	instead of the libgda-2.0 API because libgda-2.0 is unlikely to be API-stable 
-	in the next few months. And, because distros package g-p-e as one package, pygda-2.0 
-	would prevent distribution of pygda-1-2, which kills Glom, which is the only thing 
+	(pygda_value_as_pyobject): Revert pygda to wrapping the libgda-1.2 API
+	instead of the libgda-2.0 API because libgda-2.0 is unlikely to be API-stable
+	in the next few months. And, because distros package g-p-e as one package, pygda-2.0
+	would prevent distribution of pygda-1-2, which kills Glom, which is the only thing
 	that uses pygda.
 
 2006-01-14  Murray Cumming  <murrayc murrayc com>
 
-	* configure.ac: Fix the required libgda-2.0 version, because the libgda 
+	* configure.ac: Fix the required libgda-2.0 version, because the libgda
 	version has _decreased_, for laughs.
 
 2006-01-11  Gustavo J. A. M. Carneiro  <gjc inescporto pt>
@@ -615,14 +625,14 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* configure.ac: Require libgda-2.0 instead of libgda (1.2).
 	* gda/Makefile.am:
 	* gda/pygda-1.2.pc.in:
-	* gda/pygda-2.0.pc.in: Renamed the file, so that the pygda 
-	API version matches the libgda version. Require libgda-2.0 
+	* gda/pygda-2.0.pc.in: Renamed the file, so that the pygda
+	API version matches the libgda version. Require libgda-2.0
 	instead of libgda (1.2).
 	* gda/gda.defs: Regenerate with h2defs.py
-	* gda/gda.override: Do not include xgl stuff that was removed 
+	* gda/gda.override: Do not include xgl stuff that was removed
 	from libgda.
 	* gda/pygdavalue_conversions.c: (pygda_value_from_pyobject),
-	(pygda_value_as_pyobject): Update for changed GdaValue API and 
+	(pygda_value_as_pyobject): Update for changed GdaValue API and
 	GdaConnection API.
 
 2005-10-18  Gustavo J. A. M. Carneiro  <gjc gnome org>
@@ -722,7 +732,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* mediaprofiles/mediaprofiles.override:
 	* mediaprofiles/mediaprofilesmodule.c:
 
-	Add python bindings for the gnome-media's 
+	Add python bindings for the gnome-media's
 	gnome-media-profiles package. This allows to retreive
 	audio compression preferences from gconf, used for example
 	by Sound Juicer. See example file for usage.
@@ -757,7 +767,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	(nb_Drive_unmount), (nb_Drive_eject): Add constructor and new
 	methods (get_media_type_full, door_is_open, eject, unmount) to
 	nautilusburn.Drive.
-	
+
 	* nautilusburn/nb_module.c: (nb_bytes_to_seconds): Update to
 	libnautilus-burn 2.11.3 API changes.
 
@@ -784,14 +794,14 @@ This is the trunk branch. See also the gnome-2-18 branch.
 
 	* docs/gnomeprint/Makefile.am,
 	* docs/gnomeprint/gnomeprint-classes.xml: Include new sections.
-	
+
 2005-06-04  Gian Mario Tagliaretti  <g tagliaretti parafernalia org>
-	
+
 	* docs/gnomeprint/Makefile.am,
 	* docs/gnomeprint/gnomeprint-classes.xml,
 	* docs/gnomeprint/gnomeprint-gnomeprintfont.xml:
 	Add gnomeprint.Font section.
-	
+
 	* docs/gnomeprint/gnomeprint-gnomeprintconfig.xml:
 	* docs/gnomeprint/gnomeprint-gnomeprintcontext.xml:
 	* docs/gnomeprint/gnomeprint-gnomeprintjob.xml: Misc. fixes.
@@ -807,7 +817,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 2005-05-30  Gian Mario Tagliaretti  <g tagliaretti parafernalia org>
 
 	* docs/gtksourceview/gtksourceview-gtksourceprintjob.xml: Add.
-	
+
 	* docs/gtksourceview/gtksourceview-classes.xml: Include
 	gtksourceview-gtksourceprintjob.xml.
 
@@ -969,9 +979,9 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* docs/gtksourceview/gtksourceview-gtksourcebuffer.xml: Fix IDs.
 
 	* docs/gtksourceview/gtksourceview-gtksourceview.xml: Fix IDs.
-	
+
 	* docs/gtksourceview/gtksourceview-gtksourcelanguage.xml: Add.
-	
+
 	* docs/gtksourceview/Makefile.am (REFERENCE_XML_FILES): Add
 	gtksourceview-gtksourcelanguage.xml.
 
@@ -992,7 +1002,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 2005-04-17  Murray Cumming <murrayc murrayc com>
 
 	* gda/pygdavalue_conversions.c: (pygda_value_as_pyobject):
-	Return a PyFloat for a GdaNumeric, instead of a PyLong, 
+	Return a PyFloat for a GdaNumeric, instead of a PyLong,
 	so we do not lose the part after the decimal point.
 
 2005-04-17  Gustavo J. A. M. Carneiro  <gjc gnome org>
@@ -1018,12 +1028,12 @@ This is the trunk branch. See also the gnome-2-18 branch.
 
 	* gda/pygdavalue_conversions.c: (pygda_value_as_pyobject):
 	Added casts needed by gcc 3.4.
-	* gda/pygdavalue_conversions.h: Use extern C, so it 
+	* gda/pygdavalue_conversions.h: Use extern C, so it
 	can be included by C++.
 
 2005-04-15  Murray Cumming  <murrayc murrayc com>
 
-	* gda/Makefile.am: Export all symbols, not just 
+	* gda/Makefile.am: Export all symbols, not just
 	initgda(), so we can use the utility functions too.
 
 === 2.11.0 ===
@@ -1039,7 +1049,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 
 2005-04-15  Murray Cumming  <murrayc murrayc com>
 
-	* gda/pygda-1.2.pc.in: Remove @THREADING_CFLAGS@ which has 
+	* gda/pygda-1.2.pc.in: Remove @THREADING_CFLAGS@ which has
 	no value, and was just copied from the pygtk .pc.in file.
 
 2005-04-15  Gustavo J. A. M. Carneiro  <gjc gnome org>
@@ -1050,17 +1060,17 @@ This is the trunk branch. See also the gnome-2-18 branch.
 
 2005-04-14  Murray Cumming <murrayc murrayc com>
 
-	* gda/gda.defs: Add defauilt values for 
-	Client.open_connection(), Connection.execute_single_command(), 
+	* gda/gda.defs: Add defauilt values for
+	Client.open_connection(), Connection.execute_single_command(),
 	gda.Command().
-	* examples/gda/select.py: Use default method 
+	* examples/gda/select.py: Use default method
 	values, to make the code more concise.
 
 2005-04-14  Gustavo J. A. M. Carneiro  <gjc inescporto pt>
 
 	* configure.ac: Fix a small copy-paste error (init build_gtop
 	instead of build_libgda, also s/build_libgda/build_gda/).
-	
+
 
 2005-04-14  Murray Cumming  <murrayc murrayc com>
 
@@ -1071,39 +1081,39 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* gda/Makefile.am:
 	Install utility headers and pkg-config file.
 	* gda/gda.override:
-	The GValue get/set functions now use the 
+	The GValue get/set functions now use the
 	functions from pygdavalue_conversions.[h|cc].
 	* gda/pygdavalue_conversions.h:
 	* gda/pygdavalue_conversions.cc:
-	Added pygda_value_from_pyobject() and 
-        pygda_value_as_pyobject(), containing the 
-	code from the get/set functions, because we 
+	Added pygda_value_from_pyobject() and
+        pygda_value_as_pyobject(), containing the
+	code from the get/set functions, because we
 	might want to reuse this later.
-	* gda/pygda-1.2.pc.in: Added pkg-config file 
-	so that the location of the utility headers 
+	* gda/pygda-1.2.pc.in: Added pkg-config file
+	so that the location of the utility headers
 	can be discovered.
 
 2005-04-14  Murray Cumming <murrayc murrayc com>
 
-	* gda/gda.override: Ignore the gda_xql_*() functions 
-	because they are useless cruft. However, I can not 
+	* gda/gda.override: Ignore the gda_xql_*() functions
+	because they are useless cruft. However, I can not
 	find a way to ignore the GdaXql* types.
 
 2005-04-12  Murray Cumming <murrayc murrayc com>
 
-	* gda/gda.defs: Mark gda_value_new_*() functions as 
-	constructors of GdaValues, so that python allows them 
+	* gda/gda.defs: Mark gda_value_new_*() functions as
+	constructors of GdaValues, so that python allows them
 	to be instantiated.
 
 2005-04-12  Murray Cumming <murrayc murrayc com>
 
-	* gda/gda.override: Added gda.Value::set(). We need the 
+	* gda/gda.override: Added gda.Value::set(). We need the
 	explicit set_*() methods too.
 
 2005-04-12  Murray Cumming  <murrayc murrayc com>
 
 	* examples/gda/select.py: Use Value::get().
-	* gda/gda.override: Added gda.Value.get() and ignored the 
+	* gda/gda.override: Added gda.Value.get() and ignored the
 	_get() functions from the .defs.
 
 2005-04-12  Murray Cumming <murrayc murrayc com>
@@ -1111,34 +1121,34 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* examples/gda/select.py: Now works.
 	* gda/gda.defs: Added define-boxed for FieldAttributes.
 	* gda/gda.override: _wrap_gda_data_source_info_tp_setattr():
-	Allow setting of the cnc_string too. I wish we could tell 
+	Allow setting of the cnc_string too. I wish we could tell
 	pygtk to generate setters automatically.
-	* gda/gdamodule.c: (initgda): Call pygda_add_constants(), so 
+	* gda/gdamodule.c: (initgda): Call pygda_add_constants(), so
 	that enum values are added to the API.
 
 2005-04-12  Murray Cumming  <murrayc murrayc com>
 
-	* gda/gdamodule.c: Get the argc and argv and use them to call 
+	* gda/gdamodule.c: Get the argc and argv and use them to call
 	gda_init(). This removes the need to initialize gettext ourselves.
-	However, gda_init() requires two extra parameters and I do not 
+	However, gda_init() requires two extra parameters and I do not
 	know how to supply them from the application.
 
 2005-04-12  Murray Cumming <murrayc murrayc com>
 
-	* gda/gda.defs: Rename gda_config_* method names to 
+	* gda/gda.defs: Rename gda_config_* method names to
 	config_. The method name is the name of the method in the binding,
- 	not the C function name. 
+ 	not the C function name.
 	* examples/gda/list_data_sources.py:
-	* examples/gda/select.py: Updated for config API change. However, 
-	I guess this should prbably be gda.Config.method_name() instead of 
+	* examples/gda/select.py: Updated for config API change. However,
+	I guess this should prbably be gda.Config.method_name() instead of
 	gda.config_method_name().
-	* gda/gda.override: Added a get_config_key() to be used instead of 
-	get_config_key_[type](), because python can do that. From a patch 
+	* gda/gda.override: Added a get_config_key() to be used instead of
+	get_config_key_[type](), because python can do that. From a patch
 	to the mailing list by Filip Van Raemdonck.
 
 2005-04-04  Murray Cumming  <murrayc murrayc com>
 
-	* Added gda, a first attempt at wrapping libgda 1.2. This is 
+	* Added gda, a first attempt at wrapping libgda 1.2. This is
 	the code from pygda 0.3.0, with some changes.
 	* examples/: Added gda/.
 
@@ -1164,7 +1174,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 2005-03-02  Sebastien Bacher  <seb128 debian org>
 
 	* configure.ac: Require libwnck 2.9.92
-	
+
 	* wnck/wnck.defs: updated for the new wnck API.
 
 === 2.9.4 ===
@@ -1246,7 +1256,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* examples/nautilusburn/*: Add examples for new nautilusburn module.
 
 	* nautilusburn/*: Add bindings for libnautilus-burn.
-	
+
 2005-01-17  Benoît Dejean  <TazForEver dlfp org>
 
 	* configure.ac: Requires glib >= 2.6.0 and libgtop >= 2.9.4.
@@ -1442,7 +1452,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	define, missing from egg sources.
 	import gtk.Widget type.
 
-	* egg/recent/eggrecent.c: 
+	* egg/recent/eggrecent.c:
 
 	* egg/recent/eggrecent.defs: Add missing GObject declaration for
 	RecentViewGtk -- somehow h2def missed it.
@@ -1524,7 +1534,7 @@ This is the trunk branch. See also the gnome-2-18 branch.
 
 	Add wnck bindings and change automake requirement from 1.9.2 to
 	1.7.x
-	
+
 2004-11-23  Gustavo J. A. M. Carneiro  <gustavo users sourceforge net>
 
 	* gnomeapplet/Makefile.am (pygnome_PYTHON): Install compat dummy
@@ -1607,4 +1617,3 @@ This is the trunk branch. See also the gnome-2-18 branch.
 	* Makefile.am (EXTRAS_DIST): Remove all examples unrelated to this
 	package. s/gnome-python-extras-2.0.pc.in/gnome-python-2.0.pc.in/.
 	Change SUBDIRS definition to match new layout.
-
diff --git a/gda/gda.defs b/gda/gda.defs
index ff862a0..0f68533 100644
--- a/gda/gda.defs
+++ b/gda/gda.defs
@@ -443,7 +443,7 @@
   )
 )
 
-(define-flags EasyCreateTableFlag
+(define-enum EasyCreateTableFlag
   (in-module "Gda")
   (c-name "GdaEasyCreateTableFlag")
   (gtype-id "GDA_TYPE_EASY_CREATE_TABLE_FLAG")
@@ -6630,5 +6630,3 @@
     '("const-GValue*" "value")
   )
 )
-
-



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