Clarify the name of a callback

The old save_entry_get_info_cb() was misnamed; it is actually used
to see if a file's presumed parent *is* a folder.  So we rename
it to name_entry_get_parent_info_cb().

Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
Stephen Shaw 2010-10-05 12:59:45 -05:00 committed by Federico Mena Quintero
parent 2b348f9a48
commit f7a20e35c1

View File

@ -8138,7 +8138,7 @@ struct FileExistsData
}; };
static void static void
save_entry_get_info_cb (GCancellable *cancellable, name_entry_get_parent_info_cb (GCancellable *cancellable,
GFileInfo *info, GFileInfo *info,
const GError *error, const GError *error,
gpointer user_data) gpointer user_data)
@ -8185,7 +8185,7 @@ save_entry_get_info_cb (GCancellable *cancellable,
else else
g_signal_emit_by_name (data->impl, "response-requested"); g_signal_emit_by_name (data->impl, "response-requested");
} }
else /* GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER */ else if (data->impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
{ {
GError *error = NULL; GError *error = NULL;
@ -8198,6 +8198,8 @@ save_entry_get_info_cb (GCancellable *cancellable,
else else
error_creating_folder_dialog (data->impl, data->file, error); error_creating_folder_dialog (data->impl, data->file, error);
} }
else
g_assert_not_reached ();
} }
else else
{ {
@ -8299,7 +8301,7 @@ file_exists_get_info_cb (GCancellable *cancellable,
_gtk_file_system_get_info (data->impl->file_system, _gtk_file_system_get_info (data->impl->file_system,
data->parent_file, data->parent_file,
"standard::type", "standard::type",
save_entry_get_info_cb, name_entry_get_parent_info_cb,
data); data);
set_busy_cursor (data->impl, TRUE); set_busy_cursor (data->impl, TRUE);
} }