gnomemm r1815 - in libgdamm/trunk: . libgda/src
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1815 - in libgdamm/trunk: . libgda/src
- Date: Fri, 28 Nov 2008 10:04:17 +0000 (UTC)
Author: jhs
Date: Fri Nov 28 10:04:17 2008
New Revision: 1815
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1815&view=rev
Log:
2008-11-28 Johannes Schmid <jschmid openismus com>
* libgda/src/column.ccg:
* libgda/src/column.hg:
* libgda/src/row.ccg:
* libgda/src/row.hg:
Fixed some Value methods that were still using Glib::Value
Modified:
libgdamm/trunk/ChangeLog
libgdamm/trunk/libgda/src/column.ccg
libgdamm/trunk/libgda/src/column.hg
libgdamm/trunk/libgda/src/row.ccg
libgdamm/trunk/libgda/src/row.hg
Modified: libgdamm/trunk/libgda/src/column.ccg
==============================================================================
--- libgdamm/trunk/libgda/src/column.ccg (original)
+++ libgdamm/trunk/libgda/src/column.ccg Fri Nov 28 10:04:17 2008
@@ -29,22 +29,6 @@
namespace Gda
{
-Value Column::get_attribute(Glib::ustring& attribute) const
-{
- const GValue* value = gda_column_get_attribute(const_cast<GdaColumn*>(gobj()), attribute.c_str());
- Value retval;
- retval.init(value);
- return retval;
-}
-
-Value Column::get_default_value() const
-{
- const GValue* value = gda_column_get_default_value(const_cast<GdaColumn*>(gobj()));
- Value retval;
- retval.init(value);
- return retval;
-}
-
bool Column::equal(const Glib::RefPtr<const Column>& src) const
{
if(!src)
Modified: libgdamm/trunk/libgda/src/column.hg
==============================================================================
--- libgdamm/trunk/libgda/src/column.hg (original)
+++ libgdamm/trunk/libgda/src/column.hg Fri Nov 28 10:04:17 2008
@@ -64,8 +64,7 @@
_WRAP_METHOD(void set_description(const Glib::ustring& title), gda_column_set_description)
_WRAP_METHOD(void set_attribute (const Glib::ustring& attribute, const Value& value), gda_column_set_attribute);
- _WRAP_METHOD_DOCS_ONLY(gda_column_get_attribute);
- Value get_attribute(Glib::ustring& attribute) const;
+ _WRAP_METHOD(Value get_attribute(const Glib::ustring& attribute) const, gda_column_get_attribute);
_WRAP_METHOD(Glib::ustring get_name() const, gda_column_get_name)
_WRAP_METHOD(void set_name(const Glib::ustring& name), gda_column_set_name)
@@ -81,9 +80,7 @@
_WRAP_METHOD(gint get_position() const, gda_column_get_position)
_WRAP_METHOD(void set_position(gint position), gda_column_set_position)
- //TODO: Documentation.
- Value get_default_value() const;
- _IGNORE(gda_column_get_default_value)
+ _WRAP_METHOD(Value get_default_value(), gda_column_get_default_value)
_WRAP_METHOD(void set_default_value(const Value& default_value), gda_column_set_default_value)
Modified: libgdamm/trunk/libgda/src/row.ccg
==============================================================================
--- libgdamm/trunk/libgda/src/row.ccg (original)
+++ libgdamm/trunk/libgda/src/row.ccg Fri Nov 28 10:04:17 2008
@@ -33,14 +33,6 @@
namespace Gda
{
-Value Row::get_value(int num) const
-{
- Value retval;
- const GValue* value = gda_row_get_value(const_cast<GdaRow*>(gobj()), num);
- retval.init(value);
- return retval;
-}
-
} // namespace Gda
} // namespace Gnome
Modified: libgdamm/trunk/libgda/src/row.hg
==============================================================================
--- libgdamm/trunk/libgda/src/row.hg (original)
+++ libgdamm/trunk/libgda/src/row.hg Fri Nov 28 10:04:17 2008
@@ -53,7 +53,7 @@
public:
_WRAP_CREATE(int count)
- Value get_value(int num) const;
+ _WRAP_METHOD(Value get_value(int num), gda_row_get_value);
};
} // namespace Gda
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]