Make AgChart warn about invalid property IDs

This commit is contained in:
Gergely Polonkai 2014-10-01 23:21:12 +02:00
parent e8d0520d00
commit 05be162c03

View File

@ -187,6 +187,11 @@ ag_chart_set_property(GObject *gobject,
case PROP_NOTE: case PROP_NOTE:
ag_chart_set_note(AG_CHART(gobject), g_value_get_string(value)); ag_chart_set_note(AG_CHART(gobject), g_value_get_string(value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
break; break;
} }
} }
@ -218,6 +223,11 @@ ag_chart_get_property(GObject *gobject,
case PROP_NOTE: case PROP_NOTE:
g_value_set_string(value, priv->note); g_value_set_string(value, priv->note);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
break; break;
} }
} }