Commit 52711c24 authored by Matthias Clasen's avatar Matthias Clasen

More canonical property names.

parent 263bce44
......@@ -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