Commit 12ad7194 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

use G_N_ELEMENTS().

2002-12-20  Michael Natterer  <mitch@gimp.org>

	* app/xcf/xcf.c: use G_N_ELEMENTS().
parent f9213619
2002-12-20 Michael Natterer <mitch@gimp.org>
* app/xcf/xcf.c: use G_N_ELEMENTS().
2002-12-20 Sven Neumann <sven@gimp.org>
 
* app/config/gimpconfig.c (gimp_config_serialize): check the return
......@@ -10,7 +14,7 @@
* app/xcf/xcf.c: ported the fix for bug #101340 over from the
stable branch. Uses GError to report errors, unlike the stable
version, which uses a pointer to gboolean.
* app/xcf/xcf-seek.[ch]: check the return value of fseek and ftell
for errors. Return FALSE and set GError if an error is detected.
 
......
......@@ -156,11 +156,10 @@ static PlugInProcDef xcf_plug_in_save_proc =
static GimpXcfLoaderFunc *xcf_loaders[] =
{
xcf_load_image, /* version 0 */
xcf_load_image, /* version 0 */
xcf_load_image, /* version 1 */
xcf_load_image /* version 2 */
};
static gint n_xcf_loaders = sizeof (xcf_loaders) / sizeof (xcf_loaders[0]);
void
......@@ -250,7 +249,7 @@ xcf_load_invoker (Gimp *gimp,
if (success)
{
if (info.file_version < n_xcf_loaders)
if (info.file_version < G_N_ELEMENTS (xcf_loaders))
{
gimage = (*(xcf_loaders[info.file_version])) (gimp, &info);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment