Add nicks and blurbs for child properties. (#57143)
* gtk/gtktable.c (gtk_table_class_init): * gtk/gtknotebook.c (gtk_notebook_class_init): * gtk/gtkbox.c (gtk_box_class_init): Add nicks and blurbs for child properties. (#57143)
This commit is contained in:
@ -438,32 +438,44 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_TAB_LABEL,
|
||||
g_param_spec_string ("tab_label", NULL, NULL,
|
||||
g_param_spec_string ("tab_label",
|
||||
_("Tab label"),
|
||||
_("The string displayed on the childs tab label"),
|
||||
NULL,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_MENU_LABEL,
|
||||
g_param_spec_string ("menu_label", NULL, NULL,
|
||||
g_param_spec_string ("menu_label",
|
||||
_("Menu label"),
|
||||
_("The string displayed in the childs menu entry"),
|
||||
NULL,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_POSITION,
|
||||
g_param_spec_int ("position", NULL, NULL,
|
||||
g_param_spec_int ("position",
|
||||
_("Position"),
|
||||
_("The index of the child in the parent"),
|
||||
-1, G_MAXINT, 0,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_TAB_EXPAND,
|
||||
g_param_spec_boolean ("tab_expand", NULL, NULL,
|
||||
g_param_spec_boolean ("tab_expand",
|
||||
_("Tab expand"),
|
||||
_("Whether to expand the childs tab or not"),
|
||||
TRUE,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_TAB_FILL,
|
||||
g_param_spec_boolean ("tab_fill", NULL, NULL,
|
||||
g_param_spec_boolean ("tab_fill",
|
||||
_("Tab fill"),
|
||||
_("Wheather the childs tab should fill the allocated area or not"),
|
||||
TRUE,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_TAB_PACK,
|
||||
g_param_spec_enum ("tab_pack", NULL, NULL,
|
||||
g_param_spec_enum ("tab_pack",
|
||||
_("Tab pack type"),
|
||||
_("A GtkPackType indicating whether the child is packed with reference to the start or end of the parent"),
|
||||
GTK_TYPE_PACK_TYPE, GTK_PACK_START,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user