[libgda] Fixed Gdaui Vala bindings by adding correct headers. Fixed owned in DbRecord.get_value * Set include



commit 294472e400fbba51379f98533a8d89c238613bbf
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Apr 18 10:15:34 2013 -0500

    Fixed Gdaui Vala bindings by adding correct headers. Fixed owned in DbRecord.get_value
    * Set include headers in GIR and Vala bindings for Gdaui to libgda-ui/libgda-ui.h
    * No transfer ownership from DbRecord.get_value, fix derived classes properties
    implementation

 libgda-ui/libgdaui-5.0.vapi | 160 ++++++++++++++++++++++----------------------
 libgda/data/DbRecord.vala   |   2 +-
 libgda/data/DbTable.vala    |   1 +
 libgda/data/GdaData-5.0.gir |   6 +-
 libgda/data/Record.vala     |   2 +-
 libgda/data/Table.vala      |   4 +-
 6 files changed, 88 insertions(+), 87 deletions(-)
---
diff --git a/libgda-ui/libgdaui-5.0.vapi b/libgda-ui/libgdaui-5.0.vapi
index 4982425..4b74559 100644
--- a/libgda-ui/libgdaui-5.0.vapi
+++ b/libgda-ui/libgdaui-5.0.vapi
@@ -2,7 +2,7 @@
 
 [CCode (cprefix = "Gdaui", gir_namespace = "Gdaui", gir_version = "5.0", lower_case_cprefix = "gdaui_")]
 namespace Gdaui {
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_basic_form_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_basic_form_get_type ()")]
        public class BasicForm : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public BasicForm (Gda.Set data_set);
@@ -41,11 +41,11 @@ namespace Gdaui {
                public virtual signal void layout_changed ();
                public signal void populate_popup (Gtk.Menu menu);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class BasicFormPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_cloud_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_cloud_get_type ()")]
        public class Cloud : Gtk.Box, Atk.Implementor, Gdaui.DataSelector, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Cloud (Gda.DataModel model, int label_column, int weight_column);
@@ -65,11 +65,11 @@ namespace Gdaui {
                public int weight_column { get; set; }
                public virtual signal void activate (int row);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class CloudPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_combo_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_combo_get_type ()")]
        public class Combo : Gtk.ComboBox, Atk.Implementor, Gdaui.DataSelector, Gtk.Buildable, 
Gtk.CellEditable, Gtk.CellLayout {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Combo ();
@@ -83,7 +83,7 @@ namespace Gdaui {
                [NoAccessorMethod]
                public Gda.DataModel model { owned get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_cell_renderer_bin_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_cell_renderer_bin_get_type 
()")]
        public class DataCellRendererBin : Gtk.CellRendererPixbuf {
                [CCode (has_construct_function = false, type = "GtkCellRenderer*")]
                public DataCellRendererBin (Gda.DataHandler dh, GLib.Type type);
@@ -97,7 +97,7 @@ namespace Gdaui {
                public GLib.Value value { owned get; set; }
                public virtual signal void changed (string path, GLib.Value new_value);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_cell_renderer_boolean_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = 
"gdaui_data_cell_renderer_boolean_get_type ()")]
        public class DataCellRendererBoolean : Gtk.CellRendererToggle {
                [CCode (has_construct_function = false, type = "GtkCellRenderer*")]
                public DataCellRendererBoolean (Gda.DataHandler dh, GLib.Type type);
@@ -111,7 +111,7 @@ namespace Gdaui {
                public GLib.Value value { owned get; set; }
                public virtual signal void changed (string path, GLib.Value new_value);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_cell_renderer_combo_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = 
"gdaui_data_cell_renderer_combo_get_type ()")]
        public class DataCellRendererCombo : Gtk.CellRendererText {
                [CCode (has_construct_function = false, type = "GtkCellRenderer*")]
                public DataCellRendererCombo (Gdaui.Set paramlist, Gdaui.SetSource source);
@@ -129,7 +129,7 @@ namespace Gdaui {
                public void* values_display { set; }
                public signal void changed (string object, void* p0, void* p1);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_cell_renderer_info_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_cell_renderer_info_get_type 
()")]
        public class DataCellRendererInfo : Gtk.CellRenderer {
                [CCode (has_construct_function = false, type = "GtkCellRenderer*")]
                public DataCellRendererInfo (Gdaui.DataStore store, Gda.DataModelIter iter, Gdaui.SetGroup 
group);
@@ -143,11 +143,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public bool to_be_deleted { set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class DataCellRendererInfoPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_cell_renderer_textual_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = 
"gdaui_data_cell_renderer_textual_get_type ()")]
        public class DataCellRendererTextual : Gtk.CellRendererText {
                [CCode (has_construct_function = false, type = "GtkCellRenderer*")]
                public DataCellRendererTextual (Gda.DataHandler? dh, GLib.Type type, string options);
@@ -161,18 +161,18 @@ namespace Gdaui {
                public void* value { set; }
                public virtual signal void changed (string path, GLib.Value new_value);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_filter_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_filter_get_type ()")]
        public class DataFilter : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public DataFilter (Gdaui.DataProxy data_widget);
                [NoAccessorMethod]
                public Gdaui.DataProxy data_widget { owned get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class DataFilterPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_proxy_info_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_proxy_info_get_type ()")]
        public class DataProxyInfo : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public DataProxyInfo (Gdaui.DataProxy data_proxy, Gdaui.DataProxyInfoFlag flags);
@@ -181,11 +181,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public Gtk.UIManager ui_manager { owned get; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class DataProxyInfoPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_store_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_store_get_type ()")]
        public class DataStore : GLib.Object, Gtk.TreeModel {
                [CCode (has_construct_function = false)]
                protected DataStore ();
@@ -203,11 +203,11 @@ namespace Gdaui {
                public bool prepend_null_entry { get; set; }
                public void* proxy { get; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class DataStorePriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_get_type ()")]
        public class Entry : Gtk.Entry, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.Editable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Entry (string? prefix, string? suffix);
@@ -228,17 +228,17 @@ namespace Gdaui {
                [NoAccessorMethod]
                public string suffix { owned get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_bin_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_bin_get_type ()")]
        public class EntryBin : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryBin (Gda.DataHandler dh, GLib.Type type);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_boolean_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_boolean_get_type ()")]
        public class EntryBoolean : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryBoolean (Gda.DataHandler dh, GLib.Type type);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_combo_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_combo_get_type ()")]
        public class EntryCombo : Gdaui.EntryShell, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryCombo (Gdaui.Set paramlist, Gdaui.SetSource source);
@@ -251,11 +251,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public bool set_default_if_invalid { get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class EntryComboPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_common_time_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_common_time_get_type ()")]
        public class EntryCommonTime : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.CellEditable, Gtk.Scrollable {
                [CCode (has_construct_function = false)]
                protected EntryCommonTime ();
@@ -264,17 +264,17 @@ namespace Gdaui {
                [NoAccessorMethod]
                public uint type { get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_date_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_date_get_type ()")]
        public class EntryDate : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.CellEditable, Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryDate (Gda.DataHandler dh);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_none_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_none_get_type ()")]
        public class EntryNone : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryNone (GLib.Type type);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_number_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_number_get_type ()")]
        public class EntryNumber : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.CellEditable, Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryNumber (Gda.DataHandler dh, GLib.Type type, string options);
@@ -284,7 +284,7 @@ namespace Gdaui {
                [NoAccessorMethod]
                public string options { set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_shell_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_shell_get_type ()")]
        public class EntryShell : Gtk.Viewport, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
                [CCode (has_construct_function = false)]
                protected EntryShell ();
@@ -299,11 +299,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public bool is_cell_renderer { get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class EntryShellPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_string_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_string_get_type ()")]
        public class EntryString : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.CellEditable, Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryString (Gda.DataHandler dh, GLib.Type type, string options);
@@ -314,17 +314,17 @@ namespace Gdaui {
                [NoAccessorMethod]
                public string options { set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_time_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_time_get_type ()")]
        public class EntryTime : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.CellEditable, Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryTime (Gda.DataHandler dh);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_timestamp_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_timestamp_get_type ()")]
        public class EntryTimestamp : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.CellEditable, Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public EntryTimestamp (Gda.DataHandler dh);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_entry_wrapper_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_wrapper_get_type ()")]
        public class EntryWrapper : Gdaui.EntryShell, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable, 
Gtk.Scrollable {
                [CCode (has_construct_function = false)]
                protected EntryWrapper ();
@@ -348,11 +348,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public bool set_default_if_invalid { get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class EntryWrapperPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_form_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_form_get_type ()")]
        public class Form : Gtk.Box, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector, Gtk.Buildable, 
Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Form (Gda.DataModel model);
@@ -363,11 +363,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public Gdaui.RawForm raw_form { owned get; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class FormPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_formatted_entry_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_formatted_entry_get_type ()")]
        public class FormattedEntry : Gdaui.Entry, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, 
Gtk.Editable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public FormattedEntry (string format, string? mask);
@@ -378,7 +378,7 @@ namespace Gdaui {
                [NoAccessorMethod]
                public string mask { owned get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_grid_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_grid_get_type ()")]
        public class Grid : Gtk.Box, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector, Gtk.Buildable, 
Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Grid (Gda.DataModel? model);
@@ -390,11 +390,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public Gdaui.RawGrid raw_grid { owned get; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class GridPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_login_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_login_get_type ()")]
        public class Login : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Login (string? dsn);
@@ -408,7 +408,7 @@ namespace Gdaui {
                public bool valid { get; }
                public virtual signal void changed (bool is_valid);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_numeric_entry_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_numeric_entry_get_type ()")]
        public class NumericEntry : Gdaui.Entry, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, 
Gtk.Editable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public NumericEntry (GLib.Type type);
@@ -422,7 +422,7 @@ namespace Gdaui {
                [NoAccessorMethod]
                public GLib.Type type { get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_provider_selector_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_provider_selector_get_type ()")]
        public class ProviderSelector : Gdaui.Combo, Atk.Implementor, Gdaui.DataSelector, Gtk.Buildable, 
Gtk.CellEditable, Gtk.CellLayout {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public ProviderSelector ();
@@ -430,18 +430,18 @@ namespace Gdaui {
                public unowned Gda.ServerProvider get_provider_obj ();
                public bool set_provider (string? provider);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_raw_form_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_raw_form_get_type ()")]
        public class RawForm : Gdaui.BasicForm, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector, 
Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RawForm (Gda.DataModel? model);
                [NoAccessorMethod]
                public Gda.DataModel model { owned get; set; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class RawFormPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_raw_grid_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_raw_grid_get_type ()")]
        public class RawGrid : Gtk.TreeView, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector, 
Gtk.Buildable, Gtk.Scrollable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RawGrid (Gda.DataModel model);
@@ -461,11 +461,11 @@ namespace Gdaui {
                public virtual signal void double_clicked (int row);
                public virtual signal void populate_popup (Gtk.Menu menu);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class RawGridPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_rt_editor_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_rt_editor_get_type ()")]
        public class RtEditor : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RtEditor ();
@@ -482,11 +482,11 @@ namespace Gdaui {
                public bool show_markup { get; set; }
                public virtual signal void changed ();
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class RtEditorPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_server_operation_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_server_operation_get_type ()")]
        public class ServerOperation : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public ServerOperation (Gda.ServerOperation op);
@@ -497,11 +497,11 @@ namespace Gdaui {
                [NoAccessorMethod]
                public Gda.ServerOperation server_operation { owned get; construct; }
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class ServerOperationPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_set_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_set_get_type ()")]
        public class Set : GLib.Object {
                public weak GLib.SList<Gdaui.SetGroup> groups_list;
                public weak GLib.SList<Gdaui.SetSource> sources_list;
@@ -513,7 +513,7 @@ namespace Gdaui {
                public virtual signal void public_data_changed ();
                public virtual signal void source_model_changed (void* source);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdaui_set_group_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdaui_set_group_get_type ()")]
        [Compact]
        public class SetGroup {
                public weak Gda.SetGroup group;
@@ -527,11 +527,11 @@ namespace Gdaui {
                public void set_group (Gda.SetGroup group);
                public void set_source (Gdaui.SetSource source);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class SetPriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdaui_set_source_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdaui_set_source_get_type ()")]
        [Compact]
        public class SetSource {
                public int ref_cols_index;
@@ -554,7 +554,7 @@ namespace Gdaui {
                public void set_shown_columns ([CCode (array_length_cname = "n_columns", array_length_pos = 
1.1)] int[] columns);
                public void set_source (Gda.SetSource source);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_tree_store_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_tree_store_get_type ()")]
        public class TreeStore : GLib.Object, Gtk.TreeDragDest, Gtk.TreeDragSource, Gtk.TreeModel {
                [CCode (has_construct_function = false)]
                protected TreeStore ();
@@ -569,11 +569,11 @@ namespace Gdaui {
                public virtual signal bool drag_drop (string path, void* selection_data);
                public virtual signal bool drag_get (string path, void* selection_data);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        [Compact]
        public class TreeStorePriv {
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_entry_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_entry_get_type ()")]
        public interface DataEntry : Gtk.Widget {
                [Deprecated (since = "5.2")]
                public abstract bool can_expand (bool horiz);
@@ -607,7 +607,7 @@ namespace Gdaui {
                public virtual signal void expand_changed ();
                public virtual signal void status_changed ();
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_proxy_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_proxy_get_type ()")]
        public interface DataProxy : GLib.Object {
                public void column_set_editable (int column, bool editable);
                public void column_show_actions (int column, bool show_actions);
@@ -622,7 +622,7 @@ namespace Gdaui {
                public abstract void show_column_actions (int column, bool show_actions);
                public virtual signal void proxy_changed (Gda.DataProxy proxy);
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", type_id = "gdaui_data_selector_get_type ()")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_selector_get_type ()")]
        public interface DataSelector : GLib.Object {
                public abstract unowned Gda.DataModelIter get_data_set ();
                public abstract unowned Gda.DataModel get_model ();
@@ -633,7 +633,7 @@ namespace Gdaui {
                public abstract void unselect_row (int row);
                public virtual signal void selection_changed ();
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", has_type_id = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
        public struct Plugin {
                public weak string plugin_name;
                public weak string plugin_descr;
@@ -643,7 +643,7 @@ namespace Gdaui {
                public weak string options_xml_spec;
                public void declare ();
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", cprefix = "GDAUI_ACTION_", has_type_id = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cprefix = "GDAUI_ACTION_", has_type_id = false)]
        public enum Action {
                NEW_DATA,
                WRITE_MODIFIED_DATA,
@@ -659,7 +659,7 @@ namespace Gdaui {
                MOVE_NEXT_CHUNCK,
                MOVE_LAST_CHUNCK
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", cprefix = "GDAUI_ACTION_", has_type_id = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cprefix = "GDAUI_ACTION_", has_type_id = false)]
        [Flags]
        public enum ActionMode {
                NAVIGATION_ARROWS,
@@ -671,12 +671,12 @@ namespace Gdaui {
                ASK_CONFIRM_INSERT,
                REPORT_ERROR
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", cprefix = "GDAUI_BASIC_FORM_", has_type_id = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cprefix = "GDAUI_BASIC_FORM_", has_type_id = 
false)]
        public enum BasicFormPart {
                LABELS,
                ENTRIES
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", cprefix = "GDAUI_DATA_PROXY_INFO_", has_type_id = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cprefix = "GDAUI_DATA_PROXY_INFO_", has_type_id = 
false)]
        [Flags]
        public enum DataProxyInfoFlag {
                NONE,
@@ -686,52 +686,52 @@ namespace Gdaui {
                CHUNCK_CHANGE_BUTTONS,
                NO_FILTER
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", cprefix = "GDAUI_DATA_PROXY_WRITE_ON_", has_type_id = 
false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cprefix = "GDAUI_DATA_PROXY_WRITE_ON_", 
has_type_id = false)]
        public enum DataProxyWriteMode {
                DEMAND,
                ROW_CHANGE,
                VALUE_ACTIVATED,
                VALUE_CHANGE
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", cprefix = "GDA_UI_LOGIN_", has_type_id = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cprefix = "GDA_UI_LOGIN_", has_type_id = false)]
        [Flags]
        public enum LoginMode {
                ENABLE_CONTROL_CENTRE_MODE,
                HIDE_DSN_SELECTION_MODE,
                HIDE_DIRECT_CONNECTION_MODE
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", cprefix = "GDAUI_DATA_ENTRY_")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cprefix = "GDAUI_DATA_ENTRY_")]
        public errordomain DataEntryError {
                FILE_NOT_FOUND_ERROR,
                INVALID_DATA_ERROR;
                public static GLib.Quark quark ();
        }
-       [CCode (cheader_filename = "Gdaui-5.0.h", has_target = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_target = false)]
        public delegate double CloudWeightFunc (Gda.DataModel model, int row, void* data);
-       [CCode (cheader_filename = "Gdaui-5.0.h", has_target = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_target = false)]
        public delegate void FormattedEntryInsertFunc (Gdaui.FormattedEntry entry, unichar insert_char, int 
virt_pos, void* data);
-       [CCode (cheader_filename = "Gdaui-5.0.h", has_target = false)]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_target = false)]
        public delegate void RawGridFormatFunc (Gtk.CellRenderer cell, Gtk.TreeViewColumn column, int 
column_pos, Gda.DataModel model, int row, void* data);
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_ATTRIBUTE_PLUGIN")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_ATTRIBUTE_PLUGIN")]
        public const string ATTRIBUTE_PLUGIN;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_NORMAL_DEFAULT")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_NORMAL_DEFAULT")]
        public const string COLOR_NORMAL_DEFAULT;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_NORMAL_INVALID")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_NORMAL_INVALID")]
        public const string COLOR_NORMAL_INVALID;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_NORMAL_MODIF")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_NORMAL_MODIF")]
        public const string COLOR_NORMAL_MODIF;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_NORMAL_NULL")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_NORMAL_NULL")]
        public const string COLOR_NORMAL_NULL;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_PRELIGHT_DEFAULT")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_PRELIGHT_DEFAULT")]
        public const string COLOR_PRELIGHT_DEFAULT;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_PRELIGHT_INVALID")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_PRELIGHT_INVALID")]
        public const string COLOR_PRELIGHT_INVALID;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_PRELIGHT_MODIF")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_PRELIGHT_MODIF")]
        public const string COLOR_PRELIGHT_MODIF;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_PRELIGHT_NULL")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_PRELIGHT_NULL")]
        public const string COLOR_PRELIGHT_NULL;
-       [CCode (cheader_filename = "Gdaui-5.0.h", cname = "GDAUI_COLOR_UNKNOWN_MASK")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_UNKNOWN_MASK")]
        public const double COLOR_UNKNOWN_MASK;
-       [CCode (cheader_filename = "Gdaui-5.0.h")]
+       [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
        public static Gdaui.DataEntry new_data_entry (GLib.Type type, string? plugin_name);
 }
diff --git a/libgda/data/DbRecord.vala b/libgda/data/DbRecord.vala
index 4278ab6..48afd96 100644
--- a/libgda/data/DbRecord.vala
+++ b/libgda/data/DbRecord.vala
@@ -30,7 +30,7 @@ namespace GdaData
         /**
          * Returns a GLib.Value containing the value stored in the given field.
          */
-        public abstract Value?                    get_value        (string name) throws Error;
+        public abstract unowned Value?            get_value        (string name) throws Error;
         public abstract void                      set_field        (DbField field) throws Error;
         public abstract void                      set_field_value  (string field, Value? val) throws Error;
         public abstract DbField                   get_field        (string name) throws Error;
diff --git a/libgda/data/DbTable.vala b/libgda/data/DbTable.vala
index a89d0ff..5909c30 100644
--- a/libgda/data/DbTable.vala
+++ b/libgda/data/DbTable.vala
@@ -35,6 +35,7 @@ namespace GdaData
                
                public abstract void         set_field (DbFieldInfo field) throws Error;
                public abstract DbFieldInfo  get_field (string name) throws Error;
+
                
                public enum TableType {
                        NONE,
diff --git a/libgda/data/GdaData-5.0.gir b/libgda/data/GdaData-5.0.gir
index c72c9b1..0326c82 100644
--- a/libgda/data/GdaData-5.0.gir
+++ b/libgda/data/GdaData-5.0.gir
@@ -600,7 +600,7 @@
                <prerequisite name="GdaData.DbObject"/>
                <prerequisite name="Gee.Comparable"/>
                <method name="get_value" c:identifier="gda_data_db_record_get_value" throws="1">
-                       <return-value transfer-ownership="full" allow-none="1">
+                       <return-value transfer-ownership="none" allow-none="1">
                                <type name="GObject.Value" c:type="GValue*"/>
                        </return-value>
                        <parameters>
@@ -610,7 +610,7 @@
                        </parameters>
                </method>
                <virtual-method name="get_value" invoker="get_value" throws="1">
-                       <return-value transfer-ownership="full" allow-none="1">
+                       <return-value transfer-ownership="none" allow-none="1">
                                <type name="GObject.Value" c:type="GValue*"/>
                        </return-value>
                        <parameters>
@@ -821,7 +821,7 @@
                </field>
                <field name="get_value">
                        <callback name="get_value" c:type="get_value" throws="1">
-                               <return-value transfer-ownership="full" allow-none="1">
+                               <return-value transfer-ownership="none" allow-none="1">
                                        <type name="GObject.Value" c:type="GValue*"/>
                                </return-value>
                                <parameters>
diff --git a/libgda/data/Record.vala b/libgda/data/Record.vala
index 8d1a17a..ef37655 100644
--- a/libgda/data/Record.vala
+++ b/libgda/data/Record.vala
@@ -48,7 +48,7 @@ namespace GdaData {
         /**
          * Returns a GLib.Value containing the value stored in the given field.
          */
-        public Value? get_value (string field)
+        public unowned Value? get_value (string field)
                throws Error
         {
                var f = this._fields.get (field);
diff --git a/libgda/data/Table.vala b/libgda/data/Table.vala
index 6e1fb1a..82c3699 100644
--- a/libgda/data/Table.vala
+++ b/libgda/data/Table.vala
@@ -35,7 +35,7 @@ namespace GdaData
                protected HashMap<string,DbFieldInfo> _fields = new HashMap<string,DbFieldInfo> ();
                protected HashMap<string,DbTable>     _depends = new HashMap<string,DbTable> ();
                protected HashMap<string,DbTable>     _referenced = new HashMap<string,DbTable> ();
-               
+
                public Table.with_fields_info (HashMap<string,DbFieldInfo> fields)
                {
                        foreach (DbFieldInfo f in fields.values) {
@@ -395,7 +395,7 @@ namespace GdaData
                        var op = Gda.ServerOperation.prepare_drop_table (connection, name);
                        op.perform_drop_table ();
                }
-               
+
                // DbNamedObject Interface
                
                public string name 


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