From 41611db1a4227ba45a36e7411b0d7cc5bc82fa49 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 6 Nov 2006 08:14:46 +0000 Subject: [PATCH] formatting. 2006-11-05 Sven Neumann * app/xcf-save.c: formatting. --- ChangeLog | 43 ++++++++++++++++++++---------------- app/pdb/fileops_cmds.c | 11 +++++----- app/xcf/xcf-save.c | 50 +++++++++++++++++++++--------------------- 3 files changed, 55 insertions(+), 49 deletions(-) diff --git a/ChangeLog b/ChangeLog index a1c04dfb4d..15e22155d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +2006-11-05 Sven Neumann + + * app/xcf-save.c: formatting. + +2006-11-05 Sven Neumann + + * app/dialogs/file-save-dialog.c (file_save_dialog_check_uri): use + file_utils_uri_display_basename() instead of g_path_get_basename() + to get an uri's basename. + +2006-11-05 Sven Neumann + + * app/file/file-save.c (file_save): only save a thumbnail if we + are saving as XCF. Fixes bug #25272. + + * tools/pdbgen/pdb/fileops.pdb: create a libgimp wrapper for the + "gimp-file-save-thumbnail" procedure. + + * app/pdb/fileops_cmds.c + * libgimp/gimpfileops_pdb.[ch]: regenerated. + + * plug-ins/common/compressor.c (save_image): ask the core to save + a thumbnail for compressed XCF files. + 2006-11-05 Michael Natterer * app/widgets/gimpviewrendererpalette.c @@ -40,25 +64,6 @@ * app/tools/gimpcroptool.c * app/tools/gimprectangleoptions.c: whitespace stuff. -2006-11-05 Sven Neumann - - * app/dialogs/file-save-dialog.c (file_save_dialog_check_uri): use - file_utils_uri_display_basename() instead of g_path_get_basename() - to get an uri's basename. - -2006-11-05 Sven Neumann - - * app/file/file-save.c (file_save): only save a thumbnail if we - are saving as XCF. Fixes bug #25272. - - * tools/pdbgen/pdb/fileops.pdb: create a libgimp wrapper for the - "gimp-file-save-thumbnail" procedure. - - * libgimp/gimpfileops_pdb.[ch]: regenerated. - - * plug-ins/common/compressor.c (save_image): ask the core to save - a thumbnail for compressed XCF files. - 2006-11-05 Sven Neumann * plug-ins/common/tileit.c: applied patch from Saul Goode to fix diff --git a/app/pdb/fileops_cmds.c b/app/pdb/fileops_cmds.c index e8152dbaa0..fadacfbfbf 100644 --- a/app/pdb/fileops_cmds.c +++ b/app/pdb/fileops_cmds.c @@ -82,13 +82,14 @@ file_load_invoker (GimpProcedure *procedure, g_value_transform (&args->values[i], &new_args->values[i]); for (i = 3; i < proc->num_args; i++) - if (G_IS_PARAM_SPEC_STRING (proc->args[i])) + if (G_IS_PARAM_SPEC_STRING (proc->args[i])) g_value_set_static_string (&new_args->values[i], ""); - return_vals = gimp_pdb_execute_procedure_by_name_args (gimp->pdb, - context, progress, - GIMP_OBJECT (proc)->name, - new_args); + return_vals = + gimp_pdb_execute_procedure_by_name_args (gimp->pdb, + context, progress, + GIMP_OBJECT (proc)->name, + new_args); g_value_array_free (new_args); diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c index edc16e4719..ffa5b5b45f 100644 --- a/app/xcf/xcf-save.c +++ b/app/xcf/xcf-save.c @@ -443,9 +443,9 @@ xcf_save_image (XcfInfo *info, } static gboolean -xcf_save_image_props (XcfInfo *info, - GimpImage *image, - GError **error) +xcf_save_image_props (XcfInfo *info, + GimpImage *image, + GError **error) { GimpParasite *parasite = NULL; GimpUnit unit = gimp_image_get_unit (image); @@ -514,10 +514,10 @@ xcf_save_image_props (XcfInfo *info, } static gboolean -xcf_save_layer_props (XcfInfo *info, - GimpImage *image, - GimpLayer *layer, - GError **error) +xcf_save_layer_props (XcfInfo *info, + GimpImage *image, + GimpLayer *layer, + GError **error) { GimpParasite *parasite = NULL; @@ -599,10 +599,10 @@ xcf_save_layer_props (XcfInfo *info, } static gboolean -xcf_save_channel_props (XcfInfo *info, - GimpImage *image, - GimpChannel *channel, - GError **error) +xcf_save_channel_props (XcfInfo *info, + GimpImage *image, + GimpChannel *channel, + GError **error) { guchar col[3]; @@ -637,10 +637,10 @@ xcf_save_channel_props (XcfInfo *info, } static gboolean -xcf_save_prop (XcfInfo *info, - GimpImage *image, - PropType prop_type, - GError **error, +xcf_save_prop (XcfInfo *info, + GimpImage *image, + PropType prop_type, + GError **error, ...) { guint32 size; @@ -1127,10 +1127,10 @@ xcf_save_prop (XcfInfo *info, } static gboolean -xcf_save_layer (XcfInfo *info, - GimpImage *image, - GimpLayer *layer, - GError **error) +xcf_save_layer (XcfInfo *info, + GimpImage *image, + GimpLayer *layer, + GError **error) { guint32 saved_pos; guint32 offset; @@ -1268,9 +1268,9 @@ xcf_calc_levels (gint size, static gboolean -xcf_save_hierarchy (XcfInfo *info, - TileManager *tiles, - GError **error) +xcf_save_hierarchy (XcfInfo *info, + TileManager *tiles, + GError **error) { guint32 saved_pos; guint32 offset; @@ -1347,9 +1347,9 @@ xcf_save_hierarchy (XcfInfo *info, } static gboolean -xcf_save_level (XcfInfo *info, - TileManager *level, - GError **error) +xcf_save_level (XcfInfo *info, + TileManager *level, + GError **error) { guint32 saved_pos; guint32 offset;