gvfs r1769 - in trunk: . daemon
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1769 - in trunk: . daemon
- Date: Tue, 20 May 2008 08:23:39 +0000 (UTC)
Author: hadess
Date: Tue May 20 08:23:39 2008
New Revision: 1769
URL: http://svn.gnome.org/viewvc/gvfs?rev=1769&view=rev
Log:
2008-05-20 Bastien Nocera <hadess hadess net>
* daemon/gvfsbackendobexftp-fl-parser.c (fl_parser_fill_file_info):
Fill in the display name, even if layers above should be able to do
without (Closes: #523699)
Modified:
trunk/ChangeLog
trunk/daemon/gvfsbackendobexftp-fl-parser.c
Modified: trunk/daemon/gvfsbackendobexftp-fl-parser.c
==============================================================================
--- trunk/daemon/gvfsbackendobexftp-fl-parser.c (original)
+++ trunk/daemon/gvfsbackendobexftp-fl-parser.c Tue May 20 08:23:39 2008
@@ -206,6 +206,7 @@
value = attr[++i];
if (strcmp (name, "name") == 0) {
+ char *display_name;
/* Apparently someone decided it was a good idea
* to send name="" mem-type="MMC"
*/
@@ -214,7 +215,10 @@
}
g_file_info_set_name (info, value);
- d(g_print ("Name: '%s'\n", value));
+ display_name = g_filename_display_name (value);
+ g_file_info_set_display_name (info, display_name);
+ d(g_print ("Name: '%s'\n", display_name));
+ g_free (display_name);
}
else if (strcmp (name, "size") == 0) {
g_file_info_set_size (info, strtoll (value, NULL, 10));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]