]> git.pld-linux.org Git - packages/easytag.git/blob - easytag-0.30b.patch
- merged from DEVEL
[packages/easytag.git] / easytag-0.30b.patch
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
4 @@ -1,6 +1,6 @@
5  #! /bin/sh
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.
9  #
10  # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
11  # Free Software Foundation, Inc.
12 @@ -412,8 +412,8 @@
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'
20  PACKAGE_BUGREPORT=''
21  
22  ac_unique_file="src/easytag.h"
23 @@ -918,7 +918,7 @@
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.
26    cat <<_ACEOF
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.
29  
30  Usage: $0 [OPTION]... [VAR=VALUE]...
31  
32 @@ -984,7 +984,7 @@
33  
34  if test -n "$ac_init_help"; then
35    case $ac_init_help in
36 -     short | recursive ) echo "Configuration of easytag 0.30a:";;
37 +     short | recursive ) echo "Configuration of easytag 0.30b:";;
38     esac
39    cat <<\_ACEOF
40  
41 @@ -1092,7 +1092,7 @@
42  test -n "$ac_init_help" && exit 0
43  if $ac_init_version; then
44    cat <<\_ACEOF
45 -easytag configure 0.30a
46 +easytag configure 0.30b
47  generated by GNU Autoconf 2.53
48  
49  Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
50 @@ -1107,7 +1107,7 @@
51  This file contains any messages produced by compilers while
52  running configure, to aid debugging if configure makes a mistake.
53  
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
57  
58    $ $0 $@
59 @@ -1639,7 +1639,7 @@
60  
61  # Define the identity of the package.
62   PACKAGE=easytag
63 - VERSION=0.30a
64 + VERSION=0.30b
65  
66  
67  cat >>confdefs.h <<_ACEOF
68 @@ -12653,7 +12653,7 @@
69  } >&5
70  cat >&5 <<_CSEOF
71  
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
75  
76    CONFIG_FILES    = $CONFIG_FILES
77 @@ -12715,7 +12715,7 @@
78  
79  cat >>$CONFIG_STATUS <<_ACEOF
80  ac_cs_version="\\
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'`\\"
85  
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
89 @@ -6,7 +6,7 @@
90  dnl VERSION=0.28
91  
92  AC_PREREQ(2.53)
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 -------------------------------
97  dnl Init automake
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
101 @@ -1,5 +1,5 @@
102  %define    name      easytag
103 -%define    version   0.30a
104 +%define    version   0.30b
105  %define    release   1
106  %define    prefix    /usr
107  
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
111 @@ -558,7 +558,7 @@
112              switch(button)
113              {
114                  case BUTTON_YES:
115 -                    if (Save_Selected_Files_With_Answer()==-1) return;
116 +                    if (Save_All_Files_With_Answer()==-1) return;
117                      break;
118                  case BUTTON_NO:
119                      break;
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
123 @@ -92,8 +92,9 @@
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);
132  
133  void Display_Usage (void);
134 @@ -1247,12 +1248,6 @@
135  
136  
137  /*
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.
142 - */
143 -/*
144   * Action when Save button is pressed
145   */
146  void Action_Save_Selected_Files (void)
147 @@ -1261,16 +1256,36 @@
148  }
149  
150  
151 +gint Save_All_Files_With_Answer (void)
152 +{
153 +    GList *etfilelist;
154 +
155 +    if (!ETFileList) return FALSE;
156 +    etfilelist = g_list_first(ETFileList);
157 +    return Save_List_Of_Files(etfilelist);
158 +}
159 +
160  gint Save_Selected_Files_With_Answer (void)
161  {
162 -    gint   progress_bar_index;
163 -    gint   saving_answer;
164 +    GList *etfilelist;
165 +
166 +    etfilelist = ET_File_List_Get_Selection();
167 +    return Save_List_Of_Files(etfilelist);
168 +}
169 +
170 +/*
171 + * Save_List_Of_Files: Function to save a list of files.
172 + */
173 +gint Save_List_Of_Files (GList *etfilelist)
174 +{
175 +    gint       progress_bar_index;
176 +    gint       saving_answer;
177 +    gint       nb_files_to_save;
178 +    gchar     *msg;
179 +    GList     *etfilelist_tmp;
180      ET_File   *etfile_save_position = NULL;
181      File_Tag  *FileTag;
182      File_Name *FileNameNew;
183 -    GList *etfilelist;
184 -    gint   nb_files_to_save;
185 -    gchar *msg;
186  
187  
188      if (!ETFileList) return FALSE;
189 @@ -1283,15 +1298,15 @@
190  
191      /* Count the number of files to save */
192      nb_files_to_save = 0;
193 -    etfilelist = ET_File_List_Get_Selection();
194 -    while (etfilelist)
195 +    etfilelist_tmp = etfilelist;
196 +    while (etfilelist_tmp)
197      {
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;
202  
203          if ( (filename && filename->saved==FALSE) || (filetag && filetag->saved==FALSE) )
204              nb_files_to_save++;
205 -        etfilelist = etfilelist->next;
206 +        etfilelist_tmp = etfilelist_tmp->next;
207      }
208  
209      /* Initialize status bar */
210 @@ -1312,24 +1327,24 @@
211      Main_Stop_Button_Pressed = 0;
212      gtk_widget_set_sensitive(TBStopButton,TRUE);
213      
214 -    etfilelist = ET_File_List_Get_Selection();
215 -    while (etfilelist)
216 +    etfilelist_tmp = etfilelist;
217 +    while (etfilelist_tmp)
218      {
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;
223          
224          /* We process only the files not saved */
225          if ( FileTag->saved == FALSE || FileNameNew->saved == FALSE )
226          {
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);
231  
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();
236  
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);
239  
240              if (saving_answer == -1)
241              {
242 @@ -1346,7 +1361,7 @@
243              }
244          }
245  
246 -        etfilelist = etfilelist->next;
247 +        etfilelist_tmp = etfilelist_tmp->next;
248          if (Main_Stop_Button_Pressed == 1 )
249              break;
250          
251 @@ -2875,7 +2890,7 @@
252  void Quit_MainWindow_Save_And_Quit (void)
253  {
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();
258  }
259  
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
263 @@ -137,6 +137,7 @@
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);
269  
270  void Action_Main_Stop_Button_Pressed    (void);
This page took 0.070832 seconds and 3 git commands to generate.