[libgda/LIBGDA_4.2] GdauiTreeStore corrections
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] GdauiTreeStore corrections
- Date: Wed, 26 Oct 2011 18:41:22 +0000 (UTC)
commit d1f067824b4b06868119e23cb6fafec15bf4b62e
Author: Vivien Malerba <malerba gnome-db org>
Date: Thu Oct 20 21:28:50 2011 +0200
GdauiTreeStore corrections
libgda-ui/gdaui-tree-store.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgda-ui/gdaui-tree-store.c b/libgda-ui/gdaui-tree-store.c
index 6ef35a9..bd129cf 100644
--- a/libgda-ui/gdaui-tree-store.c
+++ b/libgda-ui/gdaui-tree-store.c
@@ -380,7 +380,7 @@ gdaui_tree_store_get_property (GObject *object,
if (store->priv) {
switch (param_id) {
case PROP_TREE:
- g_value_set_pointer (value, store->priv->tree);
+ g_value_set_object (value, store->priv->tree);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
@@ -898,7 +898,7 @@ tree_store_iter_n_children (GtkTreeModel *tree_model, GtkTreeIter *iter)
g_slist_free (list);
return retval;
}
- else if (node != NOT_A_NODE) {
+ else if (node && (node != NOT_A_NODE)) {
const GValue *cv;
cv = gda_tree_node_get_node_attribute (node,
GDA_ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN);
@@ -939,7 +939,7 @@ tree_store_iter_nth_child (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeI
return TRUE;
}
}
- else if ((node != NOT_A_NODE) && (n == 0)) {
+ else if (node && (node != NOT_A_NODE) && (n == 0)) {
const GValue *cv;
cv = gda_tree_node_get_node_attribute (node,
GDA_ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]