1 diff -ruN easytag-0.30a/configure easytag-0.30b/configure
2 --- easytag-0.30a/configure Sat Oct 18 19:18:41 2003
3 +++ easytag-0.30b/configure Sat Oct 18 19:21:15 2003
6 # Guess values for system-dependent variables and create Makefiles.
7 -# Generated by GNU Autoconf 2.53 for easytag 0.30a.
8 +# Generated by GNU Autoconf 2.53 for easytag 0.30b.
10 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
11 # Free Software Foundation, Inc.
13 # Identity of this package.
14 PACKAGE_NAME='easytag'
15 PACKAGE_TARNAME='easytag'
16 -PACKAGE_VERSION='0.30a'
17 -PACKAGE_STRING='easytag 0.30a'
18 +PACKAGE_VERSION='0.30b'
19 +PACKAGE_STRING='easytag 0.30b'
22 ac_unique_file="src/easytag.h"
24 # Omit some internal or obsolete options to make the list less imposing.
25 # This message is too long to be a string in the A/UX 3.1 sh.
27 -\`configure' configures easytag 0.30a to adapt to many kinds of systems.
28 +\`configure' configures easytag 0.30b to adapt to many kinds of systems.
30 Usage: $0 [OPTION]... [VAR=VALUE]...
34 if test -n "$ac_init_help"; then
36 - short | recursive ) echo "Configuration of easytag 0.30a:";;
37 + short | recursive ) echo "Configuration of easytag 0.30b:";;
42 test -n "$ac_init_help" && exit 0
43 if $ac_init_version; then
45 -easytag configure 0.30a
46 +easytag configure 0.30b
47 generated by GNU Autoconf 2.53
49 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
51 This file contains any messages produced by compilers while
52 running configure, to aid debugging if configure makes a mistake.
54 -It was created by easytag $as_me 0.30a, which was
55 +It was created by easytag $as_me 0.30b, which was
56 generated by GNU Autoconf 2.53. Invocation command line was
61 # Define the identity of the package.
67 cat >>confdefs.h <<_ACEOF
68 @@ -12653,7 +12653,7 @@
72 -This file was extended by easytag $as_me 0.30a, which was
73 +This file was extended by easytag $as_me 0.30b, which was
74 generated by GNU Autoconf 2.53. Invocation command line was
76 CONFIG_FILES = $CONFIG_FILES
77 @@ -12715,7 +12715,7 @@
79 cat >>$CONFIG_STATUS <<_ACEOF
81 -easytag config.status 0.30a
82 +easytag config.status 0.30b
83 configured by $0, generated by GNU Autoconf 2.53,
84 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
86 diff -ruN easytag-0.30a/configure.in easytag-0.30b/configure.in
87 --- easytag-0.30a/configure.in Sat Oct 18 19:18:41 2003
88 +++ easytag-0.30b/configure.in Sat Oct 18 19:21:39 2003
93 -AC_INIT(easytag, 0.30a) dnl defines ($PACKAGE, $VERSION)
94 +AC_INIT(easytag, 0.30b) dnl defines ($PACKAGE, $VERSION)
95 AC_CONFIG_SRCDIR(src/easytag.h)
96 dnl -------------------------------
98 diff -ruN easytag-0.30a/easytag.spec easytag-0.30b/easytag.spec
99 --- easytag-0.30a/easytag.spec Sat Oct 18 19:18:41 2003
100 +++ easytag-0.30b/easytag.spec Sat Oct 18 19:21:53 2003
103 -%define version 0.30a
104 +%define version 0.30b
108 diff -ruN easytag-0.30a/src/browser.c easytag-0.30b/src/browser.c
109 --- easytag-0.30a/src/browser.c Sat Sep 6 23:03:48 2003
110 +++ easytag-0.30b/src/browser.c Sat Oct 18 19:26:44 2003
115 - if (Save_Selected_Files_With_Answer()==-1) return;
116 + if (Save_All_Files_With_Answer()==-1) return;
120 diff -ruN easytag-0.30a/src/easytag.c easytag-0.30b/src/easytag.c
121 --- easytag-0.30a/src/easytag.c Sun Sep 7 01:02:34 2003
122 +++ easytag-0.30b/src/easytag.c Sat Oct 18 19:53:01 2003
124 void Rename_File (ET_File *ETFile);
125 gint Save_File (ET_File *ETFile, gboolean multiple_files);
126 gint Delete_File (ET_File *ETFile, gboolean multiple_files);
127 -gint Save_File_With_Answer (gboolean multiple_files);
128 +gint Save_Selected_Files_With_Answer (void);
129 gint Save_All_Files_With_Answer (void);
130 +gint Save_List_Of_Files (GList *etfilelist);
131 gint Delete_Selected_Files_With_Answer (void);
133 void Display_Usage (void);
134 @@ -1247,12 +1248,6 @@
138 - * Save_File_With_Answer: Function to save single/multiple file(s).
139 - * - multiple_files = TRUE : when saving files, a msgbox appears with ability
140 - * to do the same action for all files.
141 - * - multiple_files = FALSE : appears only a msgbox to ak confirmation.
144 * Action when Save button is pressed
146 void Action_Save_Selected_Files (void)
147 @@ -1261,16 +1256,36 @@
151 +gint Save_All_Files_With_Answer (void)
155 + if (!ETFileList) return FALSE;
156 + etfilelist = g_list_first(ETFileList);
157 + return Save_List_Of_Files(etfilelist);
160 gint Save_Selected_Files_With_Answer (void)
162 - gint progress_bar_index;
163 - gint saving_answer;
166 + etfilelist = ET_File_List_Get_Selection();
167 + return Save_List_Of_Files(etfilelist);
171 + * Save_List_Of_Files: Function to save a list of files.
173 +gint Save_List_Of_Files (GList *etfilelist)
175 + gint progress_bar_index;
176 + gint saving_answer;
177 + gint nb_files_to_save;
179 + GList *etfilelist_tmp;
180 ET_File *etfile_save_position = NULL;
182 File_Name *FileNameNew;
184 - gint nb_files_to_save;
188 if (!ETFileList) return FALSE;
189 @@ -1283,15 +1298,15 @@
191 /* Count the number of files to save */
192 nb_files_to_save = 0;
193 - etfilelist = ET_File_List_Get_Selection();
195 + etfilelist_tmp = etfilelist;
196 + while (etfilelist_tmp)
198 - File_Tag *filetag = ((ET_File *)etfilelist->data)->FileTag->data;
199 - File_Name *filename = ((ET_File *)etfilelist->data)->FileNameNew->data;
200 + File_Tag *filetag = ((ET_File *)etfilelist_tmp->data)->FileTag->data;
201 + File_Name *filename = ((ET_File *)etfilelist_tmp->data)->FileNameNew->data;
203 if ( (filename && filename->saved==FALSE) || (filetag && filetag->saved==FALSE) )
205 - etfilelist = etfilelist->next;
206 + etfilelist_tmp = etfilelist_tmp->next;
209 /* Initialize status bar */
210 @@ -1312,24 +1327,24 @@
211 Main_Stop_Button_Pressed = 0;
212 gtk_widget_set_sensitive(TBStopButton,TRUE);
214 - etfilelist = ET_File_List_Get_Selection();
216 + etfilelist_tmp = etfilelist;
217 + while (etfilelist_tmp)
219 - FileTag = ((ET_File *)etfilelist->data)->FileTag->data;
220 - FileNameNew = ((ET_File *)etfilelist->data)->FileNameNew->data;
221 + FileTag = ((ET_File *)etfilelist_tmp->data)->FileTag->data;
222 + FileNameNew = ((ET_File *)etfilelist_tmp->data)->FileNameNew->data;
224 /* We process only the files not saved */
225 if ( FileTag->saved == FALSE || FileNameNew->saved == FALSE )
227 - ET_Display_File_Data_To_UI((ET_File *)etfilelist->data);
228 - Browser_List_Select_File((ET_File *)etfilelist->data,FALSE);
229 + ET_Display_File_Data_To_UI((ET_File *)etfilelist_tmp->data);
230 + Browser_List_Select_File((ET_File *)etfilelist_tmp->data,FALSE);
232 gtk_progress_set_value(GTK_PROGRESS(ProgressBar),++progress_bar_index);
233 /* Needed to refresh status bar */
234 while (gtk_events_pending())
235 gtk_main_iteration();
237 - saving_answer = Save_File((ET_File *)etfilelist->data,(nb_files_to_save>1)?TRUE:FALSE);
238 + saving_answer = Save_File((ET_File *)etfilelist_tmp->data,(nb_files_to_save>1)?TRUE:FALSE);
240 if (saving_answer == -1)
242 @@ -1346,7 +1361,7 @@
246 - etfilelist = etfilelist->next;
247 + etfilelist_tmp = etfilelist_tmp->next;
248 if (Main_Stop_Button_Pressed == 1 )
251 @@ -2875,7 +2890,7 @@
252 void Quit_MainWindow_Save_And_Quit (void)
254 /* Save modified tags */
255 - if (Save_Selected_Files_With_Answer() == -1) return;
256 + if (Save_All_Files_With_Answer() == -1) return;
257 Quit_MainWindow_Confirmed();
260 diff -ruN easytag-0.30a/src/easytag.h easytag-0.30b/src/easytag.h
261 --- easytag-0.30a/src/easytag.h Sun Aug 31 15:30:52 2003
262 +++ easytag-0.30b/src/easytag.h Sat Oct 18 19:26:48 2003
264 void Action_Undo_From_History_List (void);
265 void Action_Redo_From_History_List (void);
266 void Action_Delete_Selected_Files (void);
267 +gint Save_All_Files_With_Answer (void);
268 gint Save_Selected_Files_With_Answer (void);
270 void Action_Main_Stop_Button_Pressed (void);