More canonical property names.
This commit is contained in:
parent
263bce4445
commit
52711c24e8
@ -298,7 +298,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_WEBSITE_LABEL,
|
||||
g_param_spec_string ("website_label",
|
||||
g_param_spec_string ("website-label",
|
||||
P_("Website label"),
|
||||
P_("The label for the link to the website of the program. If this is not set, it defaults to the URL"),
|
||||
NULL,
|
||||
@ -367,7 +367,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_TRANSLATOR_CREDITS,
|
||||
g_param_spec_string ("translator_credits",
|
||||
g_param_spec_string ("translator-credits",
|
||||
P_("Translator credits"),
|
||||
P_("Credits to the translators. This string should be marked as translatable"),
|
||||
NULL,
|
||||
@ -399,7 +399,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_LOGO_ICON_NAME,
|
||||
g_param_spec_string ("logo_icon_name",
|
||||
g_param_spec_string ("logo-icon-name",
|
||||
P_("Logo Icon Name"),
|
||||
P_("A named icon to use as the logo for the about box."),
|
||||
NULL,
|
||||
@ -407,7 +407,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
|
||||
|
||||
/* Style properties */
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_boxed ("link_color",
|
||||
g_param_spec_boxed ("link-color",
|
||||
P_("Link Color"),
|
||||
P_("Color of hyperlinks"),
|
||||
GDK_TYPE_COLOR,
|
||||
|
@ -135,14 +135,14 @@ gtk_accel_label_class_init (GtkAccelLabelClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ACCEL_CLOSURE,
|
||||
g_param_spec_boxed ("accel_closure",
|
||||
g_param_spec_boxed ("accel-closure",
|
||||
P_("Accelerator Closure"),
|
||||
P_("The closure to be monitored for accelerator changes"),
|
||||
G_TYPE_CLOSURE,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ACCEL_WIDGET,
|
||||
g_param_spec_object ("accel_widget",
|
||||
g_param_spec_object ("accel-widget",
|
||||
P_("Accelerator Widget"),
|
||||
P_("The widget to be monitored for accelerator changes"),
|
||||
GTK_TYPE_WIDGET,
|
||||
|
@ -208,7 +208,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHORT_LABEL,
|
||||
g_param_spec_string ("short_label",
|
||||
g_param_spec_string ("short-label",
|
||||
P_("Short label"),
|
||||
P_("A shorter label that may be used on toolbar buttons."),
|
||||
NULL,
|
||||
@ -222,7 +222,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_STOCK_ID,
|
||||
g_param_spec_string ("stock_id",
|
||||
g_param_spec_string ("stock-id",
|
||||
P_("Stock Icon"),
|
||||
P_("The stock icon displayed in widgets representing "
|
||||
"this action."),
|
||||
@ -230,7 +230,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_VISIBLE_HORIZONTAL,
|
||||
g_param_spec_boolean ("visible_horizontal",
|
||||
g_param_spec_boolean ("visible-horizontal",
|
||||
P_("Visible when horizontal"),
|
||||
P_("Whether the toolbar item is visible when the toolbar "
|
||||
"is in a horizontal orientation."),
|
||||
@ -246,7 +246,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_VISIBLE_OVERFLOWN,
|
||||
g_param_spec_boolean ("visible_overflown",
|
||||
g_param_spec_boolean ("visible-overflown",
|
||||
P_("Visible when overflown"),
|
||||
P_("When TRUE, toolitem proxies for this action "
|
||||
"are represented in the toolbar overflow menu."),
|
||||
@ -254,7 +254,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_VISIBLE_VERTICAL,
|
||||
g_param_spec_boolean ("visible_vertical",
|
||||
g_param_spec_boolean ("visible-vertical",
|
||||
P_("Visible when vertical"),
|
||||
P_("Whether the toolbar item is visible when the toolbar "
|
||||
"is in a vertical orientation."),
|
||||
@ -262,7 +262,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_IS_IMPORTANT,
|
||||
g_param_spec_boolean ("is_important",
|
||||
g_param_spec_boolean ("is-important",
|
||||
P_("Is important"),
|
||||
P_("Whether the action is considered important. "
|
||||
"When TRUE, toolitem proxies for this action "
|
||||
@ -271,7 +271,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HIDE_IF_EMPTY,
|
||||
g_param_spec_boolean ("hide_if_empty",
|
||||
g_param_spec_boolean ("hide-if-empty",
|
||||
P_("Hide if empty"),
|
||||
P_("When TRUE, empty menu proxies for this action are hidden."),
|
||||
TRUE,
|
||||
@ -292,7 +292,7 @@ gtk_action_class_init (GtkActionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ACTION_GROUP,
|
||||
g_param_spec_object ("action_group",
|
||||
g_param_spec_object ("action-group",
|
||||
P_("Action Group"),
|
||||
P_("The GtkActionGroup this GtkAction is associated with, or NULL (for internal use)."),
|
||||
GTK_TYPE_ACTION_GROUP,
|
||||
|
@ -127,7 +127,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE ));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_OBEY_CHILD,
|
||||
g_param_spec_boolean ("obey_child",
|
||||
g_param_spec_boolean ("obey-child",
|
||||
P_("Obey child"),
|
||||
P_("Force aspect ratio to match that of the frame's child"),
|
||||
TRUE,
|
||||
|
@ -117,7 +117,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
*/
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child_min_width",
|
||||
g_param_spec_int ("child-min-width",
|
||||
P_("Minimum child width"),
|
||||
P_("Minimum width of buttons inside the box"),
|
||||
0,
|
||||
@ -126,7 +126,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child_min_height",
|
||||
g_param_spec_int ("child-min-height",
|
||||
P_("Minimum child height"),
|
||||
P_("Minimum height of buttons inside the box"),
|
||||
0,
|
||||
@ -135,7 +135,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child_internal_pad_x",
|
||||
g_param_spec_int ("child-internal-pad-x",
|
||||
P_("Child internal width padding"),
|
||||
P_("Amount to increase child's size on either side"),
|
||||
0,
|
||||
@ -144,7 +144,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("child_internal_pad_y",
|
||||
g_param_spec_int ("child-internal-pad-y",
|
||||
P_("Child internal height padding"),
|
||||
P_("Amount to increase child's size on the top and bottom"),
|
||||
0,
|
||||
@ -153,7 +153,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
G_PARAM_READABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LAYOUT_STYLE,
|
||||
g_param_spec_enum ("layout_style",
|
||||
g_param_spec_enum ("layout-style",
|
||||
P_("Layout style"),
|
||||
P_("How to layout the buttons in the box. Possible values are default, spread, edge, start and end"),
|
||||
GTK_TYPE_BUTTON_BOX_STYLE,
|
||||
|
@ -496,7 +496,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_HEADING,
|
||||
g_param_spec_boolean ("show_heading",
|
||||
g_param_spec_boolean ("show-heading",
|
||||
P_("Show Heading"),
|
||||
P_("If TRUE, a heading is displayed"),
|
||||
TRUE,
|
||||
@ -511,7 +511,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_DAY_NAMES,
|
||||
g_param_spec_boolean ("show_day_names",
|
||||
g_param_spec_boolean ("show-day-names",
|
||||
P_("Show Day Names"),
|
||||
P_("If TRUE, day names are displayed"),
|
||||
TRUE,
|
||||
@ -525,7 +525,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_NO_MONTH_CHANGE,
|
||||
g_param_spec_boolean ("no_month_change",
|
||||
g_param_spec_boolean ("no-month-change",
|
||||
P_("No Month Change"),
|
||||
P_("If TRUE, the selected month cannot be changed"),
|
||||
FALSE,
|
||||
@ -540,7 +540,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_WEEK_NUMBERS,
|
||||
g_param_spec_boolean ("show_week_numbers",
|
||||
g_param_spec_boolean ("show-week-numbers",
|
||||
P_("Show Week Numbers"),
|
||||
P_("If TRUE, week numbers are displayed"),
|
||||
FALSE,
|
||||
|
@ -105,7 +105,7 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_TEXT_COLUMN,
|
||||
g_param_spec_int ("text_column",
|
||||
g_param_spec_int ("text-column",
|
||||
P_("Text Column"),
|
||||
P_("A column in the data source model to get the strings from"),
|
||||
-1,
|
||||
@ -123,7 +123,7 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_HAS_ENTRY,
|
||||
g_param_spec_boolean ("has_entry",
|
||||
g_param_spec_boolean ("has-entry",
|
||||
P_("Has Entry"),
|
||||
P_("If FALSE, don't allow to enter strings other than the chosen ones"),
|
||||
TRUE,
|
||||
|
@ -143,7 +143,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_PIXBUF_EXPANDER_OPEN,
|
||||
g_param_spec_object ("pixbuf_expander_open",
|
||||
g_param_spec_object ("pixbuf-expander-open",
|
||||
P_("Pixbuf Expander Open"),
|
||||
P_("Pixbuf for open expander"),
|
||||
GDK_TYPE_PIXBUF,
|
||||
@ -152,7 +152,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_PIXBUF_EXPANDER_CLOSED,
|
||||
g_param_spec_object ("pixbuf_expander_closed",
|
||||
g_param_spec_object ("pixbuf-expander-closed",
|
||||
P_("Pixbuf Expander Closed"),
|
||||
P_("Pixbuf for closed expander"),
|
||||
GDK_TYPE_PIXBUF,
|
||||
@ -161,7 +161,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_STOCK_ID,
|
||||
g_param_spec_string ("stock_id",
|
||||
g_param_spec_string ("stock-id",
|
||||
P_("Stock ID"),
|
||||
P_("The stock ID of the stock icon to render"),
|
||||
NULL,
|
||||
@ -169,7 +169,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_STOCK_SIZE,
|
||||
g_param_spec_uint ("stock_size",
|
||||
g_param_spec_uint ("stock-size",
|
||||
P_("Size"),
|
||||
P_("The GtkIconSize value that specifies the size of the rendered icon"),
|
||||
0,
|
||||
@ -179,7 +179,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_STOCK_DETAIL,
|
||||
g_param_spec_string ("stock_detail",
|
||||
g_param_spec_string ("stock-detail",
|
||||
P_("Detail"),
|
||||
P_("Render detail to pass to the theme engine"),
|
||||
NULL,
|
||||
@ -195,7 +195,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_FOLLOW_STATE,
|
||||
g_param_spec_boolean ("follow_state",
|
||||
g_param_spec_boolean ("follow-state",
|
||||
P_("Follow State"),
|
||||
P_("Whether the rendered pixbuf should be "
|
||||
"colorized according to the state"),
|
||||
|
@ -185,7 +185,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_BACKGROUND_GDK,
|
||||
g_param_spec_boxed ("background_gdk",
|
||||
g_param_spec_boxed ("background-gdk",
|
||||
P_("Background color"),
|
||||
P_("Background color as a GdkColor"),
|
||||
GDK_TYPE_COLOR,
|
||||
@ -193,7 +193,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
|
||||
|
||||
#define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (gobject_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE))
|
||||
|
||||
ADD_SET_PROP ("background_set", PROP_BACKGROUND_SET,
|
||||
ADD_SET_PROP ("background-set", PROP_BACKGROUND_SET,
|
||||
P_("Background set"),
|
||||
P_("Whether this tag affects the background color"));
|
||||
|
||||
|
@ -96,7 +96,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
|
||||
class->draw_indicator = gtk_real_check_button_draw_indicator;
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("indicator_size",
|
||||
g_param_spec_int ("indicator-size",
|
||||
P_("Indicator Size"),
|
||||
P_("Size of check or radio indicator"),
|
||||
0,
|
||||
@ -104,7 +104,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
|
||||
INDICATOR_SIZE,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("indicator_spacing",
|
||||
g_param_spec_int ("indicator-spacing",
|
||||
P_("Indicator Spacing"),
|
||||
P_("Spacing around check or radio indicator"),
|
||||
0,
|
||||
|
@ -130,14 +130,14 @@ gtk_check_menu_item_class_init (GtkCheckMenuItemClass *klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_DRAW_AS_RADIO,
|
||||
g_param_spec_boolean ("draw_as_radio",
|
||||
g_param_spec_boolean ("draw-as-radio",
|
||||
P_("Draw as radio menu item"),
|
||||
P_("Whether the menu item looks like a radio menu item"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("indicator_size",
|
||||
g_param_spec_int ("indicator-size",
|
||||
P_("Indicator Size")
|
||||
,
|
||||
P_("Size of check or radio indicator"),
|
||||
|
@ -575,19 +575,19 @@ gtk_clist_class_init (GtkCListClass *klass)
|
||||
klass->set_cell_contents = set_cell_contents;
|
||||
klass->cell_size_request = cell_size_request;
|
||||
|
||||
gtk_object_add_arg_type ("GtkCList::n_columns",
|
||||
gtk_object_add_arg_type ("GtkCList::n-columns",
|
||||
GTK_TYPE_UINT,
|
||||
GTK_ARG_READWRITE | GTK_ARG_CONSTRUCT_ONLY,
|
||||
ARG_N_COLUMNS);
|
||||
gtk_object_add_arg_type ("GtkCList::shadow_type",
|
||||
gtk_object_add_arg_type ("GtkCList::shadow-type",
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_SHADOW_TYPE);
|
||||
gtk_object_add_arg_type ("GtkCList::selection_mode",
|
||||
gtk_object_add_arg_type ("GtkCList::selection-mode",
|
||||
GTK_TYPE_SELECTION_MODE,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_SELECTION_MODE);
|
||||
gtk_object_add_arg_type ("GtkCList::row_height",
|
||||
gtk_object_add_arg_type ("GtkCList::row-height",
|
||||
GTK_TYPE_UINT,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_ROW_HEIGHT);
|
||||
@ -595,15 +595,15 @@ gtk_clist_class_init (GtkCListClass *klass)
|
||||
GTK_TYPE_BOOL,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_REORDERABLE);
|
||||
gtk_object_add_arg_type ("GtkCList::titles_active",
|
||||
gtk_object_add_arg_type ("GtkCList::titles-active",
|
||||
GTK_TYPE_BOOL,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_TITLES_ACTIVE);
|
||||
gtk_object_add_arg_type ("GtkCList::use_drag_icons",
|
||||
gtk_object_add_arg_type ("GtkCList::use-drag-icons",
|
||||
GTK_TYPE_BOOL,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_USE_DRAG_ICONS);
|
||||
gtk_object_add_arg_type ("GtkCList::sort_type",
|
||||
gtk_object_add_arg_type ("GtkCList::sort-type",
|
||||
GTK_TYPE_SORT_TYPE,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_SORT_TYPE);
|
||||
@ -870,11 +870,11 @@ gtk_clist_class_init (GtkCListClass *klass)
|
||||
"scroll_horizontal", 2,
|
||||
GTK_TYPE_ENUM, GTK_SCROLL_JUMP,
|
||||
GTK_TYPE_FLOAT, 1.0);
|
||||
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_KP_End, 0,
|
||||
"scroll_horizontal", 2,
|
||||
GTK_TYPE_ENUM, GTK_SCROLL_JUMP,
|
||||
GTK_TYPE_FLOAT, 1.0);
|
||||
|
||||
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0,
|
||||
"undo_selection", 0);
|
||||
|
@ -200,7 +200,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_USE_ALPHA,
|
||||
g_param_spec_boolean ("use_alpha", P_("Use alpha"),
|
||||
g_param_spec_boolean ("use-alpha", P_("Use alpha"),
|
||||
P_("Whether or not to give the color an alpha value"),
|
||||
FALSE,
|
||||
(G_PARAM_READABLE | G_PARAM_WRITABLE)));
|
||||
|
@ -1813,28 +1813,28 @@ gtk_color_selection_class_init (GtkColorSelectionClass *klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HAS_OPACITY_CONTROL,
|
||||
g_param_spec_boolean ("has_opacity_control",
|
||||
g_param_spec_boolean ("has-opacity-control",
|
||||
P_("Has Opacity Control"),
|
||||
P_("Whether the color selector should allow setting opacity"),
|
||||
FALSE,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HAS_PALETTE,
|
||||
g_param_spec_boolean ("has_palette",
|
||||
g_param_spec_boolean ("has-palette",
|
||||
P_("Has palette"),
|
||||
P_("Whether a palette should be used"),
|
||||
FALSE,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CURRENT_COLOR,
|
||||
g_param_spec_boxed ("current_color",
|
||||
g_param_spec_boxed ("current-color",
|
||||
P_("Current Color"),
|
||||
P_("The current color"),
|
||||
GDK_TYPE_COLOR,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CURRENT_ALPHA,
|
||||
g_param_spec_uint ("current_alpha",
|
||||
g_param_spec_uint ("current-alpha",
|
||||
P_("Current Alpha"),
|
||||
P_("The current opacity value (0 fully transparent, 65535 fully opaque)"),
|
||||
0, 65535, 65535,
|
||||
|
@ -141,21 +141,21 @@ gtk_combo_class_init (GtkComboClass * klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ENABLE_ARROW_KEYS,
|
||||
g_param_spec_boolean ("enable_arrow_keys",
|
||||
g_param_spec_boolean ("enable-arrow-keys",
|
||||
P_("Enable arrow keys"),
|
||||
P_("Whether the arrow keys move through the list of items"),
|
||||
TRUE,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ENABLE_ARROWS_ALWAYS,
|
||||
g_param_spec_boolean ("enable_arrows_always",
|
||||
g_param_spec_boolean ("enable-arrows-always",
|
||||
P_("Always enable arrows"),
|
||||
P_("Obsolete property, ignored"),
|
||||
TRUE,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CASE_SENSITIVE,
|
||||
g_param_spec_boolean ("case_sensitive",
|
||||
g_param_spec_boolean ("case-sensitive",
|
||||
P_("Case sensitive"),
|
||||
P_("Whether list item matching is case sensitive"),
|
||||
FALSE,
|
||||
@ -163,7 +163,7 @@ gtk_combo_class_init (GtkComboClass * klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ALLOW_EMPTY,
|
||||
g_param_spec_boolean ("allow_empty",
|
||||
g_param_spec_boolean ("allow-empty",
|
||||
P_("Allow empty"),
|
||||
P_("Whether an empty value may be entered in this field"),
|
||||
TRUE,
|
||||
@ -171,7 +171,7 @@ gtk_combo_class_init (GtkComboClass * klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_VALUE_IN_LIST,
|
||||
g_param_spec_boolean ("value_in_list",
|
||||
g_param_spec_boolean ("value-in-list",
|
||||
P_("Value in list"),
|
||||
P_("Whether entered values must already be present in the list"),
|
||||
FALSE,
|
||||
|
@ -564,7 +564,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_WRAP_WIDTH,
|
||||
g_param_spec_int ("wrap_width",
|
||||
g_param_spec_int ("wrap-width",
|
||||
P_("Wrap width"),
|
||||
P_("Wrap width for layouting the items in a grid"),
|
||||
0,
|
||||
@ -587,7 +587,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_ROW_SPAN_COLUMN,
|
||||
g_param_spec_int ("row_span_column",
|
||||
g_param_spec_int ("row-span-column",
|
||||
P_("Row span column"),
|
||||
P_("TreeModel column containing the row span values"),
|
||||
-1,
|
||||
@ -609,7 +609,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_COLUMN_SPAN_COLUMN,
|
||||
g_param_spec_int ("column_span_column",
|
||||
g_param_spec_int ("column-span-column",
|
||||
P_("Column span column"),
|
||||
P_("TreeModel column containing the column span values"),
|
||||
-1,
|
||||
@ -674,7 +674,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_FOCUS_ON_CLICK,
|
||||
g_param_spec_boolean ("focus_on_click",
|
||||
g_param_spec_boolean ("focus-on-click",
|
||||
P_("Focus on click"),
|
||||
P_("Whether the combo box grabs focus when it is clicked with the mouse"),
|
||||
TRUE,
|
||||
|
@ -110,7 +110,7 @@ gtk_combo_box_entry_class_init (GtkComboBoxEntryClass *klass)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_TEXT_COLUMN,
|
||||
g_param_spec_int ("text_column",
|
||||
g_param_spec_int ("text-column",
|
||||
P_("Text Column"),
|
||||
P_("A column in the data source model to get the strings from"),
|
||||
-1,
|
||||
|
@ -404,11 +404,11 @@ gtk_ctree_class_init (GtkCTreeClass *klass)
|
||||
klass->tree_move = real_tree_move;
|
||||
klass->change_focus_row_expansion = change_focus_row_expansion;
|
||||
|
||||
gtk_object_add_arg_type ("GtkCTree::n_columns", /* overrides GtkCList::n_columns!! */
|
||||
gtk_object_add_arg_type ("GtkCTree::n-columns", /* overrides GtkCList::n_columns!! */
|
||||
GTK_TYPE_UINT,
|
||||
GTK_ARG_READWRITE | GTK_ARG_CONSTRUCT_ONLY,
|
||||
ARG_N_COLUMNS);
|
||||
gtk_object_add_arg_type ("GtkCTree::tree_column",
|
||||
gtk_object_add_arg_type ("GtkCTree::tree-column",
|
||||
GTK_TYPE_UINT,
|
||||
GTK_ARG_READWRITE | GTK_ARG_CONSTRUCT_ONLY,
|
||||
ARG_TREE_COLUMN);
|
||||
@ -420,15 +420,15 @@ gtk_ctree_class_init (GtkCTreeClass *klass)
|
||||
GTK_TYPE_UINT,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_SPACING);
|
||||
gtk_object_add_arg_type ("GtkCTree::show_stub",
|
||||
gtk_object_add_arg_type ("GtkCTree::show-stub",
|
||||
GTK_TYPE_BOOL,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_SHOW_STUB);
|
||||
gtk_object_add_arg_type ("GtkCTree::line_style",
|
||||
gtk_object_add_arg_type ("GtkCTree::line-style",
|
||||
GTK_TYPE_CTREE_LINE_STYLE,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_LINE_STYLE);
|
||||
gtk_object_add_arg_type ("GtkCTree::expander_style",
|
||||
gtk_object_add_arg_type ("GtkCTree::expander-style",
|
||||
GTK_TYPE_CTREE_EXPANDER_STYLE,
|
||||
GTK_ARG_READWRITE,
|
||||
ARG_EXPANDER_STYLE);
|
||||
|
@ -119,7 +119,7 @@ gtk_curve_class_init (GtkCurveClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CURVE_TYPE,
|
||||
g_param_spec_enum ("curve_type",
|
||||
g_param_spec_enum ("curve-type",
|
||||
P_("Curve type"),
|
||||
P_("Is this curve linear, spline interpolated, or free-form"),
|
||||
GTK_TYPE_CURVE_TYPE,
|
||||
@ -128,7 +128,7 @@ gtk_curve_class_init (GtkCurveClass *class)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MIN_X,
|
||||
g_param_spec_float ("min_x",
|
||||
g_param_spec_float ("min-x",
|
||||
P_("Minimum X"),
|
||||
P_("Minimum possible value for X"),
|
||||
-G_MAXFLOAT,
|
||||
@ -138,7 +138,7 @@ gtk_curve_class_init (GtkCurveClass *class)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MAX_X,
|
||||
g_param_spec_float ("max_x",
|
||||
g_param_spec_float ("max-x",
|
||||
P_("Maximum X"),
|
||||
P_("Maximum possible X value"),
|
||||
-G_MAXFLOAT,
|
||||
@ -148,7 +148,7 @@ gtk_curve_class_init (GtkCurveClass *class)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MIN_Y,
|
||||
g_param_spec_float ("min_y",
|
||||
g_param_spec_float ("min-y",
|
||||
P_("Minimum Y"),
|
||||
P_("Minimum possible value for Y"),
|
||||
-G_MAXFLOAT,
|
||||
@ -158,7 +158,7 @@ gtk_curve_class_init (GtkCurveClass *class)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MAX_Y,
|
||||
g_param_spec_float ("max_y",
|
||||
g_param_spec_float ("max-y",
|
||||
P_("Maximum Y"),
|
||||
P_("Maximum possible value for Y"),
|
||||
-G_MAXFLOAT,
|
||||
|
@ -144,7 +144,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HAS_SEPARATOR,
|
||||
g_param_spec_boolean ("has_separator",
|
||||
g_param_spec_boolean ("has-separator",
|
||||
P_("Has separator"),
|
||||
P_("The dialog has a separator bar above its buttons"),
|
||||
TRUE,
|
||||
@ -170,7 +170,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("content_area_border",
|
||||
g_param_spec_int ("content-area-border",
|
||||
P_("Content area border"),
|
||||
P_("Width of border around the main dialog area"),
|
||||
0,
|
||||
@ -178,7 +178,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
|
||||
2,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("button_spacing",
|
||||
g_param_spec_int ("button-spacing",
|
||||
P_("Button spacing"),
|
||||
P_("Spacing between buttons"),
|
||||
0,
|
||||
@ -187,7 +187,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("action_area_border",
|
||||
g_param_spec_int ("action-area-border",
|
||||
P_("Action area border"),
|
||||
P_("Width of border around the button area at the bottom of the dialog"),
|
||||
0,
|
||||
|
@ -275,7 +275,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_MINIMUM_KEY_LENGTH,
|
||||
g_param_spec_int ("minimum_key_length",
|
||||
g_param_spec_int ("minimum-key-length",
|
||||
P_("Minimum Key Length"),
|
||||
P_("Minimum length of the search key in order to look up matches"),
|
||||
0,
|
||||
@ -291,7 +291,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_TEXT_COLUMN,
|
||||
g_param_spec_int ("text_column",
|
||||
g_param_spec_int ("text-column",
|
||||
P_("Text column"),
|
||||
P_("The column of the model containing the strings."),
|
||||
-1,
|
||||
@ -309,7 +309,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
|
||||
**/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_INLINE_COMPLETION,
|
||||
g_param_spec_boolean ("inline_completion",
|
||||
g_param_spec_boolean ("inline-completion",
|
||||
P_("Inline completion"),
|
||||
P_("Whether the common prefix should be inserted automatically"),
|
||||
FALSE,
|
||||
@ -324,7 +324,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
|
||||
**/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_POPUP_COMPLETION,
|
||||
g_param_spec_boolean ("popup_completion",
|
||||
g_param_spec_boolean ("popup-completion",
|
||||
P_("Popup completion"),
|
||||
P_("Whether the completions should be shown in a popup window"),
|
||||
TRUE,
|
||||
|
@ -563,7 +563,7 @@ gtk_file_selection_class_init (GtkFileSelectionClass *class)
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_FILEOPS,
|
||||
g_param_spec_boolean ("show_fileops",
|
||||
g_param_spec_boolean ("show-fileops",
|
||||
P_("Show file operations"),
|
||||
P_("Whether buttons for creating/manipulating files should be displayed"),
|
||||
FALSE,
|
||||
@ -571,7 +571,7 @@ gtk_file_selection_class_init (GtkFileSelectionClass *class)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SELECT_MULTIPLE,
|
||||
g_param_spec_boolean ("select_multiple",
|
||||
g_param_spec_boolean ("select-multiple",
|
||||
P_("Select multiple"),
|
||||
P_("Whether to allow multiple files to be selected"),
|
||||
FALSE,
|
||||
|
@ -188,7 +188,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_FONT_NAME,
|
||||
g_param_spec_string ("font_name",
|
||||
g_param_spec_string ("font-name",
|
||||
P_("Font name"),
|
||||
P_("The name of the selected font"),
|
||||
P_("Sans 12"),
|
||||
@ -204,7 +204,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_USE_FONT,
|
||||
g_param_spec_boolean ("use_font",
|
||||
g_param_spec_boolean ("use-font",
|
||||
P_("Use font in label"),
|
||||
P_("Whether the label is drawn in the selected font"),
|
||||
FALSE,
|
||||
@ -220,7 +220,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_USE_SIZE,
|
||||
g_param_spec_boolean ("use_size",
|
||||
g_param_spec_boolean ("use-size",
|
||||
P_("Use size in label"),
|
||||
P_("Whether the label is drawn with the selected font size"),
|
||||
FALSE,
|
||||
@ -237,7 +237,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_STYLE,
|
||||
g_param_spec_boolean ("show_style",
|
||||
g_param_spec_boolean ("show-style",
|
||||
P_("Show style"),
|
||||
P_("Whether the selected font style is shown in the label"),
|
||||
TRUE,
|
||||
@ -253,7 +253,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_SIZE,
|
||||
g_param_spec_boolean ("show_size",
|
||||
g_param_spec_boolean ("show-size",
|
||||
P_("Show size"),
|
||||
P_("Whether selected font size is shown in the label"),
|
||||
TRUE,
|
||||
@ -269,7 +269,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
font_button_signals[FONT_SET] = g_signal_new ("font_set",
|
||||
font_button_signals[FONT_SET] = g_signal_new ("font-set",
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GtkFontButtonClass, font_set),
|
||||
|
@ -211,7 +211,7 @@ gtk_font_selection_class_init (GtkFontSelectionClass *klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_FONT_NAME,
|
||||
g_param_spec_string ("font_name",
|
||||
g_param_spec_string ("font-name",
|
||||
P_("Font name"),
|
||||
P_("The X string that represents this font"),
|
||||
NULL,
|
||||
@ -225,7 +225,7 @@ gtk_font_selection_class_init (GtkFontSelectionClass *klass)
|
||||
G_PARAM_READABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PREVIEW_TEXT,
|
||||
g_param_spec_string ("preview_text",
|
||||
g_param_spec_string ("preview-text",
|
||||
P_("Preview text"),
|
||||
P_("The text to display in order to demonstrate the selected font"),
|
||||
PREVIEW_TEXT,
|
||||
|
@ -131,7 +131,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LABEL_XALIGN,
|
||||
g_param_spec_float ("label_xalign",
|
||||
g_param_spec_float ("label-xalign",
|
||||
P_("Label xalign"),
|
||||
P_("The horizontal alignment of the label"),
|
||||
0.0,
|
||||
@ -141,7 +141,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
||||
G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LABEL_YALIGN,
|
||||
g_param_spec_float ("label_yalign",
|
||||
g_param_spec_float ("label-yalign",
|
||||
P_("Label yalign"),
|
||||
P_("The vertical alignment of the label"),
|
||||
0.0,
|
||||
@ -158,7 +158,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHADOW_TYPE,
|
||||
g_param_spec_enum ("shadow_type",
|
||||
g_param_spec_enum ("shadow-type",
|
||||
P_("Frame shadow"),
|
||||
P_("Appearance of the frame border"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
@ -167,7 +167,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LABEL_WIDGET,
|
||||
g_param_spec_object ("label_widget",
|
||||
g_param_spec_object ("label-widget",
|
||||
P_("Label widget"),
|
||||
P_("A widget to display in place of the usual frame label"),
|
||||
GTK_TYPE_WIDGET,
|
||||
|
@ -203,7 +203,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHADOW_TYPE,
|
||||
g_param_spec_enum ("shadow_type",
|
||||
g_param_spec_enum ("shadow-type",
|
||||
P_("Shadow type"),
|
||||
P_("Appearance of the shadow that surrounds the container"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
@ -212,7 +212,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HANDLE_POSITION,
|
||||
g_param_spec_enum ("handle_position",
|
||||
g_param_spec_enum ("handle-position",
|
||||
P_("Handle position"),
|
||||
P_("Position of the handle relative to the child widget"),
|
||||
GTK_TYPE_POSITION_TYPE,
|
||||
@ -221,7 +221,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SNAP_EDGE,
|
||||
g_param_spec_enum ("snap_edge",
|
||||
g_param_spec_enum ("snap-edge",
|
||||
P_("Snap edge"),
|
||||
P_("Side of the handlebox that's lined up with the docking point to dock the handlebox"),
|
||||
GTK_TYPE_POSITION_TYPE,
|
||||
@ -230,7 +230,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SNAP_EDGE_SET,
|
||||
g_param_spec_boolean ("snap_edge_set",
|
||||
g_param_spec_boolean ("snap-edge-set",
|
||||
P_("Snap edge set"),
|
||||
P_("Whether to use the value from the snap_edge property or a value derived from handle_position"),
|
||||
FALSE,
|
||||
|
@ -329,7 +329,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SELECTION_MODE,
|
||||
g_param_spec_enum ("selection_mode",
|
||||
g_param_spec_enum ("selection-mode",
|
||||
P_("Selection mode"),
|
||||
P_("The selection mode"),
|
||||
GTK_TYPE_SELECTION_MODE,
|
||||
@ -348,7 +348,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PIXBUF_COLUMN,
|
||||
g_param_spec_int ("pixbuf_column",
|
||||
g_param_spec_int ("pixbuf-column",
|
||||
P_("Pixbuf column"),
|
||||
P_("Model column used to retrieve the icon pixbuf from"),
|
||||
-1, G_MAXINT, -1,
|
||||
@ -366,7 +366,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_TEXT_COLUMN,
|
||||
g_param_spec_int ("text_column",
|
||||
g_param_spec_int ("text-column",
|
||||
P_("Text column"),
|
||||
P_("Model column used to retrieve the text from"),
|
||||
-1, G_MAXINT, -1,
|
||||
@ -386,7 +386,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MARKUP_COLUMN,
|
||||
g_param_spec_int ("markup_column",
|
||||
g_param_spec_int ("markup-column",
|
||||
P_("Markup column"),
|
||||
P_("Model column used to retrieve the text if using Pango markup"),
|
||||
-1, G_MAXINT, -1,
|
||||
@ -429,7 +429,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ITEM_WIDTH,
|
||||
g_param_spec_int ("item_width",
|
||||
g_param_spec_int ("item-width",
|
||||
P_("Width for each item"),
|
||||
P_("The width used for each item"),
|
||||
-1, G_MAXINT, -1,
|
||||
@ -461,7 +461,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ROW_SPACING,
|
||||
g_param_spec_int ("row_spacing",
|
||||
g_param_spec_int ("row-spacing",
|
||||
P_("Row Spacing"),
|
||||
P_("Space which is inserted between grid rows"),
|
||||
0, G_MAXINT, 6,
|
||||
@ -477,7 +477,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_COLUMN_SPACING,
|
||||
g_param_spec_int ("column_spacing",
|
||||
g_param_spec_int ("column-spacing",
|
||||
P_("Column Spacing"),
|
||||
P_("Space which is inserted between grid column"),
|
||||
0, G_MAXINT, 6,
|
||||
@ -519,14 +519,14 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
|
||||
/* Style properties */
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_boxed ("selection_box_color",
|
||||
g_param_spec_boxed ("selection-box-color",
|
||||
P_("Selection Box Color"),
|
||||
P_("Color of the selection box"),
|
||||
GDK_TYPE_COLOR,
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_uchar ("selection_box_alpha",
|
||||
g_param_spec_uchar ("selection-box-alpha",
|
||||
P_("Selection Box Alpha"),
|
||||
P_("Opacity of the selection box"),
|
||||
0, 0xff,
|
||||
|
@ -203,7 +203,7 @@ gtk_image_class_init (GtkImageClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ICON_SET,
|
||||
g_param_spec_boxed ("icon_set",
|
||||
g_param_spec_boxed ("icon-set",
|
||||
P_("Icon set"),
|
||||
P_("Icon set to display"),
|
||||
GTK_TYPE_ICON_SET,
|
||||
@ -211,7 +211,7 @@ gtk_image_class_init (GtkImageClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ICON_SIZE,
|
||||
g_param_spec_int ("icon_size",
|
||||
g_param_spec_int ("icon-size",
|
||||
P_("Icon size"),
|
||||
P_("Symbolic size to use for stock icon, icon set or named icon"),
|
||||
0, G_MAXINT,
|
||||
@ -228,7 +228,7 @@ gtk_image_class_init (GtkImageClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PIXEL_SIZE,
|
||||
g_param_spec_int ("pixel_size",
|
||||
g_param_spec_int ("pixel-size",
|
||||
P_("Pixel size"),
|
||||
P_("Pixel size to use for named icon"),
|
||||
-1, G_MAXINT,
|
||||
@ -237,7 +237,7 @@ gtk_image_class_init (GtkImageClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PIXBUF_ANIMATION,
|
||||
g_param_spec_object ("pixbuf_animation",
|
||||
g_param_spec_object ("pixbuf-animation",
|
||||
P_("Animation"),
|
||||
P_("GdkPixbufAnimation to display"),
|
||||
GDK_TYPE_PIXBUF_ANIMATION,
|
||||
@ -253,7 +253,7 @@ gtk_image_class_init (GtkImageClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ICON_NAME,
|
||||
g_param_spec_string ("icon_name",
|
||||
g_param_spec_string ("icon-name",
|
||||
P_("Icon Name"),
|
||||
P_("The name of the icon from the icon theme"),
|
||||
NULL,
|
||||
@ -261,7 +261,7 @@ gtk_image_class_init (GtkImageClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_STORAGE_TYPE,
|
||||
g_param_spec_enum ("storage_type",
|
||||
g_param_spec_enum ("storage-Type",
|
||||
P_("Storage type"),
|
||||
P_("The representation being used for image data"),
|
||||
GTK_TYPE_IMAGE_TYPE,
|
||||
|
@ -575,7 +575,7 @@ gtk_menu_class_init (GtkMenuClass *class)
|
||||
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_LEFT_ATTACH,
|
||||
g_param_spec_int ("left_attach",
|
||||
g_param_spec_int ("left-attach",
|
||||
P_("Left Attach"),
|
||||
P_("The column number to attach the left side of the child to"),
|
||||
-1, INT_MAX, -1,
|
||||
@ -583,7 +583,7 @@ gtk_menu_class_init (GtkMenuClass *class)
|
||||
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_RIGHT_ATTACH,
|
||||
g_param_spec_int ("right_attach",
|
||||
g_param_spec_int ("right-attach",
|
||||
P_("Right Attach"),
|
||||
P_("The column number to attach the right side of the child to"),
|
||||
-1, INT_MAX, -1,
|
||||
@ -591,7 +591,7 @@ gtk_menu_class_init (GtkMenuClass *class)
|
||||
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_TOP_ATTACH,
|
||||
g_param_spec_int ("top_attach",
|
||||
g_param_spec_int ("top-attach",
|
||||
P_("Top Attach"),
|
||||
P_("The row number to attach the top of the child to"),
|
||||
-1, INT_MAX, -1,
|
||||
@ -599,7 +599,7 @@ gtk_menu_class_init (GtkMenuClass *class)
|
||||
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_BOTTOM_ATTACH,
|
||||
g_param_spec_int ("bottom_attach",
|
||||
g_param_spec_int ("bottom-attach",
|
||||
P_("Bottom Attach"),
|
||||
P_("The row number to attach the bottom of the child to"),
|
||||
-1, INT_MAX, -1,
|
||||
|
@ -196,7 +196,7 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PACK_DIRECTION,
|
||||
g_param_spec_enum ("pack_direction",
|
||||
g_param_spec_enum ("pack-direction",
|
||||
P_("Pack direction"),
|
||||
P_("The pack direction of the menubar"),
|
||||
GTK_TYPE_PACK_DIRECTION,
|
||||
@ -213,7 +213,7 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CHILD_PACK_DIRECTION,
|
||||
g_param_spec_enum ("child_pack_direction",
|
||||
g_param_spec_enum ("child-pack-direction",
|
||||
P_("Child Pack direction"),
|
||||
P_("The child pack direction of the menubar"),
|
||||
GTK_TYPE_PACK_DIRECTION,
|
||||
@ -222,7 +222,7 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
||||
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("shadow_type",
|
||||
g_param_spec_enum ("shadow-type",
|
||||
P_("Shadow type"),
|
||||
P_("Style of bevel around the menubar"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
@ -230,7 +230,7 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("internal_padding",
|
||||
g_param_spec_int ("internal-padding",
|
||||
P_("Internal padding"),
|
||||
P_("Amount of border space between the menubar shadow and the menu items"),
|
||||
0,
|
||||
|
@ -205,7 +205,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
||||
G_TYPE_INT);
|
||||
|
||||
gtk_widget_class_install_style_property_parser (widget_class,
|
||||
g_param_spec_enum ("selected_shadow_type",
|
||||
g_param_spec_enum ("selected-shadow-type",
|
||||
"Selected Shadow Type",
|
||||
"Shadow type when item is selected",
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
@ -214,7 +214,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
||||
gtk_rc_property_parse_enum);
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("horizontal_padding",
|
||||
g_param_spec_int ("horizontal-padding",
|
||||
"Horizontal Padding",
|
||||
"Padding to left and right of the menu item",
|
||||
0,
|
||||
@ -223,7 +223,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("toggle_spacing",
|
||||
g_param_spec_int ("toggle-spacing",
|
||||
"Icon Spacing",
|
||||
"Space between icon and label",
|
||||
0,
|
||||
@ -232,7 +232,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("arrow_spacing",
|
||||
g_param_spec_int ("arrow-spacing",
|
||||
"Arrow Spacing",
|
||||
"Space between label and arrow",
|
||||
0,
|
||||
|
@ -120,7 +120,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
|
||||
gobject_class->get_property = gtk_message_dialog_get_property;
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("message_border",
|
||||
g_param_spec_int ("message-border",
|
||||
P_("Image/label border"),
|
||||
P_("Width of border around the label and image in the message dialog"),
|
||||
0,
|
||||
@ -136,14 +136,14 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
|
||||
* Since: 2.4
|
||||
*/
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_boolean ("use_separator",
|
||||
g_param_spec_boolean ("use-separator",
|
||||
P_("Use separator"),
|
||||
P_("Whether to put a separator between the message dialog's text and the buttons"),
|
||||
FALSE,
|
||||
G_PARAM_READABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MESSAGE_TYPE,
|
||||
g_param_spec_enum ("message_type",
|
||||
g_param_spec_enum ("message-type",
|
||||
P_("Message Type"),
|
||||
P_("The type of message"),
|
||||
GTK_TYPE_MESSAGE_TYPE,
|
||||
|
@ -324,7 +324,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
|
||||
_gtk_marshal_NONE__NONE,
|
||||
GTK_TYPE_NONE, 0);
|
||||
|
||||
gtk_object_add_arg_type ("GtkOldEditable::text_position", GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_TEXT_POSITION);
|
||||
gtk_object_add_arg_type ("GtkOldEditable::text-position", GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_TEXT_POSITION);
|
||||
gtk_object_add_arg_type ("GtkOldEditable::editable", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_EDITABLE);
|
||||
}
|
||||
|
||||
|
@ -197,13 +197,13 @@ gtk_option_menu_class_init (GtkOptionMenuClass *class)
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_boxed ("indicator_size",
|
||||
g_param_spec_boxed ("indicator-size",
|
||||
P_("Indicator Size"),
|
||||
P_("Size of dropdown indicator"),
|
||||
GTK_TYPE_REQUISITION,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_boxed ("indicator_spacing",
|
||||
g_param_spec_boxed ("indicator-spacing",
|
||||
P_("Indicator Spacing"),
|
||||
P_("Spacing around indicator"),
|
||||
GTK_TYPE_BORDER,
|
||||
|
@ -245,14 +245,14 @@ gtk_paned_class_init (GtkPanedClass *class)
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_POSITION_SET,
|
||||
g_param_spec_boolean ("position_set",
|
||||
g_param_spec_boolean ("position-set",
|
||||
P_("Position Set"),
|
||||
P_("TRUE if the Position property should be used"),
|
||||
FALSE,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("handle_size",
|
||||
g_param_spec_int ("handle-size",
|
||||
P_("Handle Size"),
|
||||
P_("Width of handle"),
|
||||
0,
|
||||
@ -269,7 +269,7 @@ gtk_paned_class_init (GtkPanedClass *class)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_MIN_POSITION,
|
||||
g_param_spec_int ("min_position",
|
||||
g_param_spec_int ("min-position",
|
||||
P_("Minimal Position"),
|
||||
P_("Smallest possible value for the \"position\" property"),
|
||||
0,
|
||||
@ -287,7 +287,7 @@ gtk_paned_class_init (GtkPanedClass *class)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_MAX_POSITION,
|
||||
g_param_spec_int ("max_position",
|
||||
g_param_spec_int ("max-position",
|
||||
P_("Maximal Position"),
|
||||
P_("Largest possible value for the \"position\" property"),
|
||||
0,
|
||||
|
@ -127,7 +127,7 @@ gtk_progress_class_init (GtkProgressClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ACTIVITY_MODE,
|
||||
g_param_spec_boolean ("activity_mode",
|
||||
g_param_spec_boolean ("activity-mode",
|
||||
P_("Activity mode"),
|
||||
P_("If TRUE the GtkProgress is in activity mode, meaning that it signals something is happening, but not how much of the activity is finished. This is used when you're doing something that you don't know how long it will take"),
|
||||
FALSE,
|
||||
@ -135,7 +135,7 @@ gtk_progress_class_init (GtkProgressClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_TEXT,
|
||||
g_param_spec_boolean ("show_text",
|
||||
g_param_spec_boolean ("show-text",
|
||||
P_("Show text"),
|
||||
P_("Whether the progress is shown as text"),
|
||||
FALSE,
|
||||
@ -143,7 +143,7 @@ gtk_progress_class_init (GtkProgressClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_TEXT_XALIGN,
|
||||
g_param_spec_float ("text_xalign",
|
||||
g_param_spec_float ("text-xalign",
|
||||
P_("Text x alignment"),
|
||||
P_("A number between 0.0 and 1.0 specifying the horizontal alignment of the text in the progress widget"),
|
||||
0.0,
|
||||
@ -152,7 +152,7 @@ gtk_progress_class_init (GtkProgressClass *class)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_TEXT_YALIGN,
|
||||
g_param_spec_float ("text_yalign",
|
||||
g_param_spec_float ("text-yalign",
|
||||
P_("Text y alignment"),
|
||||
P_("A number between 0.0 and 1.0 specifying the vertical alignment of the text in the progress widget"),
|
||||
0.0,
|
||||
|
@ -157,7 +157,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_BAR_STYLE,
|
||||
g_param_spec_enum ("bar_style",
|
||||
g_param_spec_enum ("bar-style",
|
||||
P_("Bar style"),
|
||||
P_("Specifies the visual style of the bar in percentage mode (Deprecated)"),
|
||||
GTK_TYPE_PROGRESS_BAR_STYLE,
|
||||
@ -166,7 +166,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ACTIVITY_STEP,
|
||||
g_param_spec_uint ("activity_step",
|
||||
g_param_spec_uint ("activity-step",
|
||||
P_("Activity Step"),
|
||||
P_("The increment used for each iteration in activity mode (Deprecated)"),
|
||||
-G_MAXUINT,
|
||||
@ -176,7 +176,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ACTIVITY_BLOCKS,
|
||||
g_param_spec_uint ("activity_blocks",
|
||||
g_param_spec_uint ("activity-blocks",
|
||||
P_("Activity Blocks"),
|
||||
P_("The number of blocks which can fit in the progress bar area in activity mode (Deprecated)"),
|
||||
2,
|
||||
@ -186,7 +186,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_DISCRETE_BLOCKS,
|
||||
g_param_spec_uint ("discrete_blocks",
|
||||
g_param_spec_uint ("discrete-blocks",
|
||||
P_("Discrete Blocks"),
|
||||
P_("The number of discrete blocks in a progress bar (when shown in the discrete style)"),
|
||||
2,
|
||||
@ -206,7 +206,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PULSE_STEP,
|
||||
g_param_spec_double ("pulse_step",
|
||||
g_param_spec_double ("pulse-step",
|
||||
P_("Pulse Step"),
|
||||
P_("The fraction of total progress to move the bouncing block when pulsed"),
|
||||
0.0,
|
||||
|
@ -321,7 +321,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_UPDATE_POLICY,
|
||||
g_param_spec_enum ("update_policy",
|
||||
g_param_spec_enum ("update-policy",
|
||||
P_("Update policy"),
|
||||
P_("How the range should be updated on the screen"),
|
||||
GTK_TYPE_UPDATE_TYPE,
|
||||
@ -345,7 +345,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("slider_width",
|
||||
g_param_spec_int ("slider-width",
|
||||
P_("Slider Width"),
|
||||
P_("Width of scrollbar or scale thumb"),
|
||||
0,
|
||||
@ -353,7 +353,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
14,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("trough_border",
|
||||
g_param_spec_int ("trough-border",
|
||||
P_("Trough Border"),
|
||||
P_("Spacing between thumb/steppers and outer trough bevel"),
|
||||
0,
|
||||
@ -361,7 +361,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
1,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("stepper_size",
|
||||
g_param_spec_int ("stepper-size",
|
||||
P_("Stepper Size"),
|
||||
P_("Length of step buttons at ends"),
|
||||
0,
|
||||
@ -369,7 +369,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
14,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("stepper_spacing",
|
||||
g_param_spec_int ("stepper-spacing",
|
||||
P_("Stepper Spacing"),
|
||||
P_("Spacing between step buttons and thumb"),
|
||||
0,
|
||||
@ -377,7 +377,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
0,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("arrow_displacement_x",
|
||||
g_param_spec_int ("arrow-displacement-x",
|
||||
P_("Arrow X Displacement"),
|
||||
P_("How far in the x direction to move the arrow when the button is depressed"),
|
||||
G_MININT,
|
||||
@ -385,7 +385,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
0,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("arrow_displacement_y",
|
||||
g_param_spec_int ("arrow-displacement-y",
|
||||
P_("Arrow Y Displacement"),
|
||||
P_("How far in the y direction to move the arrow when the button is depressed"),
|
||||
G_MININT,
|
||||
|
@ -146,7 +146,7 @@ gtk_ruler_class_init (GtkRulerClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MAX_SIZE,
|
||||
g_param_spec_double ("max_size",
|
||||
g_param_spec_double ("max-size",
|
||||
P_("Max Size"),
|
||||
P_("Maximum size of the ruler"),
|
||||
-G_MAXDOUBLE,
|
||||
|
@ -178,7 +178,7 @@ gtk_scale_class_init (GtkScaleClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_DRAW_VALUE,
|
||||
g_param_spec_boolean ("draw_value",
|
||||
g_param_spec_boolean ("draw-value",
|
||||
P_("Draw Value"),
|
||||
P_("Whether the current value is displayed as a string next to the slider"),
|
||||
FALSE,
|
||||
@ -186,7 +186,7 @@ gtk_scale_class_init (GtkScaleClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_VALUE_POS,
|
||||
g_param_spec_enum ("value_pos",
|
||||
g_param_spec_enum ("value-pos",
|
||||
P_("Value Position"),
|
||||
P_("The position in which the current value is displayed"),
|
||||
GTK_TYPE_POSITION_TYPE,
|
||||
@ -194,7 +194,7 @@ gtk_scale_class_init (GtkScaleClass *class)
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("slider_length",
|
||||
g_param_spec_int ("slider-length",
|
||||
P_("Slider Length"),
|
||||
P_("Length of scale's slider"),
|
||||
0,
|
||||
@ -203,7 +203,7 @@ gtk_scale_class_init (GtkScaleClass *class)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("value_spacing",
|
||||
g_param_spec_int ("value-spacing",
|
||||
P_("Value spacing"),
|
||||
P_("Space between value text and the slider/trough area"),
|
||||
0,
|
||||
|
@ -246,7 +246,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CLIMB_RATE,
|
||||
g_param_spec_double ("climb_rate",
|
||||
g_param_spec_double ("climb-rate",
|
||||
P_("Climb Rate"),
|
||||
P_("The acceleration rate when you hold down a button"),
|
||||
0.0,
|
||||
@ -266,7 +266,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SNAP_TO_TICKS,
|
||||
g_param_spec_boolean ("snap_to_ticks",
|
||||
g_param_spec_boolean ("snap-to-ticks",
|
||||
P_("Snap to Ticks"),
|
||||
P_("Whether erroneous values are automatically changed to a spin button's nearest step increment"),
|
||||
FALSE,
|
||||
@ -290,7 +290,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_UPDATE_POLICY,
|
||||
g_param_spec_enum ("update_policy",
|
||||
g_param_spec_enum ("update-policy",
|
||||
P_("Update Policy"),
|
||||
P_("Whether the spin button should update always, or only when the value is legal"),
|
||||
GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY,
|
||||
@ -308,7 +308,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_install_style_property_parser (widget_class,
|
||||
g_param_spec_enum ("shadow_type",
|
||||
g_param_spec_enum ("shadow-type",
|
||||
"Shadow Type",
|
||||
P_("Style of bevel around the spin button"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
|
@ -173,7 +173,7 @@ gtk_statusbar_class_init (GtkStatusbarClass *class)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HAS_RESIZE_GRIP,
|
||||
g_param_spec_boolean ("has_resize_grip",
|
||||
g_param_spec_boolean ("has-resize-grip",
|
||||
P_("Has Resize Grip"),
|
||||
P_("Whether the statusbar has a grip for resizing the toplevel"),
|
||||
TRUE,
|
||||
@ -200,7 +200,7 @@ gtk_statusbar_class_init (GtkStatusbarClass *class)
|
||||
G_TYPE_STRING);
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("shadow_type",
|
||||
g_param_spec_enum ("shadow-type",
|
||||
P_("Shadow type"),
|
||||
P_("Style of bevel around the statusbar text"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
|
@ -156,7 +156,7 @@ gtk_table_class_init (GtkTableClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_N_ROWS,
|
||||
g_param_spec_uint ("n_rows",
|
||||
g_param_spec_uint ("n-rows",
|
||||
P_("Rows"),
|
||||
P_("The number of rows in the table"),
|
||||
0,
|
||||
@ -165,7 +165,7 @@ gtk_table_class_init (GtkTableClass *class)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_N_COLUMNS,
|
||||
g_param_spec_uint ("n_columns",
|
||||
g_param_spec_uint ("n-columns",
|
||||
P_("Columns"),
|
||||
P_("The number of columns in the table"),
|
||||
0,
|
||||
@ -174,7 +174,7 @@ gtk_table_class_init (GtkTableClass *class)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ROW_SPACING,
|
||||
g_param_spec_uint ("row_spacing",
|
||||
g_param_spec_uint ("row-spacing",
|
||||
P_("Row spacing"),
|
||||
P_("The amount of space between two consecutive rows"),
|
||||
0,
|
||||
@ -183,7 +183,7 @@ gtk_table_class_init (GtkTableClass *class)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_COLUMN_SPACING,
|
||||
g_param_spec_uint ("column_spacing",
|
||||
g_param_spec_uint ("column-spacing",
|
||||
P_("Column spacing"),
|
||||
P_("The amount of space between two consecutive columns"),
|
||||
0,
|
||||
@ -200,56 +200,56 @@ gtk_table_class_init (GtkTableClass *class)
|
||||
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_LEFT_ATTACH,
|
||||
g_param_spec_uint ("left_attach",
|
||||
g_param_spec_uint ("left-attach",
|
||||
P_("Left attachment"),
|
||||
P_("The column number to attach the left side of the child to"),
|
||||
0, 65535, 0,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_RIGHT_ATTACH,
|
||||
g_param_spec_uint ("right_attach",
|
||||
g_param_spec_uint ("right-attach",
|
||||
P_("Right attachment"),
|
||||
P_("The column number to attach the right side of a child widget to"),
|
||||
1, 65535, 1,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_TOP_ATTACH,
|
||||
g_param_spec_uint ("top_attach",
|
||||
g_param_spec_uint ("top-attach",
|
||||
P_("Top attachment"),
|
||||
P_("The row number to attach the top of a child widget to"),
|
||||
0, 65535, 0,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_BOTTOM_ATTACH,
|
||||
g_param_spec_uint ("bottom_attach",
|
||||
g_param_spec_uint ("bottom-attach",
|
||||
P_("Bottom attachment"),
|
||||
P_("The row number to attach the bottom of the child to"),
|
||||
1, 65535, 1,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_X_OPTIONS,
|
||||
g_param_spec_flags ("x_options",
|
||||
g_param_spec_flags ("x-options",
|
||||
P_("Horizontal options"),
|
||||
P_("Options specifying the horizontal behaviour of the child"),
|
||||
GTK_TYPE_ATTACH_OPTIONS, GTK_EXPAND | GTK_FILL,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_Y_OPTIONS,
|
||||
g_param_spec_flags ("y_options",
|
||||
g_param_spec_flags ("y-options",
|
||||
P_("Vertical options"),
|
||||
P_("Options specifying the vertical behaviour of the child"),
|
||||
GTK_TYPE_ATTACH_OPTIONS, GTK_EXPAND | GTK_FILL,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_X_PADDING,
|
||||
g_param_spec_uint ("x_padding",
|
||||
g_param_spec_uint ("x-padding",
|
||||
P_("Horizontal padding"),
|
||||
P_("Extra space to put between the child and its left and right neighbors, in pixels"),
|
||||
0, 65535, 0,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_container_class_install_child_property (container_class,
|
||||
CHILD_PROP_Y_PADDING,
|
||||
g_param_spec_uint ("y_padding",
|
||||
g_param_spec_uint ("y-padding",
|
||||
P_("Vertical padding"),
|
||||
P_("Extra space to put between the child and its upper and lower neighbors, in pixels"),
|
||||
0, 65535, 0,
|
||||
|
@ -615,7 +615,7 @@ gtk_text_class_init (GtkTextClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_LINE_WRAP,
|
||||
g_param_spec_boolean ("line_wrap",
|
||||
g_param_spec_boolean ("line-wrap",
|
||||
P_("Line Wrap"),
|
||||
P_("Whether lines are wrapped at widget edges"),
|
||||
TRUE,
|
||||
@ -623,7 +623,7 @@ gtk_text_class_init (GtkTextClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_WORD_WRAP,
|
||||
g_param_spec_boolean ("word_wrap",
|
||||
g_param_spec_boolean ("word-wrap",
|
||||
P_("Word Wrap"),
|
||||
P_("Whether words are wrapped at widget edges"),
|
||||
FALSE,
|
||||
|
@ -180,7 +180,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
|
||||
/* Construct */
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_TAG_TABLE,
|
||||
g_param_spec_object ("tag_table",
|
||||
g_param_spec_object ("tag-table",
|
||||
P_("Tag Table"),
|
||||
P_("Text Tag Table"),
|
||||
GTK_TYPE_TEXT_TAG_TABLE,
|
||||
|
@ -134,10 +134,10 @@ gtk_tips_query_class_init (GtkTipsQueryClass *class)
|
||||
class->widget_entered = gtk_tips_query_widget_entered;
|
||||
class->widget_selected = NULL;
|
||||
|
||||
gtk_object_add_arg_type ("GtkTipsQuery::emit_always", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_EMIT_ALWAYS);
|
||||
gtk_object_add_arg_type ("GtkTipsQuery::emit-always", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_EMIT_ALWAYS);
|
||||
gtk_object_add_arg_type ("GtkTipsQuery::caller", GTK_TYPE_WIDGET, GTK_ARG_READWRITE, ARG_CALLER);
|
||||
gtk_object_add_arg_type ("GtkTipsQuery::label_inactive", GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_LABEL_INACTIVE);
|
||||
gtk_object_add_arg_type ("GtkTipsQuery::label_no_tip", GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_LABEL_NO_TIP);
|
||||
gtk_object_add_arg_type ("GtkTipsQuery::label-inactive", GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_LABEL_INACTIVE);
|
||||
gtk_object_add_arg_type ("GtkTipsQuery::label-no-tip", GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_LABEL_NO_TIP);
|
||||
|
||||
tips_query_signals[SIGNAL_START_QUERY] =
|
||||
gtk_signal_new ("start_query",
|
||||
|
@ -126,7 +126,7 @@ gtk_toggle_action_class_init (GtkToggleActionClass *klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_DRAW_AS_RADIO,
|
||||
g_param_spec_boolean ("draw_as_radio",
|
||||
g_param_spec_boolean ("draw-as-radio",
|
||||
P_("Create the same proxies as a radio action"),
|
||||
P_("Whether the proxies for this action look like radio action proxies"),
|
||||
FALSE,
|
||||
|
@ -146,7 +146,7 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_DRAW_INDICATOR,
|
||||
g_param_spec_boolean ("draw_indicator",
|
||||
g_param_spec_boolean ("draw-indicator",
|
||||
P_("Draw Indicator"),
|
||||
P_("If the toggle part of the button is displayed"),
|
||||
FALSE,
|
||||
|
@ -512,7 +512,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_TOOLBAR_STYLE,
|
||||
g_param_spec_enum ("toolbar_style",
|
||||
g_param_spec_enum ("toolbar-style",
|
||||
P_("Toolbar Style"),
|
||||
P_("How to draw the toolbar"),
|
||||
GTK_TYPE_TOOLBAR_STYLE,
|
||||
@ -520,7 +520,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHOW_ARROW,
|
||||
g_param_spec_boolean ("show_arrow",
|
||||
g_param_spec_boolean ("show-arrow",
|
||||
P_("Show Arrow"),
|
||||
P_("If an arrow should be shown if the toolbar doesn't fit"),
|
||||
TRUE,
|
||||
@ -545,7 +545,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
|
||||
/* style properties */
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("space_size",
|
||||
g_param_spec_int ("space-size",
|
||||
P_("Spacer size"),
|
||||
P_("Size of spacers"),
|
||||
0,
|
||||
@ -554,7 +554,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("internal_padding",
|
||||
g_param_spec_int ("internal-padding",
|
||||
P_("Internal padding"),
|
||||
P_("Amount of border space between the toolbar shadow and the buttons"),
|
||||
0,
|
||||
@ -563,7 +563,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("space_style",
|
||||
g_param_spec_enum ("space-style",
|
||||
P_("Space style"),
|
||||
P_("Whether spacers are vertical lines or just blank"),
|
||||
GTK_TYPE_TOOLBAR_SPACE_STYLE,
|
||||
@ -571,14 +571,14 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("button_relief",
|
||||
g_param_spec_enum ("button-relief",
|
||||
P_("Button relief"),
|
||||
P_("Type of bevel around toolbar buttons"),
|
||||
GTK_TYPE_RELIEF_STYLE,
|
||||
GTK_RELIEF_NONE,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("shadow_type",
|
||||
g_param_spec_enum ("shadow-type",
|
||||
P_("Shadow type"),
|
||||
P_("Style of bevel around the toolbar"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
|
@ -184,28 +184,28 @@ gtk_tool_button_class_init (GtkToolButtonClass *klass)
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_USE_UNDERLINE,
|
||||
g_param_spec_boolean ("use_underline",
|
||||
g_param_spec_boolean ("use-underline",
|
||||
P_("Use underline"),
|
||||
P_("If set, an underline in the label property indicates that the next character should be used for the mnemonic accelerator key in the overflow menu"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_LABEL_WIDGET,
|
||||
g_param_spec_object ("label_widget",
|
||||
g_param_spec_object ("label-widget",
|
||||
P_("Label widget"),
|
||||
P_("Widget to use as the item label"),
|
||||
GTK_TYPE_WIDGET,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_STOCK_ID,
|
||||
g_param_spec_string ("stock_id",
|
||||
g_param_spec_string ("stock-id",
|
||||
P_("Stock Id"),
|
||||
P_("The stock icon displayed on the item"),
|
||||
NULL,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_ICON_WIDGET,
|
||||
g_param_spec_object ("icon_widget",
|
||||
g_param_spec_object ("icon-widget",
|
||||
P_("Icon widget"),
|
||||
P_("Icon widget to display in the item"),
|
||||
GTK_TYPE_WIDGET,
|
||||
|
@ -155,21 +155,21 @@ gtk_tool_item_class_init (GtkToolItemClass *klass)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_VISIBLE_HORIZONTAL,
|
||||
g_param_spec_boolean ("visible_horizontal",
|
||||
g_param_spec_boolean ("visible-horizontal",
|
||||
P_("Visible when horizontal"),
|
||||
P_("Whether the toolbar item is visible when the toolbar is in a horizontal orientation."),
|
||||
TRUE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_VISIBLE_VERTICAL,
|
||||
g_param_spec_boolean ("visible_vertical",
|
||||
g_param_spec_boolean ("visible-vertical",
|
||||
P_("Visible when vertical"),
|
||||
P_("Whether the toolbar item is visible when the toolbar is in a vertical orientation."),
|
||||
TRUE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_IS_IMPORTANT,
|
||||
g_param_spec_boolean ("is_important",
|
||||
g_param_spec_boolean ("is-important",
|
||||
P_("Is important"),
|
||||
P_("Whether the toolbar item is considered important. When TRUE, toolbar buttons show text in GTK_TOOLBAR_BOTH_HORIZ mode"),
|
||||
FALSE,
|
||||
|
@ -323,7 +323,7 @@ gtk_tree_model_filter_class_init (GtkTreeModelFilterClass *filter_class)
|
||||
*/
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_CHILD_MODEL,
|
||||
g_param_spec_object ("child_model",
|
||||
g_param_spec_object ("child-model",
|
||||
("The child model"),
|
||||
("The model for the filtermodel to filter"),
|
||||
GTK_TYPE_TREE_MODEL,
|
||||
@ -331,7 +331,7 @@ gtk_tree_model_filter_class_init (GtkTreeModelFilterClass *filter_class)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_VIRTUAL_ROOT,
|
||||
g_param_spec_boxed ("virtual_root",
|
||||
g_param_spec_boxed ("virtual-root",
|
||||
("The virtual root"),
|
||||
("The virtual root (relative to the child model) for this filtermodel"),
|
||||
GTK_TYPE_TREE_PATH,
|
||||
|
@ -225,7 +225,7 @@ gtk_ui_manager_class_init (GtkUIManagerClass *klass)
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_ADD_TEAROFFS,
|
||||
g_param_spec_boolean ("add_tearoffs",
|
||||
g_param_spec_boolean ("add-tearoffs",
|
||||
P_("Add tearoffs to menus"),
|
||||
P_("Whether tearoff menu items should be added to menus"),
|
||||
FALSE,
|
||||
|
@ -148,7 +148,7 @@ gtk_viewport_class_init (GtkViewportClass *class)
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SHADOW_TYPE,
|
||||
g_param_spec_enum ("shadow_type",
|
||||
g_param_spec_enum ("shadow-type",
|
||||
P_("Shadow type"),
|
||||
P_("Determines how the shadowed box around the viewport is drawn"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
|
Loading…
Reference in New Issue
Block a user