made the value_desc and value_help members const, just as the

2008-09-04  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpbasetypes.h
	(struct GimpEnumDesc)
	(struct GimpFlagsDesc): made the value_desc and value_help members
	const, just as the corresponding GEnumValue and GFlagsValue
	members. This is technically an API change but shouldn't hurt
	since it totally reflects how they are used.


svn path=/trunk/; revision=26855
This commit is contained in:
Michael Natterer
2008-09-04 11:07:12 +00:00
committed by Michael Natterer
parent aa7c3e3b97
commit 0b086ecdb8
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,12 @@
2008-09-04 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimpbasetypes.h
(struct GimpEnumDesc)
(struct GimpFlagsDesc): made the value_desc and value_help members
const, just as the corresponding GEnumValue and GFlagsValue
members. This is technically an API change but shouldn't hurt
since it totally reflects how they are used.
2008-09-04 Michael Natterer <mitch@gimp.org> 2008-09-04 Michael Natterer <mitch@gimp.org>
* plug-ins/color-rotate/color-rotate-callbacks.c * plug-ins/color-rotate/color-rotate-callbacks.c

View File

@ -45,16 +45,16 @@ typedef void (* GimpDatafileLoaderFunc) (const GimpDatafileData *file_data,
struct _GimpEnumDesc struct _GimpEnumDesc
{ {
gint value; gint value;
gchar *value_desc; const gchar *value_desc;
gchar *value_help; const gchar *value_help;
}; };
struct _GimpFlagsDesc struct _GimpFlagsDesc
{ {
guint value; guint value;
gchar *value_desc; const gchar *value_desc;
gchar *value_help; const gchar *value_help;
}; };