diff --git a/gvn/gvn-value.c b/gvn/gvn-value.c
index f676379..558f916 100644
--- a/gvn/gvn-value.c
+++ b/gvn/gvn-value.c
@@ -615,6 +615,8 @@ GValue * gvn_value_new_null ()
gboolean gvn_value_get_boolean (const GValue * value)
{
+ g_return_val_if_fail (G_IS_VALUE (value), FALSE);
+
if (!gvn_value_is_null (value))
return g_value_get_boolean (value);
@@ -630,6 +632,8 @@ GValue * gvn_value_new_boolean (gboolean value)
gint gvn_value_get_int (const GValue * value)
{
+ g_return_val_if_fail (G_IS_VALUE (value), 0);
+
if (!gvn_value_is_null (value))
return g_value_get_int (value);
@@ -645,6 +649,8 @@ GValue * gvn_value_new_int (gint value)
glong gvn_value_get_long (const GValue * value)
{
+ g_return_val_if_fail (G_IS_VALUE (value), 0L);
+
if (!gvn_value_is_null (value))
return g_value_get_long (value);
@@ -660,6 +666,8 @@ GValue * gvn_value_new_long (glong value)
gdouble gvn_value_get_double (const GValue * value)
{
+ g_return_val_if_fail (G_IS_VALUE (value), 0.0);
+
if (!gvn_value_is_null (value))
return g_value_get_double (value);
@@ -675,6 +683,8 @@ GValue * gvn_value_new_double (gdouble value)
const gchar * gvn_value_get_string (const GValue * value)
{
+ g_return_val_if_fail (G_IS_VALUE (value), NULL);
+
if (!gvn_value_is_null (value))
return g_value_get_string (value);
@@ -690,6 +700,8 @@ GValue * gvn_value_new_string (const gchar * value)
gpointer gvn_value_get_boxed (const GValue * value)
{
+ g_return_val_if_fail (G_IS_VALUE (value), NULL);
+
if (!gvn_value_is_null (value))
return g_value_get_boxed (value);
@@ -699,7 +711,7 @@ gpointer gvn_value_get_boxed (const GValue * value)
GValue * gvn_value_new_boxed (gpointer value)
{
GValue * gvalue = g_new0 (GValue, 1);
- g_value_set_string (g_value_init (gvalue, G_TYPE_BOXED), value);
+ g_value_set_boxed (g_value_init (gvalue, G_TYPE_BOXED), value);
return gvalue;
}
diff --git a/module/data/Makefile.am b/module/data/Makefile.am
index b15b0c5..4ef9122 100644
--- a/module/data/Makefile.am
+++ b/module/data/Makefile.am
@@ -6,8 +6,8 @@ example_DATA = \
example.xml \
example-menu.xml \
consulter.glade \
- consulter-menu.xml
+ shelfs.glade \
+ consulter-menu.xml \
customer.glade
-# signer.glade
EXTRA_DIST = $(example_DATA)
diff --git a/module/data/example-menu.xml b/module/data/example-menu.xml
index c086a5f..957c238 100644
--- a/module/data/example-menu.xml
+++ b/module/data/example-menu.xml
@@ -8,11 +8,17 @@