[libgda/LIBGDA_4.2] Compilation corrections (TODO)



commit 346e96e0365370cdb801b63de47fa1acb6aef86a
Author: Vivien Malerba <malerba gnome-db org>
Date:   Thu Mar 22 21:59:59 2012 +0100

    Compilation corrections (TODO)

 libgda-ui/libgda-ui.symbols           |    2 --
 providers/mysql/gda-mysql-recordset.c |    7 +++----
 tools/browser/browser-stock-icons.c   |    2 +-
 3 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/libgda-ui/libgda-ui.symbols b/libgda-ui/libgda-ui.symbols
index b7c30cc..81d93ad 100644
--- a/libgda-ui/libgda-ui.symbols
+++ b/libgda-ui/libgda-ui.symbols
@@ -103,7 +103,6 @@
 	gdaui_entry_combo_set_default_values
 	gdaui_entry_combo_set_values
 	gdaui_entry_combo_set_reference_values
-	gdaui_entry_combo_set_unknown_color
 	gdaui_entry_common_time_get_type
 	gdaui_entry_common_time_new
 	gdaui_entry_date_get_type
@@ -134,7 +133,6 @@
 	gdaui_entry_wrapper_contents_activated
 	gdaui_entry_wrapper_contents_changed
 	gdaui_entry_wrapper_get_type
-	gdaui_entry_wrapper_set_unknown_color
 	gdaui_formatted_entry_get_text
 	gdaui_formatted_entry_get_type
 	gdaui_formatted_entry_new
diff --git a/providers/mysql/gda-mysql-recordset.c b/providers/mysql/gda-mysql-recordset.c
index daefbd5..94c1358 100644
--- a/providers/mysql/gda-mysql-recordset.c
+++ b/providers/mysql/gda-mysql-recordset.c
@@ -942,10 +942,9 @@ new_row_from_mysql_stmt (GdaMysqlRecordset *imodel, G_GNUC_UNUSED gint rownum, G
 				setlocale (LC_NUMERIC, "C");
 				if (length > 0) {
 					GdaNumeric *numeric;
-					numeric = gda_numeric_new ();
-					gda_numeric_set_from_string (numeric, strvalue);
-					gda_numeric_set_precision (numeric, 6);
-					gda_numeric_set_width (numeric, length);
+					numeric = g_new0 (GdaNumeric, 1);
+					numeric->number = g_strdup (strvalue);
+					numeric->width = length;
 					gda_value_set_numeric (value, numeric);
 					gda_numeric_free (numeric);
 				}
diff --git a/tools/browser/browser-stock-icons.c b/tools/browser/browser-stock-icons.c
index ac09c4d..628537f 100644
--- a/tools/browser/browser-stock-icons.c
+++ b/tools/browser/browser-stock-icons.c
@@ -92,6 +92,6 @@ browser_stock_icons_init (void)
 	/* FIXME: multi-head! */
 	gchar *path;
 	path = gda_gbr_get_file_path (GDA_DATA_DIR, LIBGDA_ABI_NAME, "icons", NULL);
-	gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), path);
+	//gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), path);
 	g_free (path);
 }



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