forked from AuroraMiddleware/gtk
GtkStack: Use G_PARAM_EXPLICIT_NOTIFY
This commit is contained in:
parent
1edfc8c372
commit
0a681f9224
@ -374,38 +374,30 @@ gtk_stack_class_init (GtkStackClass *klass)
|
|||||||
/*container_class->get_path_for_child = gtk_stack_get_path_for_child; */
|
/*container_class->get_path_for_child = gtk_stack_get_path_for_child; */
|
||||||
gtk_container_class_handle_border_width (container_class);
|
gtk_container_class_handle_border_width (container_class);
|
||||||
|
|
||||||
stack_props[PROP_HOMOGENEOUS] = g_param_spec_boolean ("homogeneous",
|
stack_props[PROP_HOMOGENEOUS] =
|
||||||
P_("Homogeneous"),
|
g_param_spec_boolean ("homogeneous", P_("Homogeneous"), P_("Homogeneous sizing"),
|
||||||
P_("Homogeneous sizing"),
|
TRUE,
|
||||||
TRUE,
|
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY);
|
||||||
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT);
|
stack_props[PROP_VISIBLE_CHILD] =
|
||||||
stack_props[PROP_VISIBLE_CHILD] = g_param_spec_object ("visible-child",
|
g_param_spec_object ("visible-child", P_("Visible child"), P_("The widget currently visible in the stack"),
|
||||||
P_("Visible child"),
|
GTK_TYPE_WIDGET,
|
||||||
P_("The widget currently visible in the stack"),
|
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
|
||||||
GTK_TYPE_WIDGET,
|
stack_props[PROP_VISIBLE_CHILD_NAME] =
|
||||||
GTK_PARAM_READWRITE);
|
g_param_spec_string ("visible-child-name", P_("Name of visible child"), P_("The name of the widget currently visible in the stack"),
|
||||||
stack_props[PROP_VISIBLE_CHILD_NAME] = g_param_spec_string ("visible-child-name",
|
NULL,
|
||||||
P_("Name of visible child"),
|
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
|
||||||
P_("The name of the widget currently visible in the stack"),
|
stack_props[PROP_TRANSITION_DURATION] =
|
||||||
NULL,
|
g_param_spec_uint ("transition-duration", P_("Transition duration"), P_("The animation duration, in milliseconds"),
|
||||||
GTK_PARAM_READWRITE);
|
0, G_MAXUINT, 200,
|
||||||
stack_props[PROP_TRANSITION_DURATION] = g_param_spec_uint ("transition-duration",
|
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY);
|
||||||
P_("Transition duration"),
|
stack_props[PROP_TRANSITION_TYPE] =
|
||||||
P_("The animation duration, in milliseconds"),
|
g_param_spec_enum ("transition-type", P_("Transition type"), P_("The type of animation used to transition"),
|
||||||
0, G_MAXUINT,
|
GTK_TYPE_STACK_TRANSITION_TYPE, GTK_STACK_TRANSITION_TYPE_NONE,
|
||||||
200,
|
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY);
|
||||||
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT);
|
stack_props[PROP_TRANSITION_RUNNING] =
|
||||||
stack_props[PROP_TRANSITION_TYPE] = g_param_spec_enum ("transition-type",
|
g_param_spec_boolean ("transition-running", P_("Transition running"), P_("Whether or not the transition is currently running"),
|
||||||
P_("Transition type"),
|
FALSE,
|
||||||
P_("The type of animation used to transition"),
|
GTK_PARAM_READABLE);
|
||||||
GTK_TYPE_STACK_TRANSITION_TYPE,
|
|
||||||
GTK_STACK_TRANSITION_TYPE_NONE,
|
|
||||||
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT);
|
|
||||||
stack_props[PROP_TRANSITION_RUNNING] = g_param_spec_boolean ("transition-running",
|
|
||||||
P_("Transition running"),
|
|
||||||
P_("Whether or not the transition is currently running"),
|
|
||||||
FALSE,
|
|
||||||
GTK_PARAM_READABLE);
|
|
||||||
|
|
||||||
g_object_class_install_properties (object_class, LAST_PROP, stack_props);
|
g_object_class_install_properties (object_class, LAST_PROP, stack_props);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user