added an API to allow for sub-pixel sizes in spinbuttons connected to a

2003-10-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpunitmenu.[ch]:
	* libgimpwidgets/gimpwidgets.c: added an API to allow for
	sub-pixel sizes in spinbuttons connected to a GimpUnitMenu.
	Make GimpUnitMenu emit "unit-changed" when the unit is changed
	programmatically.

	* libgimpwidgets/gimpsizeentry.[ch}: added a similar API here.
	Make GimpSizeEntry emit "unit-changed" when the unit is changed
	programmatically. The other signals will need similar changes.

	* plug-ins/common/gauss_rle.c
	* plug-ins/common/gauss_iir.c
	* app/widgets/gimpstrokeeditor.c: use the new API.
This commit is contained in:
Sven Neumann
2003-09-30 23:19:48 +00:00
committed by Sven Neumann
parent 1667acd36d
commit 2f855afa6a
14 changed files with 287 additions and 110 deletions

View File

@ -150,6 +150,7 @@ gimp_size_entry_get_refval
gimp_size_entry_set_refval
gimp_size_entry_get_unit
gimp_size_entry_set_unit
gimp_size_entry_set_pixel_digits
gimp_size_entry_grab_focus
<SUBSECTION Standard>
GIMP_SIZE_ENTRY
@ -169,6 +170,8 @@ GimpUnitMenu
gimp_unit_menu_new
gimp_unit_menu_set_unit
gimp_unit_menu_get_unit
gimp_unit_menu_get_pixel_digits
gimp_unit_menu_set_pixel_digits
<SUBSECTION Standard>
GIMP_UNIT_MENU
GIMP_IS_UNIT_MENU

View File

@ -215,6 +215,15 @@ gimp_coordinates_new()
@unit:
<!-- ##### FUNCTION gimp_size_entry_set_pixel_digits ##### -->
<para>
</para>
@gse:
@digits:
<!-- ##### FUNCTION gimp_size_entry_grab_focus ##### -->
<para>

View File

@ -110,6 +110,24 @@ gimp_coordinates_new()
@gum:
<!-- ##### FUNCTION gimp_unit_menu_get_pixel_digits ##### -->
<para>
</para>
@menu:
@Returns:
<!-- ##### FUNCTION gimp_unit_menu_set_pixel_digits ##### -->
<para>
</para>
@menu:
@digits:
<!-- ##### SIGNAL GimpUnitMenu::unit-changed ##### -->
<para>
This signal is emitted whenever the user selects a #GimpUnit from the