[libgda] Misc. corrections
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Misc. corrections
- Date: Sun, 29 Nov 2015 13:53:42 +0000 (UTC)
commit 79e1ebc695dc023001949b41980b7a987125e39a
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Nov 29 14:46:07 2015 +0100
Misc. corrections
libgda-ui/gdaui-init.c | 2 +-
libgda/gda-connection.h | 1 -
libgda/gda-util.c | 4 ----
libgda/gda-value.c | 4 ++--
4 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/libgda-ui/gdaui-init.c b/libgda-ui/gdaui-init.c
index 0fcfef3..b529de5 100644
--- a/libgda-ui/gdaui-init.c
+++ b/libgda-ui/gdaui-init.c
@@ -439,7 +439,7 @@ init_plugins_hash (void)
plugin->valid_g_types = g_new (GType, plugin->nb_g_types);
plugin->valid_g_types [0] = GDA_TYPE_NUMERIC;
plugin->valid_g_types [1] = G_TYPE_FLOAT;
- plugin->valid_g_types [1] = G_TYPE_DOUBLE;
+ plugin->valid_g_types [2] = G_TYPE_DOUBLE;
plugin->options_xml_spec = NULL;
plugin->entry_create_func = entry_number_create_func;
plugin->cell_create_func = cell_textual_create_func;
diff --git a/libgda/gda-connection.h b/libgda/gda-connection.h
index 965b1a2..94d1b27 100644
--- a/libgda/gda-connection.h
+++ b/libgda/gda-connection.h
@@ -65,7 +65,6 @@ typedef enum {
GDA_CONNECTION_TASK_NOT_FOUND_ERROR,
GDA_CONNECTION_CLOSED_ERROR,
GDA_CONNECTION_META_DATA_CONTEXT_ERROR,
- GDA_CONNECTION_UNSUPPORTED_ASYNC_EXEC_ERROR,
GDA_CONNECTION_NO_MAIN_CONTEXT_ERROR
} GdaConnectionError;
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index 25d666a..7a76e12 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -495,10 +495,6 @@ gda_utility_data_model_dump_data_to_xml (GdaDataModel *model, xmlNodePtr parent,
xmlNodePtr field = NULL;
value = (GValue*) gda_data_model_iter_get_value_at (iter, rcols[c]);
- if (!value) {
- retval = FALSE;
- break;
- }
if (value && !gda_value_is_null ((GValue *) value)) {
if (G_VALUE_TYPE (value) == G_TYPE_BOOLEAN)
str = g_strdup (g_value_get_boolean (value) ? "TRUE" :
"FALSE");
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index 4c2367f..80076f4 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -1654,8 +1654,8 @@ compute_tz_offset (struct tm *gmttm, struct tm *loctm)
return G_MAXLONG;
glong off;
off = lt - gt;
- g_print ("%s(): %02d:%02d:%02d %d\n", __FUNCTION__,
- loctm->tm_hour, loctm->tm_min, loctm->tm_sec, (gint) (off / 3600));
+ /*g_print ("%s(): %02d:%02d:%02d %d\n", __FUNCTION__,
+ loctm->tm_hour, loctm->tm_min, loctm->tm_sec, (gint) (off / 3600));*/
if ((off >= 24 * 3600) || (off <= - 24 * 3600))
return G_MAXLONG;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]