mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 02:57:38 +00:00
GtkMenuItem: Simplify code
No need to explicitly specify a parser function, it will be correctly guessed from the property type.
This commit is contained in:
parent
4f5db65a06
commit
f5d9644591
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user