[gtk+] GtkMenuItem: Simplify code



commit f5d96445919d659ec0c88aea541b6b79c76f4971
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 19 22:06:37 2014 -0400

    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 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 67c90e2..773f170 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:


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