[libgda] GdauiRawGrid: fixed read handler plugin from xml
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdauiRawGrid: fixed read handler plugin from xml
- Date: Wed, 13 Feb 2019 17:50:29 +0000 (UTC)
commit 07eeabffca1b767db974d8cfbac7498905395974
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Tue Feb 12 16:20:11 2019 -0600
GdauiRawGrid: fixed read handler plugin from xml
libgda-ui/gdaui-raw-grid.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/libgda-ui/gdaui-raw-grid.c b/libgda-ui/gdaui-raw-grid.c
index 42db8a636..7e6ce4719 100644
--- a/libgda-ui/gdaui-raw-grid.c
+++ b/libgda-ui/gdaui-raw-grid.c
@@ -847,10 +847,7 @@ reset_columns_in_xml_layout (GdauiRawGrid *grid, xmlNodePtr grid_node)
xmlChar *plugin;
plugin = xmlGetProp (child, BAD_CAST "plugin");
if (plugin && cdata->single_param) {
- GValue *value;
- value = gda_value_new_from_string ((gchar*) plugin, G_TYPE_STRING);
- g_object_set (cdata->single_param, "plugin", value, NULL);
- gda_value_free (value);
+ g_object_set (cdata->single_param, "plugin", plugin, NULL);
}
if (plugin)
xmlFree (plugin);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]