Index: jpeg-save.h
===================================================================
--- jpeg-save.h	(révision 22857)
+++ jpeg-save.h	(copie de travail)
@@ -32,6 +32,10 @@
 #define DEFAULT_THUMBNAIL   FALSE
 #define DEFAULT_XMP         TRUE
 
+#define RESPONSE_LOAD_DEFAULTS 1
+#define RESPONSE_SAVE_DEFAULTS 2
+#define JPEG_DEFAULTS_PARASITE  "jpeg-save-defaults"
+
 typedef struct
 {
   gdouble  quality;
@@ -48,6 +52,29 @@
   gboolean save_xmp;
 } JpegSaveVals;
 
+//le added : struct containing pointers to save dialog
+typedef struct
+{
+  gboolean       run;
+  GtkWidget     *use_restart_markers;	//checkbox setting use restart markers
+  GtkTextBuffer *text_buffer;
+  GtkObject     *scale_data;	//for restart markers
+  gulong        handler_id_restart;
+  
+  GtkObject     *quality; //quality slidebar
+  GtkObject     *smoothing;	//smoothing slidebar
+  GtkWidget     *optimize;	//optimize togle
+  GtkWidget     *progressive;	//progressive toggle
+  GtkWidget     *subsmp;	//subsampling side select
+  GtkWidget     *baseline;		//baseling toggle
+  GtkWidget     *restart;	//spinner for setting frequency restart markers
+  GtkWidget     *dct;	//DCT side select
+  GtkWidget     *preview;	//show preview toggle checkbox
+  GtkWidget     *save_exif;
+  GtkWidget     *save_thumbnail;
+  GtkWidget		 *save_xmp;
+} JpegSaveGui;
+
 extern JpegSaveVals     jsvals;
 
 extern gint32           orig_image_ID_global;
@@ -60,3 +87,11 @@
                                gboolean          preview);
 
 gboolean  save_dialog         (void);
+
+static void      save_dialog_response (GtkWidget *widget,
+                      						gint       response_id,
+                      						gpointer   data);
+
+gboolean  load_defaults             (void);
+static void      load_gui_defaults (JpegSaveGui *pg);
+static void 	  save_defaults(void);
