Commit 13f59223 authored by Danilo Galete's avatar Danilo Galete 💬
Browse files

Change: PROP_TYPE property as a ENUM

parent da479c5e
......@@ -135,7 +135,7 @@ finance_summary_child_get_property (GObject *object,
break;
case PROP_TYPE:
g_value_set_int (value, finance_summary_child_get_type (self));
g_value_set_enum (value, finance_summary_child_get_type (self));
break;
default:
......@@ -191,7 +191,7 @@ finance_summary_child_set_property (GObject *object,
break;
case PROP_TYPE:
finance_summary_child_set_type (self, g_value_get_int (value));
finance_summary_child_set_type (self, g_value_get_enum (value));
break;
default:
......@@ -314,11 +314,12 @@ finance_summary_child_class_init (FinanceSummaryChildClass *klass)
*
* The transaction type
*/
properties[PROP_TYPE] = g_param_spec_int ("type",
"The type",
"The transaction type",
0, 1, 0,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
properties[PROP_TYPE] = g_param_spec_enum ("type",
"The type",
"The transaction type",
FINANCE_TYPE_TRANSACTION,
FINANCE_CREDIT,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, N_PROPS, properties);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment