diff --git a/ChangeLog b/ChangeLog index b114779878..bdc29b9a37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,29 @@ 2005-03-08 Matthias Clasen + * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): + * gtk/gtkrange.c (gtk_range_class_init): + * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): + * gtk/gtktexttag.c (gtk_text_tag_class_init): + * gtk/gtktextview.c (gtk_text_view_class_init): + * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): + * gtk/gtknotebook.c (gtk_notebook_class_init): + * gtk/gtkentry.c (gtk_entry_class_init): + * gtk/gtkexpander.c (gtk_expander_class_init): + * gtk/gtkarrow.c (gtk_arrow_class_init): + * gtk/gtkalignment.c (gtk_alignment_class_init): + * gtk/gtkbutton.c (gtk_button_class_init): + * gtk/gtklabel.c (gtk_label_class_init): + * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): + * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x + * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): + * gtk/gtktreeview.c (gtk_tree_view_class_init): + * gtk/gtkbox.c (gtk_box_class_init): + * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): + * gtk/gtkcontainer.c (gtk_container_class_init): + * gtk/gtkwidget.c (gtk_widget_class_init): + * gtk/gtkobject.c (gtk_object_class_init): Use canonical names + when registering param specs. + * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo (#169607, Mark McLoughlin) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b114779878..bdc29b9a37 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,29 @@ 2005-03-08 Matthias Clasen + * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): + * gtk/gtkrange.c (gtk_range_class_init): + * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): + * gtk/gtktexttag.c (gtk_text_tag_class_init): + * gtk/gtktextview.c (gtk_text_view_class_init): + * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): + * gtk/gtknotebook.c (gtk_notebook_class_init): + * gtk/gtkentry.c (gtk_entry_class_init): + * gtk/gtkexpander.c (gtk_expander_class_init): + * gtk/gtkarrow.c (gtk_arrow_class_init): + * gtk/gtkalignment.c (gtk_alignment_class_init): + * gtk/gtkbutton.c (gtk_button_class_init): + * gtk/gtklabel.c (gtk_label_class_init): + * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): + * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x + * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): + * gtk/gtktreeview.c (gtk_tree_view_class_init): + * gtk/gtkbox.c (gtk_box_class_init): + * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): + * gtk/gtkcontainer.c (gtk_container_class_init): + * gtk/gtkwidget.c (gtk_widget_class_init): + * gtk/gtkobject.c (gtk_object_class_init): Use canonical names + when registering param specs. + * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo (#169607, Mark McLoughlin) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b114779878..bdc29b9a37 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,29 @@ 2005-03-08 Matthias Clasen + * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): + * gtk/gtkrange.c (gtk_range_class_init): + * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): + * gtk/gtktexttag.c (gtk_text_tag_class_init): + * gtk/gtktextview.c (gtk_text_view_class_init): + * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): + * gtk/gtknotebook.c (gtk_notebook_class_init): + * gtk/gtkentry.c (gtk_entry_class_init): + * gtk/gtkexpander.c (gtk_expander_class_init): + * gtk/gtkarrow.c (gtk_arrow_class_init): + * gtk/gtkalignment.c (gtk_alignment_class_init): + * gtk/gtkbutton.c (gtk_button_class_init): + * gtk/gtklabel.c (gtk_label_class_init): + * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): + * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x + * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): + * gtk/gtktreeview.c (gtk_tree_view_class_init): + * gtk/gtkbox.c (gtk_box_class_init): + * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): + * gtk/gtkcontainer.c (gtk_container_class_init): + * gtk/gtkwidget.c (gtk_widget_class_init): + * gtk/gtkobject.c (gtk_object_class_init): Use canonical names + when registering param specs. + * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo (#169607, Mark McLoughlin) diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c index c79cba6722..ec633c5064 100644 --- a/gtk/gtkalignment.c +++ b/gtk/gtkalignment.c @@ -160,7 +160,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) */ g_object_class_install_property (gobject_class, PROP_TOP_PADDING, - g_param_spec_uint("top_padding", + g_param_spec_uint("top-padding", P_("Top Padding"), P_("The padding to insert at the top of the widget."), 0, @@ -177,7 +177,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) */ g_object_class_install_property (gobject_class, PROP_BOTTOM_PADDING, - g_param_spec_uint("bottom_padding", + g_param_spec_uint("bottom-padding", P_("Bottom Padding"), P_("The padding to insert at the bottom of the widget."), 0, @@ -194,7 +194,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) */ g_object_class_install_property (gobject_class, PROP_LEFT_PADDING, - g_param_spec_uint("left_padding", + g_param_spec_uint("left-padding", P_("Left Padding"), P_("The padding to insert at the left of the widget."), 0, @@ -211,7 +211,7 @@ gtk_alignment_class_init (GtkAlignmentClass *class) */ g_object_class_install_property (gobject_class, PROP_RIGHT_PADDING, - g_param_spec_uint("right_padding", + g_param_spec_uint("right-padding", P_("Right Padding"), P_("The padding to insert at the right of the widget."), 0, diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c index 22c881b465..1116e3537e 100644 --- a/gtk/gtkarrow.c +++ b/gtk/gtkarrow.c @@ -96,7 +96,7 @@ gtk_arrow_class_init (GtkArrowClass *class) g_object_class_install_property (gobject_class, PROP_ARROW_TYPE, - g_param_spec_enum ("arrow_type", + g_param_spec_enum ("arrow-type", P_("Arrow direction"), P_("The direction the arrow should point"), GTK_TYPE_ARROW_TYPE, @@ -104,7 +104,7 @@ gtk_arrow_class_init (GtkArrowClass *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_("Arrow shadow"), P_("Appearance of the shadow surrounding the arrow"), GTK_TYPE_SHADOW_TYPE, diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index e81f5f882a..76f229b6c2 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -165,7 +165,7 @@ gtk_box_class_init (GtkBoxClass *class) G_PARAM_READWRITE)); gtk_container_class_install_child_property (container_class, CHILD_PROP_PACK_TYPE, - g_param_spec_enum ("pack_type", + g_param_spec_enum ("pack-type", P_("Pack type"), P_("A GtkPackType indicating whether the child is packed with reference to the start or end of the parent"), GTK_TYPE_PACK_TYPE, GTK_PACK_START, diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index ac9119efa9..efdbced578 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -224,7 +224,7 @@ gtk_button_class_init (GtkButtonClass *klass) g_object_class_install_property (gobject_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 text indicates the next character should be used for the mnemonic accelerator key"), FALSE, @@ -232,7 +232,7 @@ gtk_button_class_init (GtkButtonClass *klass) g_object_class_install_property (gobject_class, PROP_USE_STOCK, - g_param_spec_boolean ("use_stock", + g_param_spec_boolean ("use-stock", P_("Use stock"), P_("If set, the label is used to pick a stock item instead of being displayed"), FALSE, @@ -240,7 +240,7 @@ gtk_button_class_init (GtkButtonClass *klass) g_object_class_install_property (gobject_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 button grabs focus when it is clicked with the mouse"), TRUE, @@ -369,20 +369,20 @@ gtk_button_class_init (GtkButtonClass *klass) widget_class->activate_signal = button_signals[ACTIVATE]; gtk_widget_class_install_style_property (widget_class, - g_param_spec_boxed ("default_border", + g_param_spec_boxed ("default-border", P_("Default Spacing"), P_("Extra space to add for CAN_DEFAULT buttons"), GTK_TYPE_BORDER, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boxed ("default_outside_border", + g_param_spec_boxed ("default-outside-border", P_("Default Outside Spacing"), P_("Extra space to add for CAN_DEFAULT buttons that is always drawn outside the border"), GTK_TYPE_BORDER, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("child_displacement_x", + g_param_spec_int ("child-displacement-x", P_("Child X Displacement"), P_("How far in the x direction to move the child when the button is depressed"), G_MININT, @@ -390,7 +390,7 @@ gtk_button_class_init (GtkButtonClass *klass) 0, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("child_displacement_y", + g_param_spec_int ("child-displacement-y", P_("Child Y Displacement"), P_("How far in the y direction to move the child when the button is depressed"), G_MININT, diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c index 71abf47090..b9a11813d0 100644 --- a/gtk/gtkcellrenderer.c +++ b/gtk/gtkcellrenderer.c @@ -292,7 +292,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) g_object_class_install_property (object_class, PROP_IS_EXPANDER, - g_param_spec_boolean ("is_expander", + g_param_spec_boolean ("is-expander", P_("Is Expander"), P_("Row has children"), FALSE, @@ -302,7 +302,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) g_object_class_install_property (object_class, PROP_IS_EXPANDED, - g_param_spec_boolean ("is_expanded", + g_param_spec_boolean ("is-expanded", P_("Is Expanded"), P_("Row is an expander row, and is expanded"), FALSE, @@ -311,7 +311,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) g_object_class_install_property (object_class, PROP_CELL_BACKGROUND, - g_param_spec_string ("cell_background", + g_param_spec_string ("cell-background", P_("Cell background color name"), P_("Cell background color as a string"), NULL, @@ -319,7 +319,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) g_object_class_install_property (object_class, PROP_CELL_BACKGROUND_GDK, - g_param_spec_boxed ("cell_background_gdk", + g_param_spec_boxed ("cell-background-gdk", P_("Cell background color"), P_("Cell background color as a GdkColor"), GDK_TYPE_COLOR, @@ -328,7 +328,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class) #define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (object_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)) - ADD_SET_PROP ("cell_background_set", PROP_CELL_BACKGROUND_SET, + ADD_SET_PROP ("cell-background-set", PROP_CELL_BACKGROUND_SET, P_("Cell background set"), P_("Whether this tag affects the cell background color")); diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index cda7fece14..6dd4297c53 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -238,7 +238,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) g_object_class_install_property (object_class, PROP_SINGLE_PARAGRAPH_MODE, - g_param_spec_boolean ("single_paragraph_mode", + g_param_spec_boolean ("single-paragraph-mode", P_("Single Paragraph Mode"), P_("Whether or not to keep all text in a single paragraph"), FALSE, @@ -255,7 +255,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) g_object_class_install_property (object_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, @@ -271,7 +271,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) g_object_class_install_property (object_class, PROP_FOREGROUND_GDK, - g_param_spec_boxed ("foreground_gdk", + g_param_spec_boxed ("foreground-gdk", P_("Foreground color"), P_("Foreground color as a GdkColor"), GDK_TYPE_COLOR, @@ -296,7 +296,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) g_object_class_install_property (object_class, PROP_FONT_DESC, - g_param_spec_boxed ("font_desc", + g_param_spec_boxed ("font-desc", P_("Font"), P_("Font description as a PangoFontDescription struct"), PANGO_TYPE_FONT_DESCRIPTION, @@ -360,7 +360,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) g_object_class_install_property (object_class, PROP_SIZE_POINTS, - g_param_spec_double ("size_points", + g_param_spec_double ("size-points", P_("Font points"), P_("Font size in points"), 0.0, @@ -450,7 +450,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) **/ g_object_class_install_property (object_class, PROP_WIDTH_CHARS, - g_param_spec_int ("width_chars", + g_param_spec_int ("width-chars", P_("Width In Characters"), P_("The desired width of the label, in characters"), -1, @@ -469,7 +469,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) */ g_object_class_install_property (object_class, PROP_WRAP_MODE, - g_param_spec_enum ("wrap_mode", + g_param_spec_enum ("wrap-mode", P_("Wrap mode"), P_("How to break the string into multiple lines, " "if the cell renderer does not have enough room " @@ -489,7 +489,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) */ 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_("The width at which the text is wrapped"), -1, @@ -502,63 +502,63 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) #define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (object_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")); - ADD_SET_PROP ("foreground_set", PROP_FOREGROUND_SET, + ADD_SET_PROP ("foreground-set", PROP_FOREGROUND_SET, P_("Foreground set"), P_("Whether this tag affects the foreground color")); - ADD_SET_PROP ("editable_set", PROP_EDITABLE_SET, + ADD_SET_PROP ("editable-set", PROP_EDITABLE_SET, P_("Editability set"), P_("Whether this tag affects text editability")); - ADD_SET_PROP ("family_set", PROP_FAMILY_SET, + ADD_SET_PROP ("family-set", PROP_FAMILY_SET, P_("Font family set"), P_("Whether this tag affects the font family")); - ADD_SET_PROP ("style_set", PROP_STYLE_SET, + ADD_SET_PROP ("style-set", PROP_STYLE_SET, P_("Font style set"), P_("Whether this tag affects the font style")); - ADD_SET_PROP ("variant_set", PROP_VARIANT_SET, + ADD_SET_PROP ("variant-set", PROP_VARIANT_SET, P_("Font variant set"), P_("Whether this tag affects the font variant")); - ADD_SET_PROP ("weight_set", PROP_WEIGHT_SET, + ADD_SET_PROP ("weight-set", PROP_WEIGHT_SET, P_("Font weight set"), P_("Whether this tag affects the font weight")); - ADD_SET_PROP ("stretch_set", PROP_STRETCH_SET, + ADD_SET_PROP ("stretch-set", PROP_STRETCH_SET, P_("Font stretch set"), P_("Whether this tag affects the font stretch")); - ADD_SET_PROP ("size_set", PROP_SIZE_SET, + ADD_SET_PROP ("size-set", PROP_SIZE_SET, P_("Font size set"), P_("Whether this tag affects the font size")); - ADD_SET_PROP ("scale_set", PROP_SCALE_SET, + ADD_SET_PROP ("scale-set", PROP_SCALE_SET, P_("Font scale set"), P_("Whether this tag scales the font size by a factor")); - ADD_SET_PROP ("rise_set", PROP_RISE_SET, + ADD_SET_PROP ("rise-set", PROP_RISE_SET, P_("Rise set"), P_("Whether this tag affects the rise")); - ADD_SET_PROP ("strikethrough_set", PROP_STRIKETHROUGH_SET, + ADD_SET_PROP ("strikethrough-set", PROP_STRIKETHROUGH_SET, P_("Strikethrough set"), P_("Whether this tag affects strikethrough")); - ADD_SET_PROP ("underline_set", PROP_UNDERLINE_SET, + ADD_SET_PROP ("underline-set", PROP_UNDERLINE_SET, P_("Underline set"), P_("Whether this tag affects underlining")); - ADD_SET_PROP ("language_set", PROP_LANGUAGE_SET, + ADD_SET_PROP ("language-set", PROP_LANGUAGE_SET, P_("Language set"), P_("Whether this tag affects the language the text is rendered as")); - ADD_SET_PROP ("ellipsize_set", PROP_ELLIPSIZE_SET, + ADD_SET_PROP ("ellipsize-set", PROP_ELLIPSIZE_SET, P_("Ellipsize set"), P_("Whether this tag affects the ellipsize mode")); diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index e2b205967f..9ba1e7000a 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -201,7 +201,7 @@ gtk_container_class_init (GtkContainerClass *class) g_object_class_install_property (gobject_class, PROP_RESIZE_MODE, - g_param_spec_enum ("resize_mode", + g_param_spec_enum ("resize-mode", P_("Resize mode"), P_("Specify how resize events are handled"), GTK_TYPE_RESIZE_MODE, @@ -209,7 +209,7 @@ gtk_container_class_init (GtkContainerClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_BORDER_WIDTH, - g_param_spec_uint ("border_width", + g_param_spec_uint ("border-width", P_("Border width"), P_("The width of the empty border outside the containers children"), 0, diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index fbe019f6b1..b26cdda5d4 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -481,7 +481,7 @@ gtk_entry_class_init (GtkEntryClass *class) g_object_class_install_property (gobject_class, PROP_CURSOR_POSITION, - g_param_spec_int ("cursor_position", + g_param_spec_int ("cursor-position", P_("Cursor Position"), P_("The current position of the insertion cursor in chars"), 0, @@ -491,7 +491,7 @@ gtk_entry_class_init (GtkEntryClass *class) g_object_class_install_property (gobject_class, PROP_SELECTION_BOUND, - g_param_spec_int ("selection_bound", + g_param_spec_int ("selection-bound", P_("Selection Bound"), P_("The position of the opposite end of the selection from the cursor in chars"), 0, @@ -509,7 +509,7 @@ gtk_entry_class_init (GtkEntryClass *class) g_object_class_install_property (gobject_class, PROP_MAX_LENGTH, - g_param_spec_int ("max_length", + g_param_spec_int ("max-length", P_("Maximum length"), P_("Maximum number of characters for this entry. Zero if no maximum"), 0, @@ -526,7 +526,7 @@ gtk_entry_class_init (GtkEntryClass *class) g_object_class_install_property (gobject_class, PROP_HAS_FRAME, - g_param_spec_boolean ("has_frame", + g_param_spec_boolean ("has-frame", P_("Has Frame"), P_("FALSE removes outside bevel from entry"), TRUE, @@ -534,7 +534,7 @@ gtk_entry_class_init (GtkEntryClass *class) g_object_class_install_property (gobject_class, PROP_INVISIBLE_CHAR, - g_param_spec_unichar ("invisible_char", + g_param_spec_unichar ("invisible-char", P_("Invisible character"), P_("The character to use when masking entry contents (in \"password mode\")"), '*', @@ -542,14 +542,14 @@ gtk_entry_class_init (GtkEntryClass *class) g_object_class_install_property (gobject_class, PROP_ACTIVATES_DEFAULT, - g_param_spec_boolean ("activates_default", + g_param_spec_boolean ("activates-default", P_("Activates default"), P_("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"), FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (gobject_class, PROP_WIDTH_CHARS, - g_param_spec_int ("width_chars", + g_param_spec_int ("width-chars", P_("Width in chars"), P_("Number of characters to leave space for in the entry"), -1, @@ -559,7 +559,7 @@ gtk_entry_class_init (GtkEntryClass *class) g_object_class_install_property (gobject_class, PROP_SCROLL_OFFSET, - g_param_spec_int ("scroll_offset", + g_param_spec_int ("scroll-offset", P_("Scroll offset"), P_("Number of pixels of the entry scrolled off the screen to the left"), 0, diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 5cda320990..59f4a72347 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -210,7 +210,7 @@ gtk_expander_class_init (GtkExpanderClass *klass) g_object_class_install_property (gobject_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 text indicates the next character should be used for the mnemonic accelerator key"), FALSE, @@ -218,7 +218,7 @@ gtk_expander_class_init (GtkExpanderClass *klass) g_object_class_install_property (gobject_class, PROP_USE_MARKUP, - g_param_spec_boolean ("use_markup", + g_param_spec_boolean ("use-markup", P_("Use markup"), P_("The text of the label includes XML markup. See pango_parse_markup()"), FALSE, @@ -236,7 +236,7 @@ gtk_expander_class_init (GtkExpanderClass *klass) 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 expander label"), GTK_TYPE_WIDGET, diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index b0a895d639..010f620eef 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -330,14 +330,14 @@ gtk_label_class_init (GtkLabelClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_USE_MARKUP, - g_param_spec_boolean ("use_markup", + g_param_spec_boolean ("use-markup", P_("Use markup"), P_("The text of the label includes XML markup. See pango_parse_markup()"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_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 text indicates the next character should be used for the mnemonic accelerator key"), FALSE, @@ -376,7 +376,7 @@ gtk_label_class_init (GtkLabelClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_MNEMONIC_KEYVAL, - g_param_spec_uint ("mnemonic_keyval", + g_param_spec_uint ("mnemonic-keyval", P_("Mnemonic key"), P_("The mnemonic accelerator key for this label"), 0, @@ -385,7 +385,7 @@ gtk_label_class_init (GtkLabelClass *class) G_PARAM_READABLE)); g_object_class_install_property (gobject_class, PROP_MNEMONIC_WIDGET, - g_param_spec_object ("mnemonic_widget", + g_param_spec_object ("mnemonic-widget", P_("Mnemonic widget"), P_("The widget to be activated when the label's mnemonic " "key is pressed"), @@ -394,7 +394,7 @@ gtk_label_class_init (GtkLabelClass *class) g_object_class_install_property (gobject_class, PROP_CURSOR_POSITION, - g_param_spec_int ("cursor_position", + g_param_spec_int ("cursor-position", P_("Cursor Position"), P_("The current position of the insertion cursor in chars"), 0, @@ -404,7 +404,7 @@ gtk_label_class_init (GtkLabelClass *class) g_object_class_install_property (gobject_class, PROP_SELECTION_BOUND, - g_param_spec_int ("selection_bound", + g_param_spec_int ("selection-bound", P_("Selection Bound"), P_("The position of the opposite end of the selection from the cursor in chars"), 0, @@ -449,7 +449,7 @@ gtk_label_class_init (GtkLabelClass *class) **/ g_object_class_install_property (gobject_class, PROP_WIDTH_CHARS, - g_param_spec_int ("width_chars", + g_param_spec_int ("width-chars", P_("Width In Characters"), P_("The desired width of the label, in characters"), -1, @@ -509,7 +509,7 @@ gtk_label_class_init (GtkLabelClass *class) **/ g_object_class_install_property (gobject_class, PROP_MAX_WIDTH_CHARS, - g_param_spec_int ("max_width_chars", + g_param_spec_int ("max-width-chars", P_("Maximum Width In Characters"), P_("The desired maximum width of the label, in characters"), -1, diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 4b59c80af7..ca05d6e119 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -406,7 +406,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_TAB_POS, - g_param_spec_enum ("tab_pos", + g_param_spec_enum ("tab-pos", P_("Tab Position"), P_("Which side of the notebook holds the tabs"), GTK_TYPE_POSITION_TYPE, @@ -414,7 +414,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_TAB_BORDER, - g_param_spec_uint ("tab_border", + g_param_spec_uint ("tab-border", P_("Tab Border"), P_("Width of the border around the tab labels"), 0, @@ -423,7 +423,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) G_PARAM_WRITABLE)); g_object_class_install_property (gobject_class, PROP_TAB_HBORDER, - g_param_spec_uint ("tab_hborder", + g_param_spec_uint ("tab-hborder", P_("Horizontal Tab Border"), P_("Width of the horizontal border of tab labels"), 0, @@ -432,7 +432,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_TAB_VBORDER, - g_param_spec_uint ("tab_vborder", + g_param_spec_uint ("tab-vborder", P_("Vertical Tab Border"), P_("Width of the vertical border of tab labels"), 0, @@ -441,14 +441,14 @@ gtk_notebook_class_init (GtkNotebookClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_SHOW_TABS, - g_param_spec_boolean ("show_tabs", + g_param_spec_boolean ("show-tabs", P_("Show Tabs"), P_("Whether tabs should be shown or not"), TRUE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_SHOW_BORDER, - g_param_spec_boolean ("show_border", + g_param_spec_boolean ("show-border", P_("Show Border"), P_("Whether the border should be shown or not"), TRUE, @@ -462,7 +462,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_ENABLE_POPUP, - g_param_spec_boolean ("enable_popup", + g_param_spec_boolean ("enable-popup", P_("Enable Popup"), P_("If TRUE, pressing the right mouse button on the notebook pops up a menu that you can use to go to a page"), FALSE, @@ -477,14 +477,14 @@ gtk_notebook_class_init (GtkNotebookClass *class) gtk_container_class_install_child_property (container_class, CHILD_PROP_TAB_LABEL, - g_param_spec_string ("tab_label", + g_param_spec_string ("tab-label", P_("Tab label"), P_("The string displayed on the child's tab label"), NULL, G_PARAM_READWRITE)); gtk_container_class_install_child_property (container_class, CHILD_PROP_MENU_LABEL, - g_param_spec_string ("menu_label", + g_param_spec_string ("menu-label", P_("Menu label"), P_("The string displayed in the child's menu entry"), NULL, @@ -498,21 +498,21 @@ gtk_notebook_class_init (GtkNotebookClass *class) G_PARAM_READWRITE)); gtk_container_class_install_child_property (container_class, CHILD_PROP_TAB_EXPAND, - g_param_spec_boolean ("tab_expand", + g_param_spec_boolean ("tab-expand", P_("Tab expand"), P_("Whether to expand the child's tab or not"), TRUE, G_PARAM_READWRITE)); gtk_container_class_install_child_property (container_class, CHILD_PROP_TAB_FILL, - g_param_spec_boolean ("tab_fill", + g_param_spec_boolean ("tab-fill", P_("Tab fill"), P_("Whether the child's tab should fill the allocated area or not"), TRUE, G_PARAM_READWRITE)); gtk_container_class_install_child_property (container_class, CHILD_PROP_TAB_PACK, - g_param_spec_enum ("tab_pack", + g_param_spec_enum ("tab-pack", P_("Tab pack type"), P_("A GtkPackType indicating whether the child is packed with reference to the start or end of the parent"), GTK_TYPE_PACK_TYPE, GTK_PACK_START, @@ -528,7 +528,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) * Since: 2.4 */ gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_secondary_backward_stepper", + g_param_spec_boolean ("has-secondary-backward-stepper", P_("Secondary backward stepper"), P_("Display a second backward arrow button on the opposite end of the tab area"), FALSE, @@ -545,7 +545,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) * Since: 2.4 */ gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_secondary_forward_stepper", + g_param_spec_boolean ("has-secondary-forward-stepper", P_("Secondary forward stepper"), P_("Display a second forward arrow button on the opposite end of the tab area"), FALSE, @@ -561,7 +561,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) * Since: 2.4 */ gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_backward_stepper", + g_param_spec_boolean ("has-backward-stepper", P_("Backward stepper"), P_("Display the standard backward arrow button"), TRUE, @@ -577,7 +577,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) * Since: 2.4 */ gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_forward_stepper", + g_param_spec_boolean ("has-forward-stepper", P_("Forward stepper"), P_("Display the standard forward arrow button"), TRUE, diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c index 5e06990908..63cb73867a 100644 --- a/gtk/gtkobject.c +++ b/gtk/gtkobject.c @@ -328,7 +328,7 @@ gtk_object_class_init (GtkObjectClass *class) g_object_class_install_property (gobject_class, PROP_USER_DATA, - g_param_spec_pointer ("user_data", "User Data", + g_param_spec_pointer ("user-data", "User Data", "Anonymous User Data Pointer", G_PARAM_READABLE | G_PARAM_WRITABLE)); object_signals[DESTROY] = diff --git a/gtk/gtkscrollbar.c b/gtk/gtkscrollbar.c index 5b1fb1ef7e..e166f81fa9 100644 --- a/gtk/gtkscrollbar.c +++ b/gtk/gtkscrollbar.c @@ -78,7 +78,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class) widget_class->style_set = gtk_scrollbar_style_set; gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("min_slider_length", + g_param_spec_int ("min-slider-length", P_("Minimum Slider Length"), P_("Minimum length of scrollbar slider"), 0, @@ -87,7 +87,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("fixed_slider_length", + g_param_spec_boolean ("fixed-slider-length", P_("Fixed slider size"), P_("Don't change slider size, just lock it to the minimum length"), FALSE, @@ -95,7 +95,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_backward_stepper", + g_param_spec_boolean ("has-backward-stepper", P_("Backward stepper"), P_("Display the standard backward arrow button"), TRUE, @@ -103,7 +103,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_forward_stepper", + g_param_spec_boolean ("has-forward-stepper", P_("Forward stepper"), P_("Display the standard forward arrow button"), TRUE, @@ -111,7 +111,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_secondary_backward_stepper", + g_param_spec_boolean ("has-secondary-backward-stepper", P_("Secondary backward stepper"), P_("Display a second backward arrow button on the opposite end of the scrollbar"), FALSE, @@ -119,7 +119,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("has_secondary_forward_stepper", + g_param_spec_boolean ("has-secondary-forward-stepper", P_("Secondary forward stepper"), P_("Display a secondary forward arrow button on the opposite end of the scrollbar"), FALSE, diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 6e5b170031..6e01ccb6cd 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -248,7 +248,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class) G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (gobject_class, PROP_HSCROLLBAR_POLICY, - g_param_spec_enum ("hscrollbar_policy", + g_param_spec_enum ("hscrollbar-policy", P_("Horizontal Scrollbar Policy"), P_("When the horizontal scrollbar is displayed"), GTK_TYPE_POLICY_TYPE, @@ -256,7 +256,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class) G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (gobject_class, PROP_VSCROLLBAR_POLICY, - g_param_spec_enum ("vscrollbar_policy", + g_param_spec_enum ("vscrollbar-policy", P_("Vertical Scrollbar Policy"), P_("When the vertical scrollbar is displayed"), GTK_TYPE_POLICY_TYPE, @@ -265,7 +265,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class) g_object_class_install_property (gobject_class, PROP_WINDOW_PLACEMENT, - g_param_spec_enum ("window_placement", + g_param_spec_enum ("window-placement", P_("Window Placement"), P_("Where the contents are located with respect to the scrollbars"), GTK_TYPE_CORNER_TYPE, @@ -273,7 +273,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *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_("Style of bevel around the contents"), GTK_TYPE_SHADOW_TYPE, @@ -281,7 +281,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class) G_PARAM_READABLE | G_PARAM_WRITABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("scrollbar_spacing", + g_param_spec_int ("scrollbar-spacing", P_("Scrollbar spacing"), P_("Number of pixels between the scrollbars and the scrolled window"), 0, diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c index 4e52a4a168..3774884253 100644 --- a/gtk/gtktexttag.c +++ b/gtk/gtktexttag.c @@ -211,7 +211,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_BACKGROUND_GDK, - g_param_spec_boxed ("background_gdk", + g_param_spec_boxed ("background-gdk", P_("Background color"), P_("Background color as a (possibly unallocated) GdkColor"), GDK_TYPE_COLOR, @@ -219,7 +219,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_BACKGROUND_FULL_HEIGHT, - g_param_spec_boolean ("background_full_height", + g_param_spec_boolean ("background-full-height", P_("Background full height"), P_("Whether the background color fills the entire line height or only the height of the tagged characters"), FALSE, @@ -228,7 +228,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_BACKGROUND_STIPPLE, - g_param_spec_object ("background_stipple", + g_param_spec_object ("background-stipple", P_("Background stipple mask"), P_("Bitmap to use as a mask when drawing the text background"), GDK_TYPE_PIXMAP, @@ -245,7 +245,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_FOREGROUND_GDK, - g_param_spec_boxed ("foreground_gdk", + g_param_spec_boxed ("foreground-gdk", P_("Foreground color"), P_("Foreground color as a (possibly unallocated) GdkColor"), GDK_TYPE_COLOR, @@ -254,7 +254,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_FOREGROUND_STIPPLE, - g_param_spec_object ("foreground_stipple", + g_param_spec_object ("foreground-stipple", P_("Foreground stipple mask"), P_("Bitmap to use as a mask when drawing the text foreground"), GDK_TYPE_PIXMAP, @@ -287,7 +287,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_FONT_DESC, - g_param_spec_boxed ("font_desc", + g_param_spec_boxed ("font-desc", P_("Font"), P_("Font description as a PangoFontDescription struct"), PANGO_TYPE_FONT_DESCRIPTION, @@ -362,7 +362,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_SIZE_POINTS, - g_param_spec_double ("size_points", + g_param_spec_double ("size-points", P_("Font points"), P_("Font size in points"), 0.0, @@ -389,7 +389,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_LEFT_MARGIN, - g_param_spec_int ("left_margin", + g_param_spec_int ("left-margin", P_("Left margin"), P_("Width of the left margin in pixels"), 0, @@ -399,7 +399,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_RIGHT_MARGIN, - g_param_spec_int ("right_margin", + g_param_spec_int ("right-margin", P_("Right margin"), P_("Width of the right margin in pixels"), 0, @@ -431,7 +431,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_PIXELS_ABOVE_LINES, - g_param_spec_int ("pixels_above_lines", + g_param_spec_int ("pixels-above-lines", P_("Pixels above lines"), P_("Pixels of blank space above paragraphs"), 0, @@ -441,7 +441,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_PIXELS_BELOW_LINES, - g_param_spec_int ("pixels_below_lines", + g_param_spec_int ("pixels-below-lines", P_("Pixels below lines"), P_("Pixels of blank space below paragraphs"), 0, @@ -451,7 +451,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_PIXELS_INSIDE_WRAP, - g_param_spec_int ("pixels_inside_wrap", + g_param_spec_int ("pixels-inside-wrap", P_("Pixels inside wrap"), P_("Pixels of blank space between wrapped lines in a paragraph"), 0, @@ -478,7 +478,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) g_object_class_install_property (object_class, PROP_WRAP_MODE, - g_param_spec_enum ("wrap_mode", + g_param_spec_enum ("wrap-mode", P_("Wrap mode"), P_("Whether to wrap lines never, at word boundaries, or at character boundaries"), GTK_TYPE_WRAP_MODE, @@ -506,111 +506,111 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) #define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (object_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")); - ADD_SET_PROP ("background_full_height_set", PROP_BACKGROUND_FULL_HEIGHT_SET, + ADD_SET_PROP ("background-full-height-set", PROP_BACKGROUND_FULL_HEIGHT_SET, P_("Background full height set"), P_("Whether this tag affects background height")); - ADD_SET_PROP ("background_stipple_set", PROP_BACKGROUND_STIPPLE_SET, + ADD_SET_PROP ("background-stipple-set", PROP_BACKGROUND_STIPPLE_SET, P_("Background stipple set"), P_("Whether this tag affects the background stipple")); - ADD_SET_PROP ("foreground_set", PROP_FOREGROUND_SET, + ADD_SET_PROP ("foreground-set", PROP_FOREGROUND_SET, P_("Foreground set"), P_("Whether this tag affects the foreground color")); - ADD_SET_PROP ("foreground_stipple_set", PROP_FOREGROUND_STIPPLE_SET, + ADD_SET_PROP ("foreground-stipple-set", PROP_FOREGROUND_STIPPLE_SET, P_("Foreground stipple set"), P_("Whether this tag affects the foreground stipple")); - ADD_SET_PROP ("editable_set", PROP_EDITABLE_SET, + ADD_SET_PROP ("editable-set", PROP_EDITABLE_SET, P_("Editability set"), P_("Whether this tag affects text editability")); - ADD_SET_PROP ("family_set", PROP_FAMILY_SET, + ADD_SET_PROP ("family-set", PROP_FAMILY_SET, P_("Font family set"), P_("Whether this tag affects the font family")); - ADD_SET_PROP ("style_set", PROP_STYLE_SET, + ADD_SET_PROP ("style-set", PROP_STYLE_SET, P_("Font style set"), P_("Whether this tag affects the font style")); - ADD_SET_PROP ("variant_set", PROP_VARIANT_SET, + ADD_SET_PROP ("variant-set", PROP_VARIANT_SET, P_("Font variant set"), P_("Whether this tag affects the font variant")); - ADD_SET_PROP ("weight_set", PROP_WEIGHT_SET, + ADD_SET_PROP ("weight-set", PROP_WEIGHT_SET, P_("Font weight set"), P_("Whether this tag affects the font weight")); - ADD_SET_PROP ("stretch_set", PROP_STRETCH_SET, + ADD_SET_PROP ("stretch-set", PROP_STRETCH_SET, P_("Font stretch set"), P_("Whether this tag affects the font stretch")); - ADD_SET_PROP ("size_set", PROP_SIZE_SET, + ADD_SET_PROP ("size-set", PROP_SIZE_SET, P_("Font size set"), P_("Whether this tag affects the font size")); - ADD_SET_PROP ("scale_set", PROP_SCALE_SET, + ADD_SET_PROP ("scale-set", PROP_SCALE_SET, P_("Font scale set"), P_("Whether this tag scales the font size by a factor")); - ADD_SET_PROP ("justification_set", PROP_JUSTIFICATION_SET, + ADD_SET_PROP ("justification-set", PROP_JUSTIFICATION_SET, P_("Justification set"), P_("Whether this tag affects paragraph justification")); - ADD_SET_PROP ("language_set", PROP_LANGUAGE_SET, + ADD_SET_PROP ("language-set", PROP_LANGUAGE_SET, P_("Language set"), P_("Whether this tag affects the language the text is rendered as")); - ADD_SET_PROP ("left_margin_set", PROP_LEFT_MARGIN_SET, + ADD_SET_PROP ("left-margin-set", PROP_LEFT_MARGIN_SET, P_("Left margin set"), P_("Whether this tag affects the left margin")); - ADD_SET_PROP ("indent_set", PROP_INDENT_SET, + ADD_SET_PROP ("indent-set", PROP_INDENT_SET, P_("Indent set"), P_("Whether this tag affects indentation")); - ADD_SET_PROP ("rise_set", PROP_RISE_SET, + ADD_SET_PROP ("rise-set", PROP_RISE_SET, P_("Rise set"), P_("Whether this tag affects the rise")); - ADD_SET_PROP ("pixels_above_lines_set", PROP_PIXELS_ABOVE_LINES_SET, + ADD_SET_PROP ("pixels-above-lines-set", PROP_PIXELS_ABOVE_LINES_SET, P_("Pixels above lines set"), P_("Whether this tag affects the number of pixels above lines")); - ADD_SET_PROP ("pixels_below_lines_set", PROP_PIXELS_BELOW_LINES_SET, + ADD_SET_PROP ("pixels-below-lines-set", PROP_PIXELS_BELOW_LINES_SET, P_("Pixels below lines set"), P_("Whether this tag affects the number of pixels above lines")); - ADD_SET_PROP ("pixels_inside_wrap_set", PROP_PIXELS_INSIDE_WRAP_SET, + ADD_SET_PROP ("pixels-inside-wrap-set", PROP_PIXELS_INSIDE_WRAP_SET, P_("Pixels inside wrap set"), P_("Whether this tag affects the number of pixels between wrapped lines")); - ADD_SET_PROP ("strikethrough_set", PROP_STRIKETHROUGH_SET, + ADD_SET_PROP ("strikethrough-set", PROP_STRIKETHROUGH_SET, P_("Strikethrough set"), P_("Whether this tag affects strikethrough")); - ADD_SET_PROP ("right_margin_set", PROP_RIGHT_MARGIN_SET, + ADD_SET_PROP ("right-margin-set", PROP_RIGHT_MARGIN_SET, P_("Right margin set"), P_("Whether this tag affects the right margin")); - ADD_SET_PROP ("underline_set", PROP_UNDERLINE_SET, + ADD_SET_PROP ("underline-set", PROP_UNDERLINE_SET, P_("Underline set"), P_("Whether this tag affects underlining")); - ADD_SET_PROP ("wrap_mode_set", PROP_WRAP_MODE_SET, + ADD_SET_PROP ("wrap-mode-set", PROP_WRAP_MODE_SET, P_("Wrap mode set"), P_("Whether this tag affects line wrap mode")); - ADD_SET_PROP ("tabs_set", PROP_TABS_SET, + ADD_SET_PROP ("tabs-set", PROP_TABS_SET, P_("Tabs set"), P_("Whether this tag affects tabs")); - ADD_SET_PROP ("invisible_set", PROP_INVISIBLE_SET, + ADD_SET_PROP ("invisible-set", PROP_INVISIBLE_SET, P_("Invisible set"), P_("Whether this tag affects text visibility")); diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 4452c95f87..64bb6aee1b 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -543,7 +543,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_PIXELS_ABOVE_LINES, - g_param_spec_int ("pixels_above_lines", + g_param_spec_int ("pixels-above-lines", P_("Pixels Above Lines"), P_("Pixels of blank space above paragraphs"), 0, @@ -553,7 +553,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_PIXELS_BELOW_LINES, - g_param_spec_int ("pixels_below_lines", + g_param_spec_int ("pixels-below-lines", P_("Pixels Below Lines"), P_("Pixels of blank space below paragraphs"), 0, @@ -563,7 +563,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_PIXELS_INSIDE_WRAP, - g_param_spec_int ("pixels_inside_wrap", + g_param_spec_int ("pixels-inside-wrap", P_("Pixels Inside Wrap"), P_("Pixels of blank space between wrapped lines in a paragraph"), 0, @@ -581,7 +581,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_WRAP_MODE, - g_param_spec_enum ("wrap_mode", + g_param_spec_enum ("wrap-mode", P_("Wrap Mode"), P_("Whether to wrap lines never, at word boundaries, or at character boundaries"), GTK_TYPE_WRAP_MODE, @@ -599,7 +599,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_LEFT_MARGIN, - g_param_spec_int ("left_margin", + g_param_spec_int ("left-margin", P_("Left Margin"), P_("Width of the left margin in pixels"), 0, @@ -609,7 +609,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_RIGHT_MARGIN, - g_param_spec_int ("right_margin", + g_param_spec_int ("right-margin", P_("Right Margin"), P_("Width of the right margin in pixels"), 0, @@ -637,7 +637,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_CURSOR_VISIBLE, - g_param_spec_boolean ("cursor_visible", + g_param_spec_boolean ("cursor-visible", P_("Cursor Visible"), P_("If the insertion cursor is shown"), TRUE, @@ -661,7 +661,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) g_object_class_install_property (gobject_class, PROP_ACCEPTS_TAB, - g_param_spec_boolean ("accepts_tab", + g_param_spec_boolean ("accepts-tab", P_("Accepts tab"), P_("Whether Tab will result in a tab character being entered"), TRUE, diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index a190929eb8..a81e9e9193 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -578,7 +578,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) g_object_class_install_property (o_class, PROP_HEADERS_VISIBLE, - g_param_spec_boolean ("headers_visible", + g_param_spec_boolean ("headers-visible", P_("Headers Visible"), P_("Show the column header buttons"), TRUE, @@ -586,7 +586,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) g_object_class_install_property (o_class, PROP_HEADERS_CLICKABLE, - g_param_spec_boolean ("headers_clickable", + g_param_spec_boolean ("headers-clickable", P_("Headers Clickable"), P_("Column headers respond to click events"), FALSE, @@ -594,7 +594,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) g_object_class_install_property (o_class, PROP_EXPANDER_COLUMN, - g_param_spec_object ("expander_column", + g_param_spec_object ("expander-column", P_("Expander Column"), P_("Set the column for the expander column"), GTK_TYPE_TREE_VIEW_COLUMN, @@ -610,7 +610,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) g_object_class_install_property (o_class, PROP_RULES_HINT, - g_param_spec_boolean ("rules_hint", + g_param_spec_boolean ("rules-hint", P_("Rules Hint"), P_("Set a hint to the theme engine to draw rows in alternating colors"), FALSE, @@ -618,7 +618,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) g_object_class_install_property (o_class, PROP_ENABLE_SEARCH, - g_param_spec_boolean ("enable_search", + g_param_spec_boolean ("enable-search", P_("Enable Search"), P_("View allows user to search through columns interactively"), TRUE, @@ -626,7 +626,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) g_object_class_install_property (o_class, PROP_SEARCH_COLUMN, - g_param_spec_int ("search_column", + g_param_spec_int ("search-column", P_("Search Column"), P_("Model column to search through when searching through code"), -1, @@ -647,7 +647,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) **/ g_object_class_install_property (o_class, PROP_FIXED_HEIGHT_MODE, - g_param_spec_boolean ("fixed_height_mode", + g_param_spec_boolean ("fixed-height-mode", P_("Fixed Height Mode"), P_("Speeds up GtkTreeView by assuming that all rows have the same height"), FALSE, @@ -668,7 +668,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) */ g_object_class_install_property (o_class, PROP_HOVER_SELECTION, - g_param_spec_boolean ("hover_selection", + g_param_spec_boolean ("hover-selection", P_("Hover Selection"), P_("Whether the selection should follow the pointer"), FALSE, @@ -688,7 +688,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) */ g_object_class_install_property (o_class, PROP_HOVER_EXPAND, - g_param_spec_boolean ("hover_expand", + g_param_spec_boolean ("hover-expand", P_("Hover Expand"), P_("Whether rows should be expanded/collapsed when the pointer moves over them"), FALSE, @@ -700,7 +700,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) #define _TREE_VIEW_HORIZONTAL_SEPARATOR 2 gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("expander_size", + g_param_spec_int ("expander-size", P_("Expander Size"), P_("Size of the expander arrow"), 0, @@ -709,7 +709,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("vertical_separator", + g_param_spec_int ("vertical-separator", P_("Vertical Separator Width"), P_("Vertical space between cells. Must be an even number"), 0, @@ -718,7 +718,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_int ("horizontal_separator", + g_param_spec_int ("horizontal-separator", P_("Horizontal Separator Width"), P_("Horizontal space between cells. Must be an even number"), 0, @@ -727,28 +727,28 @@ gtk_tree_view_class_init (GtkTreeViewClass *class) G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("allow_rules", + g_param_spec_boolean ("allow-rules", P_("Allow Rules"), P_("Allow drawing of alternating color rows"), TRUE, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boolean ("indent_expanders", + g_param_spec_boolean ("indent-expanders", P_("Indent Expanders"), P_("Make the expanders indented"), TRUE, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boxed ("even_row_color", + g_param_spec_boxed ("even-row-color", P_("Even Row Color"), P_("Color to use for even rows"), GDK_TYPE_COLOR, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_boxed ("odd_row_color", + g_param_spec_boxed ("odd-row-color", P_("Odd Row Color"), P_("Color to use for odd rows"), GDK_TYPE_COLOR, diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 843de6d986..f0e726d9a2 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -264,7 +264,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class) g_object_class_install_property (object_class, PROP_FIXED_WIDTH, - g_param_spec_int ("fixed_width", + g_param_spec_int ("fixed-width", P_("Fixed Width"), P_("Current fixed width of the column"), 1, @@ -274,7 +274,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class) g_object_class_install_property (object_class, PROP_MIN_WIDTH, - g_param_spec_int ("min_width", + g_param_spec_int ("min-width", P_("Minimum Width"), P_("Minimum allowed width of the column"), -1, @@ -284,7 +284,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class) g_object_class_install_property (object_class, PROP_MAX_WIDTH, - g_param_spec_int ("max_width", + g_param_spec_int ("max-width", P_("Maximum Width"), P_("Maximum allowed width of the column"), -1, @@ -345,7 +345,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class) g_object_class_install_property (object_class, PROP_SORT_INDICATOR, - g_param_spec_boolean ("sort_indicator", + g_param_spec_boolean ("sort-indicator", P_("Sort indicator"), P_("Whether to show a sort indicator"), FALSE, @@ -353,7 +353,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class) g_object_class_install_property (object_class, PROP_SORT_ORDER, - g_param_spec_enum ("sort_order", + g_param_spec_enum ("sort-order", P_("Sort order"), P_("Sort direction the sort indicator should indicate"), GTK_TYPE_SORT_TYPE, diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 29ee934a9e..7c5a800fd1 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -421,7 +421,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) g_object_class_install_property (gobject_class, PROP_WIDTH_REQUEST, - g_param_spec_int ("width_request", + g_param_spec_int ("width-request", P_("Width request"), P_("Override for width request of the widget, or -1 if natural request should be used"), -1, @@ -430,7 +430,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_HEIGHT_REQUEST, - g_param_spec_int ("height_request", + g_param_spec_int ("height-request", P_("Height request"), P_("Override for height request of the widget, or -1 if natural request should be used"), -1, @@ -453,56 +453,56 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_APP_PAINTABLE, - g_param_spec_boolean ("app_paintable", + g_param_spec_boolean ("app-paintable", P_("Application paintable"), P_("Whether the application will paint directly on the widget"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_CAN_FOCUS, - g_param_spec_boolean ("can_focus", + g_param_spec_boolean ("can-focus", P_("Can focus"), P_("Whether the widget can accept the input focus"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_HAS_FOCUS, - g_param_spec_boolean ("has_focus", + g_param_spec_boolean ("has-focus", P_("Has focus"), P_("Whether the widget has the input focus"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_IS_FOCUS, - g_param_spec_boolean ("is_focus", + g_param_spec_boolean ("is-focus", P_("Is focus"), P_("Whether the widget is the focus widget within the toplevel"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_CAN_DEFAULT, - g_param_spec_boolean ("can_default", + g_param_spec_boolean ("can-default", P_("Can default"), P_("Whether the widget can be the default widget"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_HAS_DEFAULT, - g_param_spec_boolean ("has_default", + g_param_spec_boolean ("has-default", P_("Has default"), P_("Whether the widget is the default widget"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_RECEIVES_DEFAULT, - g_param_spec_boolean ("receives_default", + g_param_spec_boolean ("receives-default", P_("Receives default"), P_("If TRUE, the widget will receive the default action when it is focused"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_COMPOSITE_CHILD, - g_param_spec_boolean ("composite_child", + g_param_spec_boolean ("composite-child", P_("Composite child"), P_("Whether the widget is part of a composite widget"), FALSE, @@ -524,7 +524,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_EXTENSION_EVENTS, - g_param_spec_enum ("extension_events", + g_param_spec_enum ("extension-events", P_("Extension events"), P_("The mask that decides what kind of extension events this widget gets"), GDK_TYPE_EXTENSION_MODE, @@ -532,7 +532,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_NO_SHOW_ALL, - g_param_spec_boolean ("no_show_all", + g_param_spec_boolean ("no-show-all", P_("No show all"), P_("Whether gtk_widget_show_all() should not affect this widget"), FALSE, @@ -1413,7 +1413,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) GTK_WIDGET_HELP_WHATS_THIS); gtk_widget_class_install_style_property (klass, - g_param_spec_boolean ("interior_focus", + g_param_spec_boolean ("interior-focus", P_("Interior Focus"), P_("Whether to draw the focus indicator inside widgets"), TRUE, diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index ecd8b34a05..2001d6f746 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -439,7 +439,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_ALLOW_SHRINK, - g_param_spec_boolean ("allow_shrink", + g_param_spec_boolean ("allow-shrink", P_("Allow Shrink"), /* xgettext:no-c-format */ P_("If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea"), @@ -448,7 +448,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_ALLOW_GROW, - g_param_spec_boolean ("allow_grow", + g_param_spec_boolean ("allow-grow", P_("Allow Grow"), P_("If TRUE, users can expand the window beyond its minimum size"), TRUE, @@ -472,7 +472,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_WIN_POS, - g_param_spec_enum ("window_position", + g_param_spec_enum ("window-position", P_("Window Position"), P_("The initial position of the window"), GTK_TYPE_WINDOW_POSITION, @@ -481,7 +481,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_DEFAULT_WIDTH, - g_param_spec_int ("default_width", + g_param_spec_int ("default-width", P_("Default Width"), P_("The default width of the window, used when initially showing the window"), -1, @@ -491,7 +491,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_DEFAULT_HEIGHT, - g_param_spec_int ("default_height", + g_param_spec_int ("default-height", P_("Default Height"), P_("The default height of the window, used when initially showing the window"), -1, @@ -501,7 +501,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_DESTROY_WITH_PARENT, - g_param_spec_boolean ("destroy_with_parent", + g_param_spec_boolean ("destroy-with-parent", P_("Destroy with Parent"), P_("If this window should be destroyed when the parent is destroyed"), FALSE, @@ -525,7 +525,7 @@ gtk_window_class_init (GtkWindowClass *klass) */ 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_("Name of the themed icon for this window"), NULL, @@ -541,7 +541,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_IS_ACTIVE, - g_param_spec_boolean ("is_active", + g_param_spec_boolean ("is-active", P_("Is Active"), P_("Whether the toplevel is the current active window"), FALSE, @@ -549,7 +549,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_HAS_TOPLEVEL_FOCUS, - g_param_spec_boolean ("has_toplevel_focus", + g_param_spec_boolean ("has-toplevel-focus", P_("Focus in Toplevel"), P_("Whether the input focus is within this GtkWindow"), FALSE, @@ -557,7 +557,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_TYPE_HINT, - g_param_spec_enum ("type_hint", + g_param_spec_enum ("type-hint", P_("Type hint"), P_("Hint to help the desktop environment understand what kind of window this is and how to treat it."), GDK_TYPE_WINDOW_TYPE_HINT, @@ -566,7 +566,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_SKIP_TASKBAR_HINT, - g_param_spec_boolean ("skip_taskbar_hint", + g_param_spec_boolean ("skip-taskbar-hint", P_("Skip taskbar"), P_("TRUE if the window should not be in the task bar."), FALSE, @@ -574,7 +574,7 @@ gtk_window_class_init (GtkWindowClass *klass) g_object_class_install_property (gobject_class, PROP_SKIP_PAGER_HINT, - g_param_spec_boolean ("skip_pager_hint", + g_param_spec_boolean ("skip-pager-hint", P_("Skip pager"), P_("TRUE if the window should not be in the pager."), FALSE, @@ -589,7 +589,7 @@ gtk_window_class_init (GtkWindowClass *klass) */ g_object_class_install_property (gobject_class, PROP_ACCEPT_FOCUS, - g_param_spec_boolean ("accept_focus", + g_param_spec_boolean ("accept-focus", P_("Accept focus"), P_("TRUE if the window should receive the input focus."), TRUE, @@ -604,7 +604,7 @@ gtk_window_class_init (GtkWindowClass *klass) */ g_object_class_install_property (gobject_class, PROP_FOCUS_ON_MAP, - g_param_spec_boolean ("focus_on_map", + g_param_spec_boolean ("focus-on-map", P_("Focus on map"), P_("TRUE if the window should receive the input focus when mapped."), TRUE,