Mercurial > gftp.yaz
comparison src/gtk/misc-gtk.c @ 916:936635b76f02
2007-4-26 Brian Masney <masneyb@gftp.org>
* src/gtk/misc-gtk.c lib/gftp.h lib/protocols.c - added
filename_utf8_encoded flag to the gftp_file structure. If this is false,
then don't attempt to show the filename in the GTK port. The user can
still select the blank filename though.
author | masneyb |
---|---|
date | Thu, 26 Apr 2007 23:47:34 +0000 |
parents | 1808cebed602 |
children | b884506e569c |
comparison
equal
deleted
inserted
replaced
915:ecac0834d141 | 916:936635b76f02 |
---|---|
745 if (pix == NULL && bitmap == NULL) | 745 if (pix == NULL && bitmap == NULL) |
746 gftp_get_pixmap (wdata->listbox, "doc.xpm", &pix, &bitmap); | 746 gftp_get_pixmap (wdata->listbox, "doc.xpm", &pix, &bitmap); |
747 | 747 |
748 gtk_clist_set_pixmap (GTK_CLIST (wdata->listbox), clist_num, 0, pix, bitmap); | 748 gtk_clist_set_pixmap (GTK_CLIST (wdata->listbox), clist_num, 0, pix, bitmap); |
749 | 749 |
750 if (fle->file != NULL) | 750 if (fle->file != NULL && fle->filename_utf8_encoded) |
751 gtk_clist_set_text (GTK_CLIST (wdata->listbox), clist_num, 1, fle->file); | 751 gtk_clist_set_text (GTK_CLIST (wdata->listbox), clist_num, 1, fle->file); |
752 | 752 |
753 if (GFTP_IS_SPECIAL_DEVICE (fle->st_mode)) | 753 if (GFTP_IS_SPECIAL_DEVICE (fle->st_mode)) |
754 tempstr = g_strdup_printf ("%d, %d", major (fle->size), | 754 tempstr = g_strdup_printf ("%d, %d", major (fle->size), |
755 minor (fle->size)); | 755 minor (fle->size)); |