mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 11:07: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_NAME, "action-name");
|
||||||
g_object_class_override_property (gobject_class, PROP_ACTION_TARGET, "action-target");
|
g_object_class_override_property (gobject_class, PROP_ACTION_TARGET, "action-target");
|
||||||
|
|
||||||
gtk_widget_class_install_style_property_parser (widget_class,
|
gtk_widget_class_install_style_property (widget_class,
|
||||||
g_param_spec_enum ("selected-shadow-type",
|
g_param_spec_enum ("selected-shadow-type",
|
||||||
"Selected Shadow Type",
|
"Selected Shadow Type",
|
||||||
"Shadow type when item is selected",
|
"Shadow type when item is selected",
|
||||||
GTK_TYPE_SHADOW_TYPE,
|
GTK_TYPE_SHADOW_TYPE,
|
||||||
GTK_SHADOW_NONE,
|
GTK_SHADOW_NONE,
|
||||||
GTK_PARAM_READABLE),
|
GTK_PARAM_READABLE));
|
||||||
gtk_rc_property_parse_enum);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GtkMenuItem:horizontal-padding:
|
* GtkMenuItem:horizontal-padding:
|
||||||
|
Loading…
Reference in New Issue
Block a user