diff src/gtk/transfer.c @ 397:14ef37b62c20

2004-2-8 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.h src/gtk/gtkui.c - added gftpui_gtk_get_utf8_file_pos() that will return the file in UTF8 format if it is available * src/gtk/gtkui_transfer.c src/gtk/transfer.c - call gftpui_gtk_get_utf8_file_pos() to display the file in the file transfer status. This fixes a bug where non-UTF8 files were being chopped off * src/text/textui.c src/uicommon/gftpui.c src/uicommon/gftpui.h src/text/gtkui_transfer.c - updated declaration of gftpui_add_file_to_transfer() * lib/protocols.c (gftp_swap_socks) - swap the SSL sockets between the two request structures * lib/ftps.c - added ftps_get_next_file() that will pull items from the cache properly * lib/Makefile.am - updated LOCALE_DIR declaration (from Sung-Hyun Nam <namsh@kldp.org>) * ChangeLog-old - updated summary of changes since 2.0.16 * TODO - removed several items that were completed
author masneyb
date Sun, 08 Feb 2004 16:19:26 +0000
parents 05ee37a5558b
children 77fffba5e170
line wrap: on
line diff
--- a/src/gtk/transfer.c	Thu Feb 05 03:17:05 2004 +0000
+++ b/src/gtk/transfer.c	Sun Feb 08 16:19:26 2004 +0000
@@ -455,8 +455,8 @@
   GdkBitmap * closedir_bitmap, * opendir_bitmap;
   gftpui_common_curtrans_data * transdata;
   gftp_file * tempfle;
-  char *pos, *text[2];
   GList * templist;
+  char *text[2];
 
   gftp_get_pixmap (dlwdw, "open_dir.xpm", &opendir_pixmap, &opendir_bitmap);
   gftp_get_pixmap (dlwdw, "dir.xpm", &closedir_pixmap, &closedir_bitmap);
@@ -480,11 +480,8 @@
   for (templist = tdata->files; templist != NULL; templist = templist->next)
     {
       tempfle = templist->data;
-      if ((pos = strrchr (tempfle->file, '/')) == NULL)
-	pos = tempfle->file;
-      else
-	pos++;
-      text[0] = pos;
+
+      text[0] = gftpui_gtk_get_utf8_file_pos (tempfle);
       if (tempfle->transfer_action == GFTP_TRANS_ACTION_SKIP)
         text[1] = _("Skipped");
       else