ModelButton: Use WARN_INVALID_PROPERTY, not assert

Do the same thing we do everywhere else for invalid properties.
This commit is contained in:
Daniel Boles 2018-04-08 18:13:33 +01:00
parent 7fd0d3ec51
commit 53a66c0f41

View File

@ -528,7 +528,8 @@ gtk_model_button_get_property (GObject *object,
break;
default:
g_assert_not_reached ();
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
@ -575,7 +576,8 @@ gtk_model_button_set_property (GObject *object,
break;
default:
g_assert_not_reached ();
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}