app/dialogs/channel-options-dialog.c app/dialogs/convert-dialog.c

2007-05-23  Sven Neumann  <sven@gimp.org>

	* app/dialogs/channel-options-dialog.c
	* app/dialogs/convert-dialog.c
	* app/dialogs/desaturate-dialog.c
	* app/dialogs/fade-dialog.c
	* app/dialogs/image-merge-layers-dialog.c
	* app/dialogs/image-new-dialog.c
	* app/dialogs/image-scale-dialog.c
	* app/dialogs/layer-add-mask-dialog.c
	* app/dialogs/layer-options-dialog.c
	* app/dialogs/module-dialog.c
	* app/dialogs/offset-dialog.c
	* app/dialogs/palette-import-dialog.c
	* app/dialogs/print-size-dialog.c
	* app/dialogs/resize-dialog.c
	* app/dialogs/scale-dialog.c
	* app/dialogs/template-options-dialog.c
	* app/dialogs/vectors-export-dialog.c
	* app/dialogs/vectors-import-dialog.c
	* app/dialogs/vectors-options-dialog.c: allocate structs using GSlice.


svn path=/trunk/; revision=22598
This commit is contained in:
Sven Neumann
2007-05-23 20:08:27 +00:00
committed by Sven Neumann
parent ac2f30c485
commit 2381068a89
20 changed files with 215 additions and 90 deletions

View File

@ -39,8 +39,8 @@
#include "gimp-intl.h"
#define RESPONSE_REFRESH 1
#define NUM_INFO_LINES 9
#define RESPONSE_REFRESH 1
#define NUM_INFO_LINES 9
enum
{
@ -50,9 +50,7 @@ enum
NUM_COLUMNS
};
typedef struct _ModuleDialog ModuleDialog;
struct _ModuleDialog
typedef struct
{
Gimp *gimp;
@ -63,7 +61,7 @@ struct _ModuleDialog
GtkWidget *label[NUM_INFO_LINES];
GtkWidget *button;
GtkWidget *button_label;
};
} ModuleDialog;
/* local function prototypes */
@ -113,7 +111,7 @@ module_dialog_new (Gimp *gimp)
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
dialog = g_new0 (ModuleDialog, 1);
dialog = g_slice_new0 (ModuleDialog);
dialog->gimp = gimp;
@ -261,7 +259,7 @@ dialog_destroy_callback (GtkWidget *widget,
dialog_info_update,
dialog);
g_free (dialog);
g_slice_free (ModuleDialog, dialog);
}
static void