/[winpt]/trunk/Src/wptFileManagerDlg.cpp
ViewVC logotype

Diff of /trunk/Src/wptFileManagerDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 277 by twoaday, Fri Dec 8 10:22:17 2006 UTC revision 278 by twoaday, Mon Jan 15 22:02:04 2007 UTC
# Line 12  Line 12 
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.   * GNU General Public License for more details.
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  
15   */   */
   
16  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
17  #include <config.h>  #include <config.h>
18  #endif  #endif
# Line 213  file_import_dlg_proc (HWND dlg, UINT msg Line 208  file_import_dlg_proc (HWND dlg, UINT msg
208              return TRUE;              return TRUE;
209          }          }
210          else {          else {
211              const char *s = _("%s contain(s) %d key(s).");              const char *fmt = _("%s contain(s) %d key(s).");
212              char *p = new char[strlen (s) + 32];              const char *name = c->import.is_clip? _("Clipboard") : _("File");
213                char *p = new char[strlen (fmt) + strlen (name) + 32 + 1];
214              if (!p)              if (!p)
215                  BUG (NULL);                  BUG (NULL);
216              sprintf (p, s, c->import.is_clip? _("Clipboard") : _("File"),              sprintf (p, fmt, name, listview_count_items (lv, 0));
                      listview_count_items (lv, 0));  
217              SetDlgItemText (dlg, IDC_IMPORT_INFO, p);              SetDlgItemText (dlg, IDC_IMPORT_INFO, p);
218              free_if_alloc (p);              free_if_alloc (p);
219          }          }

Legend:
Removed from v.277  
changed lines
  Added in v.278

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26