From f5d96445919d659ec0c88aea541b6b79c76f4971 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 19 Oct 2014 22:06:37 -0400 Subject: [PATCH] GtkMenuItem: Simplify code No need to explicitly specify a parser function, it will be correctly guessed from the property type. --- gtk/gtkmenuitem.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 67c90e2951..773f170097 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -469,14 +469,13 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass) g_object_class_override_property (gobject_class, PROP_ACTION_NAME, "action-name"); g_object_class_override_property (gobject_class, PROP_ACTION_TARGET, "action-target"); - gtk_widget_class_install_style_property_parser (widget_class, - g_param_spec_enum ("selected-shadow-type", - "Selected Shadow Type", - "Shadow type when item is selected", - GTK_TYPE_SHADOW_TYPE, - GTK_SHADOW_NONE, - GTK_PARAM_READABLE), - gtk_rc_property_parse_enum); + gtk_widget_class_install_style_property (widget_class, + g_param_spec_enum ("selected-shadow-type", + "Selected Shadow Type", + "Shadow type when item is selected", + GTK_TYPE_SHADOW_TYPE, + GTK_SHADOW_NONE, + GTK_PARAM_READABLE)); /** * GtkMenuItem:horizontal-padding: