~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/cong-error-file-save.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
 
145
145
                                char* file_size_string = gnome_vfs_format_file_size_for_display(*file_size);
146
146
 
 
147
#if 0
147
148
                                GnomeVFSFileSize volume_capacity;
148
149
 
149
150
                                /* We call the "get space" function on the parent URI rather than the file URI since this function fails if
150
151
                                   the URI does not exist (it decides it's not a local URI as it can't stat the file) */
151
152
 
152
153
                                /* FIXME: this function only exists at the moment on my local version of GNOME VFS */
153
 
#if 0
154
 
                                GnomeVFSResult volume_capacity_result = gnome_vfs_get_volume_capacity(parent_uri,
155
 
                                                                                                      &volume_capacity);
156
 
#else
157
 
                                /* FIXME: This is the workaround: */
158
 
                                GnomeVFSResult volume_capacity_result = GNOME_VFS_ERROR_NOT_SUPPORTED;
159
 
#endif
160
 
 
 
154
                                GnomeVFSResult volume_capacity_result = gnome_vfs_get_volume_capacity (parent_uri,
 
155
                                                                                                       &volume_capacity);
161
156
                                if (volume_capacity_result==GNOME_VFS_OK) {
162
157
                                        char* volume_capacity_string = gnome_vfs_format_file_size_for_display(volume_capacity);
163
158
                                
169
164
                                        /* Can't get at the capacity for the device or "volume": */
170
165
                                        why_failed = g_strdup_printf(_("The file is too big to fit on the device (file size would be %s)."), file_size_string);
171
166
                                }
 
167
#else
 
168
                                /* FIXME: This is the workaround: */
 
169
                                why_failed = g_strdup_printf(_("The file is too big to fit on the device (file size would be %s)."), file_size_string);
 
170
#endif
 
171
 
172
172
 
173
173
                                g_free(file_size_string);
174
174