From 88895657358a9ae9d5cd67551f566bd754187920 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 19 Oct 2014 22:07:19 -0400 Subject: [PATCH] GtkSpinButton: Simplify code No need to explicitly specify a parser function, it will be correctly guessed from the property type. --- gtk/gtkspinbutton.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index b191784e48..55ae063fe8 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -410,14 +410,13 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class) PROP_ORIENTATION, "orientation"); - gtk_widget_class_install_style_property_parser (widget_class, - g_param_spec_enum ("shadow-type", - "Shadow Type", - P_("Style of bevel around the spin button"), - GTK_TYPE_SHADOW_TYPE, - GTK_SHADOW_IN, - GTK_PARAM_READABLE), - gtk_rc_property_parse_enum); + gtk_widget_class_install_style_property (widget_class, + g_param_spec_enum ("shadow-type", + P_("Shadow Type"), + P_("Style of bevel around the spin button"), + GTK_TYPE_SHADOW_TYPE, + GTK_SHADOW_IN, + GTK_PARAM_READABLE)); /** * GtkSpinButton::input: