[gtk+] GtkSpinButton: Simplify code



commit 88895657358a9ae9d5cd67551f566bd754187920
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 19 22:07:19 2014 -0400

    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 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index b191784..55ae063 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]