static void finish_rename (NautilusFile *file, gboolean stop_timer, GError *error) { NautilusRenameData *data; data = g_object_get_data (G_OBJECT (file), NEW_NAME_TAG); if (data == NULL) { return; } /* Cancel both the rename and the timed wait. */ nautilus_file_cancel (file, rename_callback, NULL); if (stop_timer) { eel_timed_wait_stop (cancel_rename_callback, file); } if (data->callback != NULL) { data->callback (file, NULL, error, data->callback_data); } /* Let go of file name. */ g_object_set_data (G_OBJECT (file), NEW_NAME_TAG, NULL); }
static void cancel_rename_callback (gpointer callback_data) { nautilus_file_cancel (NAUTILUS_FILE (callback_data), rename_callback, NULL); }