gimp r23154 - in trunk: . app/tools app/widgets libgimpwidgets



Author: martinn
Date: 2007-08-08 19:08:24 +0100 (Wed, 08 Aug 2007)
New Revision: 23154
ViewCVS link: http://svn.gnome.org/viewcvs/gimp?rev=23154&view=rev

Added:
   trunk/libgimpwidgets/gimpnumberpairentry.c
   trunk/libgimpwidgets/gimpnumberpairentry.h
Removed:
   trunk/libgimpwidgets/gimpratioentry.c
   trunk/libgimpwidgets/gimpratioentry.h
Modified:
   trunk/ChangeLog
   trunk/app/tools/gimprectangleoptions.c
   trunk/app/widgets/gimppropwidgets.c
   trunk/app/widgets/gimppropwidgets.h
   trunk/libgimpwidgets/Makefile.am
   trunk/libgimpwidgets/gimpwidgets.def
   trunk/libgimpwidgets/gimpwidgets.h
   trunk/libgimpwidgets/gimpwidgetstypes.h
Log:
2007-08-08  Martin Nordholts  <martinn svn gnome org>

	Renamed GimpRatioEntry to GimpNumberPairEntry, and generalized the
	code a lot, so that it can be used both for 'Fixed: Aspect ratio'
	and 'Fixed: Size'. Support is also added for having default values
	and a 'user overrided' value mode.

	* libgimpwidgets/gimpnumberpairentry.[ch]: Now contains the
	rewrite and generalization of GimpRatioEntry.
	(gimp_number_pair_entry_get_type)
	(gimp_number_pair_entry_new)
        (gimp_number_pair_entry_set_default_values)
	(gimp_number_pair_entry_set_values)
        (gimp_number_pair_entry_get_values): New libgimpwidget API.

	* app/widgets/gimppropwidgets.[ch] (gimp_prop_size_2d_new): Added
	new helper widget for setting up a GimpNumberPairEntry for the
	Fixed: Size entry in the Rectangle Options.

	* app/tools/gimprectangleoptions.c (gimp_rectangle_options_gui):
	Use the new gimp_prop_size_2d_entry for the Fixed: Size entry.

	* libgimpwidgets/gimpwidgets.def: Removed gimp_ratio_entry_* and
	added gimp_number_pair_entry_*.

	* libgimpwidgets/gimpwidgets.h * libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/Makefile.am (libgimpwidgets_2_0_la_sources)
	(libgimpwidgetsinclude_HEADERS): Updated accordingly.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]