mirror of https://github.com/GNOME/gimp.git
minor fixes to the API docs.
2005-07-11 Sven Neumann <sven@gimp.org> * libgimpwidgets/gimppropwidgets.c: minor fixes to the API docs.
This commit is contained in:
parent
d64bf3564f
commit
5d7b80c776
|
@ -1,3 +1,7 @@
|
|||
2005-07-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimppropwidgets.c: minor fixes to the API docs.
|
||||
|
||||
2005-07-11 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimppickable.[ch]: added GimpPickable::get_opacity_at()
|
||||
|
|
|
@ -79,7 +79,7 @@ static void gimp_prop_check_button_notify (GObject *config,
|
|||
* @label: Label to give checkbutton (including mnemonic).
|
||||
*
|
||||
* Creates a #GtkCheckButton that displays and sets the specified
|
||||
* Boolean property.
|
||||
* boolean property.
|
||||
*
|
||||
* Return value: The newly created #GtkCheckButton widget.
|
||||
*
|
||||
|
@ -213,7 +213,8 @@ gimp_prop_enum_check_button_new (GObject *config,
|
|||
NULL);
|
||||
|
||||
button = gtk_check_button_new_with_mnemonic (label);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), value == true_value);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
|
||||
value == true_value);
|
||||
|
||||
if (value != false_value && value != true_value)
|
||||
gtk_toggle_button_set_inconsistent (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
|
@ -320,7 +321,7 @@ static void gimp_prop_int_combo_box_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_int_combo_box_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Int property controlled by combo box.
|
||||
* @property_name: Name of int property controlled by combo box.
|
||||
* @store: #GimpIntStore holding list of labels, values, etc.
|
||||
*
|
||||
* Creates a #GimpIntComboBox widget to display and set the specified
|
||||
|
@ -388,12 +389,12 @@ gimp_prop_int_combo_box_new (GObject *config,
|
|||
/**
|
||||
* gimp_prop_enum_combo_box_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Enum property controlled by combo box.
|
||||
* @property_name: Name of enum property controlled by combo box.
|
||||
* @minimum: Smallest allowed value of enum.
|
||||
* @maximum: Largest allowed value of enum.
|
||||
*
|
||||
* Creates a #GimpIntComboBox widget to display and set the specified
|
||||
* Enum property. The @mimimum_value and @maximum_value give the
|
||||
* enum property. The @mimimum_value and @maximum_value give the
|
||||
* possibility of restricting the allowed range to a subset of the
|
||||
* enum. If the two values are equal (e.g., 0, 0), then the full
|
||||
* range of the Enum is used.
|
||||
|
@ -527,12 +528,12 @@ static void gimp_prop_boolean_combo_box_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_boolean_combo_box_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Boolean property controlled by combo box.
|
||||
* @true_text: Label used for entry corresponding to #TRUE value.
|
||||
* @false_text: Label used for entry corresponding to #FALSE value.
|
||||
* @property_name: Name of boolean property controlled by combo box.
|
||||
* @true_text: Label used for entry corresponding to %TRUE value.
|
||||
* @false_text: Label used for entry corresponding to %FALSE value.
|
||||
*
|
||||
* Creates a #GtkComboBox widget to display and set the specified
|
||||
* Boolean property. The combo box will have two entries, one
|
||||
* boolean property. The combo box will have two entries, one
|
||||
* displaying the @true_text label, the other displaying the
|
||||
* @false_text label.
|
||||
*
|
||||
|
@ -651,13 +652,13 @@ static void gimp_prop_radio_button_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_enum_radio_frame_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Enum property controlled by the radio buttons.
|
||||
* @property_name: Name of enum property controlled by the radio buttons.
|
||||
* @title: Label for the frame holding the buttons
|
||||
* @minimum: Smallest value of enum to be included.
|
||||
* @maximum: Largest value of enum to be included.
|
||||
*
|
||||
* Creates a group of radio buttons which function to set and display
|
||||
* the specified Enum property. The @minimum and @maximum arguments
|
||||
* the specified enum property. The @minimum and @maximum arguments
|
||||
* allow only a subset of the enum to be used. If the two arguments
|
||||
* are equal (e.g., 0, 0), then the full range of the enum will be used.
|
||||
*
|
||||
|
@ -723,12 +724,12 @@ gimp_prop_enum_radio_frame_new (GObject *config,
|
|||
/**
|
||||
* gimp_prop_enum_radio_box_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Enum property controlled by the radio buttons.
|
||||
* @property_name: Name of enum property controlled by the radio buttons.
|
||||
* @minimum: Smallest value of enum to be included.
|
||||
* @maximum: Largest value of enum to be included.
|
||||
*
|
||||
* Creates a group of radio buttons which function to set and display
|
||||
* the specified Enum property. The @minimum and @maximum arguments
|
||||
* the specified enum property. The @minimum and @maximum arguments
|
||||
* allow only a subset of the enum to be used. If the two arguments
|
||||
* are equal (e.g., 0, 0), then the full range of the enum will be used.
|
||||
* If you want to assign a label to the group of radio buttons, use
|
||||
|
@ -859,11 +860,11 @@ gimp_prop_enum_label_notify (GObject *config,
|
|||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of boolean property controlled by the radio buttons.
|
||||
* @title: Label for the frame.
|
||||
* @true_text: Label for the button corresponding to #TRUE.
|
||||
* @false_text: Label for the button corresponding to #FALSE.
|
||||
* @true_text: Label for the button corresponding to %TRUE.
|
||||
* @false_text: Label for the button corresponding to %FALSE.
|
||||
*
|
||||
* Creates a pair of radio buttons which function to set and display
|
||||
* the specified Boolean property.
|
||||
* the specified boolean property.
|
||||
*
|
||||
* Return value: A #GimpFrame containing the radio buttons.
|
||||
*
|
||||
|
@ -917,16 +918,16 @@ gimp_prop_boolean_radio_frame_new (GObject *config,
|
|||
/**
|
||||
* gimp_prop_enum_stock_box_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Enum property controlled by the radio buttons.
|
||||
* @property_name: Name of enum property controlled by the radio buttons.
|
||||
* @stock_prefix: The prefix of the group of stock ids to use.
|
||||
* @minimum: Smallest value of enum to be included.
|
||||
* @maximum: Largest value of enum to be included.
|
||||
*
|
||||
* Creates a horizontal box of radio buttons with stock icons, which function
|
||||
* to set and display the value of the specified Enum property. The
|
||||
* stock_id for each icon is created by appending the enum_value's
|
||||
* nick to the given @stock_prefix. See gimp_enum_stock_box_new()
|
||||
* for more information.
|
||||
* Creates a horizontal box of radio buttons with stock icons, which
|
||||
* function to set and display the value of the specified Enum
|
||||
* property. The stock_id for each icon is created by appending the
|
||||
* enum_value's nick to the given @stock_prefix. See
|
||||
* gimp_enum_stock_box_new() for more information.
|
||||
*
|
||||
* Return value: A #GimpEnumStockBox containing the radio buttons.
|
||||
*
|
||||
|
@ -1037,13 +1038,13 @@ static void gimp_prop_adjustment_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_spin_button_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Double property controlled by the spin button.
|
||||
* @property_name: Name of double property controlled by the spin button.
|
||||
* @step_increment: Step size.
|
||||
* @page_increment: Page size.
|
||||
* @digits: Number of digits after decimal point to display.
|
||||
*
|
||||
* Creates a spin button to set and display the value of the
|
||||
* specified Double property.
|
||||
* specified double property.
|
||||
*
|
||||
* Return value: A new #GimpSpinButton.
|
||||
*
|
||||
|
@ -1095,21 +1096,26 @@ gimp_prop_spin_button_new (GObject *config,
|
|||
/**
|
||||
* gimp_prop_scale_entry_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Double property controlled by the spin button.
|
||||
* @property_name: Name of double property controlled by the spin button.
|
||||
* @table: The #GtkTable the widgets will be attached to.
|
||||
* @column: The column to start with.
|
||||
* @row: The row to attach the widgets.
|
||||
* @label: The text for the #GtkLabel which will appear left of the #GtkHScale.
|
||||
* @label: The text for the #GtkLabel which will appear left of
|
||||
* the #GtkHScale.
|
||||
* @step_increment: Step size.
|
||||
* @page_increment: Page size.
|
||||
* @digits: Number of digits after decimal point to display.
|
||||
* @restrict_scale: TRUE if the range of possible values of the GtkSpinButton should be
|
||||
* @restrict_scale: %TRUE if the range of possible values of the
|
||||
* GtkSpinButton should be
|
||||
* the same as of the GtkHScale.
|
||||
* @restricted_lower: The spinbutton's lower boundary if @restrict_scale == #FALSE.
|
||||
* @restricted_upper: The spinbutton's upper boundary if @restrict_scale == #FALSE.
|
||||
* @restricted_lower: The spinbutton's lower boundary if @restrict_scale
|
||||
* is %FALSE.
|
||||
* @restricted_upper: The spinbutton's upper boundary if @restrict_scale
|
||||
* is %FALSE.
|
||||
*
|
||||
* Creates a #GimpScaleEntry (slider and spin button) to set and display the value
|
||||
* of the specified Double property. See gimp_scale_entry_new for more information.
|
||||
* Creates a #GimpScaleEntry (slider and spin button) to set and
|
||||
* display the value of the specified double property. See
|
||||
* gimp_scale_entry_new() for more information.
|
||||
*
|
||||
* Return value: The #GtkSpinButton's #GtkAdjustment.
|
||||
*
|
||||
|
@ -1186,16 +1192,17 @@ gimp_prop_scale_entry_new (GObject *config,
|
|||
/**
|
||||
* gimp_prop_opacity_entry_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Double property controlled by the spin button.
|
||||
* @property_name: Name of double property controlled by the spin button.
|
||||
* @table: The #GtkTable the widgets will be attached to.
|
||||
* @column: The column to start with.
|
||||
* @row: The row to attach the widgets.
|
||||
* @label: The text for the #GtkLabel which will appear left of the #GtkHScale.
|
||||
* @label: The text for the #GtkLabel which will appear left of the
|
||||
* #GtkHScale.
|
||||
*
|
||||
* Creates a #GimpScaleEntry (slider and spin button) to set and display the value
|
||||
* of the specified Double property, which should represent an "opacity"
|
||||
* variable with range 0 to 100.
|
||||
* See gimp_scale_entry_new for more information.
|
||||
* Creates a #GimpScaleEntry (slider and spin button) to set and
|
||||
* display the value of the specified double property, which should
|
||||
* represent an "opacity" variable with range 0 to 100. See
|
||||
* gimp_scale_entry_new() for more information.
|
||||
*
|
||||
* Return value: The #GtkSpinButton's #GtkAdjustment.
|
||||
*
|
||||
|
@ -1419,11 +1426,11 @@ static void gimp_prop_memsize_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_memsize_entry_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Memsize property.
|
||||
* @property_name: Name of memsize property.
|
||||
*
|
||||
* Creates a #GimpMemsizeEntry (spin button and option menu) to set and display the value
|
||||
* of the specified Memsize property.
|
||||
* See gimp_memsize_entry_new for more information.
|
||||
* Creates a #GimpMemsizeEntry (spin button and option menu) to set
|
||||
* and display the value of the specified memsize property. See
|
||||
* gimp_memsize_entry_new() for more information.
|
||||
*
|
||||
* Return value: A new #GimpMemsizeEntry.
|
||||
*
|
||||
|
@ -1531,11 +1538,11 @@ static void gimp_prop_label_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_label_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of String property.
|
||||
* @property_name: Name of string property.
|
||||
*
|
||||
* Creates a #GtkLabel to display the value of the specified String property.
|
||||
* If the user should be able to edit the string, use gimp_prop_entry_new()
|
||||
* instead.
|
||||
* Creates a #GtkLabel to display the value of the specified String
|
||||
* property. If the user should be able to edit the string, use
|
||||
* gimp_prop_entry_new() instead.
|
||||
*
|
||||
* Return value: A new #GtkLabel widget.
|
||||
*
|
||||
|
@ -1603,10 +1610,11 @@ static void gimp_prop_entry_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_entry_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of String property.
|
||||
* @property_name: Name of string property.
|
||||
* @max_len: Maximum allowed length of string.
|
||||
*
|
||||
* Creates a #GtkEntry to set and display the value of the specified String property.
|
||||
* Creates a #GtkEntry to set and display the value of the specified
|
||||
* string property.
|
||||
*
|
||||
* Return value: A new #GtkEntry widget.
|
||||
*
|
||||
|
@ -1718,13 +1726,14 @@ static void gimp_prop_text_buffer_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_text_buffer_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of String property.
|
||||
* @property_name: Name of string property.
|
||||
* @max_len: Maximum allowed length of text.
|
||||
*
|
||||
* Creates a #GtkTextBuffer to set and display the value of the specified String property.
|
||||
* Unless the string is expected to contain multiple lines or a large amount of
|
||||
* text, use gimp_prop_entry_new() instead. See #GtkTextView for information
|
||||
* on how to insert a text buffer into a visible widget.
|
||||
* Creates a #GtkTextBuffer to set and display the value of the
|
||||
* specified string property. Unless the string is expected to
|
||||
* contain multiple lines or a large amount of text, use
|
||||
* gimp_prop_entry_new() instead. See #GtkTextView for information on
|
||||
* how to insert a text buffer into a visible widget.
|
||||
*
|
||||
* Return value: A new #GtkTextBuffer.
|
||||
*
|
||||
|
@ -1864,8 +1873,8 @@ static void gimp_prop_file_entry_notify (GObject *config,
|
|||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Path property.
|
||||
* @filesel_title: Label for the file selector.
|
||||
* @dir_only: #TRUE if the file entry should accept directories only.
|
||||
* @check_valid: #TRUE if the widget should check if the entered file
|
||||
* @dir_only: %TRUE if the file entry should accept directories only.
|
||||
* @check_valid: %TRUE if the widget should check if the entered file
|
||||
* really exists.
|
||||
*
|
||||
* Creates a #GimpFileEntry to set and display the specified Path property.
|
||||
|
@ -1993,12 +2002,11 @@ static void gimp_prop_file_chooser_button_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_file_chooser_button_new:
|
||||
* @config: object to which property is attached.
|
||||
* @property_name: name of Path property.
|
||||
* @property_name: name of path property.
|
||||
* @title: the title of the browse dialog.
|
||||
* @action: the open mode for the widget.
|
||||
*
|
||||
* Creates a #GtkFileChooserButton to edit the specified path
|
||||
* property.
|
||||
* Creates a #GtkFileChooserButton to edit the specified path property.
|
||||
*
|
||||
* Note that #GtkFileChooserButton implements the #GtkFileChooser
|
||||
* interface; you can use the #GtkFileChooser API with it.
|
||||
|
@ -2392,16 +2400,19 @@ static void gimp_prop_size_entry_notify_unit (GObject *config,
|
|||
/**
|
||||
* gimp_prop_size_entry_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Int or Double property.
|
||||
* @unit_property_name: Name of Unit property.
|
||||
* @unit_format: A printf-like unit-format string as is used with gimp_unit_menu_new().
|
||||
* @update_policy: How the automatic pixel <-> real-world-unit calculations should be done.
|
||||
* @property_name: Name of int or double property.
|
||||
* @unit_property_name: Name of unit property.
|
||||
* @unit_format: A printf-like unit-format string as is used with
|
||||
* gimp_unit_menu_new().
|
||||
* @update_policy: How the automatic pixel <-> real-world-unit
|
||||
* calculations should be done.
|
||||
* @resolution: The resolution (in dpi) for the field.
|
||||
*
|
||||
* Creates a #GimpSizeEntry to set and display the specified Double or Int property,
|
||||
* and its associated Unit property. Note that this function is only suitable
|
||||
* for creating a size entry holding a single value. Use gimp_prop_coordinates_new()
|
||||
* to create a size entry holding two values.
|
||||
* Creates a #GimpSizeEntry to set and display the specified double or
|
||||
* int property, and its associated unit property. Note that this
|
||||
* function is only suitable for creating a size entry holding a
|
||||
* single value. Use gimp_prop_coordinates_new() to create a size
|
||||
* entry holding two values.
|
||||
*
|
||||
* Return value: A new #GimpSizeEntry widget.
|
||||
*
|
||||
|
@ -2650,17 +2661,20 @@ static void gimp_prop_coordinates_notify_unit (GObject *config,
|
|||
/**
|
||||
* gimp_prop_coordinates_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @x_property_name: Name of Int or Double property for X coordinate.
|
||||
* @y_property_name: Name of Int or Double property for Y coordinate.
|
||||
* @unit_property_name: Name of Unit property.
|
||||
* @unit_format: A printf-like unit-format string as is used with gimp_unit_menu_new().
|
||||
* @update_policy: How the automatic pixel <-> real-world-unit calculations should be done.
|
||||
* @x_property_name: Name of int or double property for X coordinate.
|
||||
* @y_property_name: Name of int or double property for Y coordinate.
|
||||
* @unit_property_name: Name of unit property.
|
||||
* @unit_format: A printf-like unit-format string as is used with
|
||||
* gimp_unit_menu_new().
|
||||
* @update_policy: How the automatic pixel <-> real-world-unit
|
||||
* calculations should be done.
|
||||
* @xresolution: The resolution (in dpi) for the X coordinate.
|
||||
* @yresolution: The resolution (in dpi) for the Y coordinate.
|
||||
* @has_chainbutton: Whether to add a chainbutton to the size entry.
|
||||
*
|
||||
* Creates a #GimpSizeEntry to set and display two Double or Int property, which
|
||||
* will usually represent X and Y coordinates, and their associated Unit property.
|
||||
* Creates a #GimpSizeEntry to set and display two double or int
|
||||
* properties, which will usually represent X and Y coordinates, and
|
||||
* their associated unit property.
|
||||
*
|
||||
* Return value: A new #GimpSizeEntry widget.
|
||||
*
|
||||
|
@ -3209,10 +3223,11 @@ static void gimp_prop_unit_menu_notify (GObject *config,
|
|||
* gimp_prop_unit_menu_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Unit property.
|
||||
* @unit_format: A printf-like format string which is used to create the unit strings.
|
||||
* @unit_format: A printf-like format string which is used to create
|
||||
* the unit strings.
|
||||
*
|
||||
* Creates a #GimpUnitMenu to set and display the value of a Unit property.
|
||||
* See gimp_unit_menu_new() for more information.
|
||||
* Creates a #GimpUnitMenu to set and display the value of a Unit
|
||||
* property. See gimp_unit_menu_new() for more information.
|
||||
*
|
||||
* Return value: A new #GimpUnitMenu widget.
|
||||
*
|
||||
|
@ -3249,7 +3264,8 @@ gimp_prop_unit_menu_new (GObject *config,
|
|||
property_name, &unit,
|
||||
NULL);
|
||||
|
||||
menu = gimp_unit_menu_new (unit_format, unit, show_pixels, show_percent, TRUE);
|
||||
menu = gimp_unit_menu_new (unit_format,
|
||||
unit, show_pixels, show_percent, TRUE);
|
||||
|
||||
set_param_spec (G_OBJECT (menu), menu, param_spec);
|
||||
|
||||
|
@ -3325,11 +3341,11 @@ static void gimp_prop_stock_image_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_stock_image_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of String property.
|
||||
* @property_name: Name of string property.
|
||||
* @icon_size: Size of desired stock image.
|
||||
*
|
||||
* Creates a widget to display a stock image representing the value of the
|
||||
* specified String property, which should encode a Stock ID.
|
||||
* specified string property, which should encode a Stock ID.
|
||||
* See gtk_image_new_from_stock() for more information.
|
||||
*
|
||||
* Return value: A new #GtkImage widget.
|
||||
|
@ -3402,11 +3418,11 @@ static void gimp_prop_expander_notify (GObject *config,
|
|||
/**
|
||||
* gimp_prop_expander_new:
|
||||
* @config: Object to which property is attached.
|
||||
* @property_name: Name of Boolean property.
|
||||
* @property_name: Name of boolean property.
|
||||
* @label: Label for expander.
|
||||
*
|
||||
* Creates a #GtkExpander controlled by the specified Boolean property.
|
||||
* A value of #TRUE for the property corresponds to the expanded state
|
||||
* Creates a #GtkExpander controlled by the specified boolean property.
|
||||
* A value of %TRUE for the property corresponds to the expanded state
|
||||
* for the widget.
|
||||
*
|
||||
* Return value: A new #GtkExpander widget.
|
||||
|
|
Loading…
Reference in New Issue